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


Performing analysis on: 4FGL_J1748.0+3403_daily_bin1536
RA = 267.011, Dec = 34.0641
tmin = 637459201, tmax = 637718401
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='174118', job_status='RUN', time_executed='2021-09-18 14:50:42.982268', time_epoch_executed='1632001842.98' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='1536'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/174118

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/174118/ft1_4FGL_J1748.0+3403_daily_bin1536.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/174118/ft2_4FGL_J1748.0+3403_daily_bin1536.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/174118/ft1_4FGL_J1748.0+3403_daily_bin1536.fits outfile=/scratch/kocevski/174118/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin1536.fits ra=267.011 dec=34.0641 rad=12.0 tmin=637459201.0 tmax=637718401.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 5.46
user 5.18
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/174118/ft2_4FGL_J1748.0+3403_daily_bin1536.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/174118/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin1536.fits evtable="EVENTS" outfile="/scratch/kocevski/174118/ft1_filtered_4FGL_J1748.0+3403_daily_bin1536.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/174118/ft1_filtered_4FGL_J1748.0+3403_daily_bin1536.fits" evtable="EVENTS" scfile=/scratch/kocevski/174118/ft2_4FGL_J1748.0+3403_daily_bin1536.fits sctable="SC_DATA" outfile=/scratch/kocevski/174118/ltcube_637459201_637718401_4FGL_J1748.0+3403_daily_bin1536.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/174118/ft2_4FGL_J1748.0+3403_daily_bin1536.fits
.....................!
real 11.81
user 11.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/174118/ft1_filtered_4FGL_J1748.0+3403_daily_bin1536.fits evtable="EVENTS" scfile=/scratch/kocevski/174118/ft2_4FGL_J1748.0+3403_daily_bin1536.fits sctable="SC_DATA" expcube=/scratch/kocevski/174118/ltcube_637459201_637718401_4FGL_J1748.0+3403_daily_bin1536.fits outfile=/scratch/kocevski/174118/expmap_637459201_637718401_4FGL_J1748.0+3403_daily_bin1536.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/174118/ltcube_637459201_637718401_4FGL_J1748.0+3403_daily_bin1536.fits
.....................!
real 189.51
user 184.88
sys 4.31

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/174118/ft1_filtered_4FGL_J1748.0+3403_daily_bin1536.fits scfile=/scratch/kocevski/174118/ft2_4FGL_J1748.0+3403_daily_bin1536.fits outfile=/scratch/kocevski/174118/cmap_637459201_637718401_4FGL_J1748.0+3403_daily_bin1536.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/174118/ft1_filtered_4FGL_J1748.0+3403_daily_bin1536.fits scfile=/scratch/kocevski/174118/ft2_4FGL_J1748.0+3403_daily_bin1536.fits outfile=/scratch/kocevski/174118/cmap_HighResolution_637459201_637718401_4FGL_J1748.0+3403_daily_bin1536.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .64372       1.0000         .10000E-03   10000.    
     2 'norm      '    7.7009       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.217       1.0000         .10000E-03   10000.    
     4 'norm      '    2.8506       1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.120       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.785       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.807       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    91.301       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5900       1.0000         .10000E-03   10000.    
    17 'norm      '    9.7776       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .72685       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1036       1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.8202       1.0000         .10000E-03   10000.    
    22 'norm      '    .10321E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0995       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87595       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=   9041.793     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2700 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64420        .80655       -.18806E-06   -.15172E-02
   2  norm          7.7046        9.9295       -.20988E-07    .12540E-03
   3  Prefactor     15.205        45.057        .62333E-05    .34861E-04
   4  norm          2.8653        6.8654       -.55234E-05   -.74125E-03
   5  Prefactor     45.004        84.348        .24506E-04    .18560E-04
   6  Prefactor     .10000E-03    31.148        .99719E-06** at limit **
   7  Prefactor     10.789        10.514       -.33723E-06   -.90579E-05
   8  Prefactor     .10000E-03    10.963        .69280E-06** at limit **
   9  Prefactor     10.809        8.9493       -.38718E-06   -.26182E-06
  10  Prefactor     .10000E-03    10.296        .92480E-06** at limit **
  11  Prefactor     91.379        61.466       -.80773E-05    .97815E-04
  12  Prefactor     .10000E-03    2.2350        .15559E-06** at limit **
  13  norm          .10000E-03    .92676        .20555E-06** at limit **
  14  norm          .10000E-03    38.851       -.89116E-06** at limit **
  15  norm          .10000E-03    4.7654       -.21725E-06** at limit **
  16  Prefactor     1.5904        4.8883        .12502E-04   -.44026E-03
  17  norm          9.7740        8.4246        .36569E-06   -.36182E-04
  18  Prefactor     .72170        2.6939       -.86710E-06   -.13691E-03
  19  Prefactor     7.1067        18.710       -.75045E-06   -.10005E-03
  20  norm          .10000E-03    6.8957        .54657E-07** at limit **
  21  Prefactor     7.8158        7.8292        .24379E-06   -.55694E-04
  22  norm          .10000E-03    32.681       -.16651E-06** at limit **
  23  Normalizat    1.0986        .18894        .13129E-05    .18891E-03
  24  Prefactor     .87633        .92898E-01   -.20996E-05   -.31515E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.6442
  norm       = 7.70456
  Prefactor  = 15.2047
  norm       = 2.86525
  Prefactor  = 45.004
  Prefactor  = 0.0001
  Prefactor  = 10.7891
  Prefactor  = 0.0001
  Prefactor  = 10.8089
  Prefactor  = 0.000100001
  Prefactor  = 91.3793
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.59044
  norm       = 9.77403
  Prefactor  = 0.721698
  Prefactor  = 7.10674
  norm       = 0.0001
  Prefactor  = 7.81577
  norm       = 0.0001
  Normalizat = 1.09864
  Prefactor  = 0.876333
 **********
 **   18 **HESSE 
 **********

 FCN=   9041.793     FROM HESSE     STATUS=OK           403 CALLS     3103 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .64420        .68939        .92204E-03   -1.5547    
   2  norm          7.7046        9.8796        .14450E-03   -1.5153    
   3  Prefactor     15.205        44.957        .10267E-03   -1.4928    
   4  norm          2.8653        6.7828        .24081E-03   -1.5369    
   5  Prefactor     45.004        84.608        .59688E-04   -1.4365    
   6  Prefactor     .10000E-03    31.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.789        10.517        .12200E-03   -1.5051    
   8  Prefactor     .10000E-03    10.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.809        8.9523        .12187E-03   -1.5050    
  10  Prefactor     .10000E-03    10.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     91.379        61.146        .21028E-03   -1.3793    
  12  Prefactor     .10000E-03    2.2445        .13883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .96027        .17871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    38.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.8524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.5904        4.9317        .16827E-02   -1.5456    
  17  norm          9.7740        8.4266        .12815E-03   -1.5083    
  18  Prefactor     .72170        7.1842        .26389E-02   -1.5538    
  19  Prefactor     7.1067        18.306        .15051E-03   -1.5175    
  20  norm          .10000E-03    6.8974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.8158        7.8315        .14339E-03   -1.5149    
  22  norm          .10000E-03    32.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0986        .22236        .31440E-03   -.89796    
  24  Prefactor     .87633        .10924        .17731E-03   -.96973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77651e-08
Minuit parameter uncertainties:
  1  0.689402
  2  9.88165
  3  45.0574
  4  6.78458
  5  84.8347
  6  7.96379e-08
  7  10.5184
  8  4.72176e-05
  9  8.95343
  10  0.000176173
  11  61.1885
  12  1.12646e-05
  13  7.37761e-06
  14  4.07862e-05
  15  2.05804e-05
  16  4.933
  17  8.42759
  18  4.55443
  19  18.3201
  20  1.71433e-06
  21  7.83252
  22  6.89762e-07
  23  0.22255
  24  0.109263
Done.

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

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.079e+01  1.052e+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:  8.763e-01  1.093e-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.099e+00  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.60
Ra Dec: 267.011 34.064
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 2.56e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 9.17e-06 +/- 8.94e-06

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

Saving results to:
/scratch/kocevski/174118/likelihoodResults_637459201_637718401_4FGL_J1748.0+3403_daily_bin1536.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) = 9041.22738958
delta logL = 0.565346920745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9041.19298535
delta logL = 0.599751153613

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.177       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5642       1.0000          .0000       10.000    
     3 'Normalizat'    1.1159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87167       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=   9041.193     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      214 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.167        23.919        .26594E-02    .35242E-04
   2  Index         1.5633        .77030        .29116       -.46951E-04
   3  Normalizat    1.1158        .17824        .70560E-01   -.91181E-04
   4  Prefactor     .87177        .90612E-01    .44643E-01   -.21157E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.167
  Index      = 1.56333
  Normalizat = 1.11581
  Prefactor  = 0.87177
 **********
 **   18 **HESSE 
 **********

 FCN=   9041.193     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.167        14.539        .10638E-03   -1.4955    
   2  Index         1.5633        .61773        .11262E-01   -.75781    
   3  Normalizat    1.1158        .20606        .31221E-03   -.89246    
   4  Prefactor     .87177        .10561        .17770E-03   -.97135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16975e-09
Minuit parameter uncertainties:
  1  14.5429
  2  0.620752
  3  0.206213
  4  0.105633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/174118': 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) = 9041.19298365
delta logL = 0.59975285873

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.417e+01  1.454e+01  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  1.563e+00  6.208e-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:  8.718e-01  1.056e-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.116e+00  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.80
Ra Dec: 267.011 34.064
Photon Index (Free Index): 1.56 +/- 0.62
Photon Flux (Free Index): 1.16e-08 +/- 1.50e-08
Energy Flux (Free Index): 2.97e-05 +/- 4.61e-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/174118/cmap_HighResolution_637459201_637718401_4FGL_J1748.0+3403_daily_bin1536.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.00e-03', comment='SUCCESS', photon_flux='2.56e-08', energy_flux2='2.97e-05', photon_flux_error='2.50e-08', dlogl='6.00e-01', energy_flux='9.17e-06', photon_flux2='1.16e-08', job_status='DONE', time_completed='2021-09-18 15:06:55.627004', photon_index_error2='0.62', photon_index2='1.56', ts='2.60', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='9.09e-08', energy_flux_error2='4.61e-05', EG='1.10', time_epoch_completed='1632002815.63', return_code='0', job_id='174118', GAL2='0.87', EG2='1.12', return_code2='0', energy_flux_error='8.94e-06', photon_flux_error2='1.50e-08', ts2='3.80', photon_index='2.34' WHERE bin_id='1536' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 15:06:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 174118: <4FGL_J1748.0+3403_daily_bin1536> in cluster <slac> Done

Job <4FGL_J1748.0+3403_daily_bin1536> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 18 14:50:27 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 14:50:28 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:50:28 2021
Terminated at Sat Sep 18 15:06:56 2021
Results reported at Sat Sep 18 15:06:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin1536 267.011 34.0641 637459201 637718401 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 :                                   962.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            989 sec.

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

