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


Performing analysis on: 4FGL_J1748.0+3403_daily_bin629
RA = 267.011, Dec = 34.0641
tmin = 402364801, tmax = 402624001
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='166340', job_status='RUN', time_executed='2021-09-18 14:20:42.298388', time_epoch_executed='1632000042.3' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='629'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/166340

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/166340/ft1_4FGL_J1748.0+3403_daily_bin629.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/166340/ft2_4FGL_J1748.0+3403_daily_bin629.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/166340/ft1_4FGL_J1748.0+3403_daily_bin629.fits outfile=/scratch/kocevski/166340/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin629.fits ra=267.011 dec=34.0641 rad=12.0 tmin=402364801.0 tmax=402624001.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.52
user 3.27
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/166340/ft2_4FGL_J1748.0+3403_daily_bin629.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/166340/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin629.fits evtable="EVENTS" outfile="/scratch/kocevski/166340/ft1_filtered_4FGL_J1748.0+3403_daily_bin629.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/166340/ft1_filtered_4FGL_J1748.0+3403_daily_bin629.fits" evtable="EVENTS" scfile=/scratch/kocevski/166340/ft2_4FGL_J1748.0+3403_daily_bin629.fits sctable="SC_DATA" outfile=/scratch/kocevski/166340/ltcube_402364801_402624001_4FGL_J1748.0+3403_daily_bin629.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/166340/ft2_4FGL_J1748.0+3403_daily_bin629.fits
.....................!
real 12.15
user 11.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/166340/ft1_filtered_4FGL_J1748.0+3403_daily_bin629.fits evtable="EVENTS" scfile=/scratch/kocevski/166340/ft2_4FGL_J1748.0+3403_daily_bin629.fits sctable="SC_DATA" expcube=/scratch/kocevski/166340/ltcube_402364801_402624001_4FGL_J1748.0+3403_daily_bin629.fits outfile=/scratch/kocevski/166340/expmap_402364801_402624001_4FGL_J1748.0+3403_daily_bin629.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/166340/ltcube_402364801_402624001_4FGL_J1748.0+3403_daily_bin629.fits
.....................!
real 192.98
user 187.13
sys 5.46

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/166340/ft1_filtered_4FGL_J1748.0+3403_daily_bin629.fits scfile=/scratch/kocevski/166340/ft2_4FGL_J1748.0+3403_daily_bin629.fits outfile=/scratch/kocevski/166340/cmap_402364801_402624001_4FGL_J1748.0+3403_daily_bin629.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/166340/ft1_filtered_4FGL_J1748.0+3403_daily_bin629.fits scfile=/scratch/kocevski/166340/ft2_4FGL_J1748.0+3403_daily_bin629.fits outfile=/scratch/kocevski/166340/cmap_HighResolution_402364801_402624001_4FGL_J1748.0+3403_daily_bin629.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/166340/ft1_filtered_4FGL_J1748.0+3403_daily_bin629.fits evtable="EVENTS" scfile=/scratch/kocevski/166340/ft2_4FGL_J1748.0+3403_daily_bin629.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/166340/Model_4FGL_J1748.0+3403_daily_bin629.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/166340/ft1_filtered_4FGL_J1748.0+3403_daily_bin629.fits.....................!
real 70.45
user 69.03
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0269       1.0000         .10000E-03   10000.    
     2 'norm      '    6.3953       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.167       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10604E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.586       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.487       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.751       1.0000         .10000E-03   10000.    
    13 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    68.196       1.0000         .10000E-03   10000.    
    15 'norm      '    8.6219       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1707       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .88930       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .94646       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99724       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=   8348.893     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2755 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0268        1.2952        .18750E-06    .24396E-03
   2  norm          6.3948        7.7449        .18843E-06   -.39222E-04
   3  Prefactor     .10000E-03    20.921        .15233E-06** at limit **
   4  norm          .10000E-03    1.6688        .20957E-08** at limit **
   5  Prefactor     43.182        50.958        .26619E-06   -.12995E-04
   6  Prefactor     .10000E-03    574.42        .68761E-05** at limit **
   7  Prefactor     20.581        24.146        .31234E-06    .15725E-03
   8  Prefactor     .10000E-03    16.369       -.26688E-07** at limit **
   9  Prefactor     .10000E-03    3.6133       -.32767E-07** at limit **
  10  Prefactor     .10000E-03    20.336        .45739E-07** at limit **
  11  Prefactor     10.466        75.675       -.11567E-06   -.90723E-05
  12  Prefactor     13.750        9.8540        .77575E-06   -.67730E-04
  13  norm          .10000E-03    .82130        .24618E-06** at limit **
  14  norm          68.172        93.083       -.95430E-07    .11348E-04
  15  norm          8.6222        8.5937        .21780E-06   -.20485E-04
  16  Prefactor     .10000E-03    4.4548        .75065E-08** at limit **
  17  norm          2.1703        8.5292        .63898E-06   -.14707E-04
  18  Prefactor     .88850        4.2281        .27685E-05   -.85541E-04
  19  Prefactor     .10000E-03    19.177       -.25021E-06** at limit **
  20  norm          .10000E-03    28.183       -.11071E-06** at limit **
  21  Prefactor     .10000E-03    4.7031       -.85152E-07** at limit **
  22  norm          .10000E-03    19.718       -.15624E-07** at limit **
  23  Normalizat    .94637        .21117       -.12724E-05   -.77806E-04
  24  Prefactor     .99729        .10053       -.15095E-07   -.21427E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.02683
  norm       = 6.39484
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 43.1815
  Prefactor  = 0.000100003
  Prefactor  = 20.5805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4664
  Prefactor  = 13.7503
  norm       = 0.0001
  norm       = 68.1722
  norm       = 8.62219
  Prefactor  = 0.0001
  norm       = 2.17033
  Prefactor  = 0.888505
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.94637
  Prefactor  = 0.997292
 **********
 **   18 **HESSE 
 **********

 FCN=   8348.893     FROM HESSE     STATUS=OK           393 CALLS     3148 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0268        1.1703        .11147E-02   -1.5505    
   2  norm          6.3948        7.7183        .15871E-03   -1.5202    
   3  Prefactor     .10000E-03    20.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.6734        .11520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     43.182        51.049        .61017E-04   -1.4393    
   6  Prefactor     .10000E-03    579.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.581        24.036        .88278E-04   -1.4800    
   8  Prefactor     .10000E-03    16.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.6309        .16960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.466        75.581        .12373E-03   -1.5061    
  12  Prefactor     13.750        9.8759        .54007E-03   -1.4966    
  13  norm          .10000E-03    .82770        .80730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          68.172        92.914        .48605E-04   -1.4055    
  15  norm          8.6222        8.6100        .13652E-03   -1.5121    
  16  Prefactor     .10000E-03    4.5548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1703        8.5060        .27950E-03   -1.5413    
  18  Prefactor     .88850        4.2099        .36057E-03   -1.5519    
  19  Prefactor     .10000E-03    19.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    28.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.7496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    19.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .94637        .24609        .36457E-03   -.94849    
  24  Prefactor     .99729        .11829        .17415E-03   -.92820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42419e-10
Minuit parameter uncertainties:
  1  1.1703
  2  7.71948
  3  3.3651e-05
  4  4.08034e-07
  5  51.1002
  6  0.00270145
  7  24.0477
  8  4.5017e-07
  9  1.52237e-06
  10  1.96263e-05
  11  56.3521
  12  9.87708
  13  1.61075e-06
  14  93.1125
  15  8.6112
  16  4.63234e-06
  17  8.51074
  18  3.86829
  19  0.000102868
  20  2.17388e-05
  21  1.64837e-06
  22  3.81656e-06
  23  0.246388
  24  0.118325
Done.

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

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  2.058e+01  2.405e+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:  9.973e-01  1.183e-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:  9.464e-01  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 267.011 34.064
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 4.89e-08 +/- 5.70e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 2.04e-05

TS (Fixed Index): 1.24
Ra Dec: 267.011 34.064
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/166340/likelihoodResults_402364801_402624001_4FGL_J1748.0+3403_daily_bin629.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) = 8348.70198058
delta logL = 0.191069168748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8348.69151578
delta logL = 0.201533968091

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.390       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7747       1.0000          .0000       10.000    
     3 'Normalizat'    .92136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0043       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8348.692     FROM MIGRAD    STATUS=FAILED       105 CALLS      316 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.377        24.395        .54731E-03    .54639E-04
   2  Index         2.7749        .95062        .71089E-02    .70242E-03
   3  Normalizat    .92172        .23910        .36893E-03    .61630E-07
   4  Prefactor     1.0044        .11541        .17358E-03    .19649E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8348.692     FROM SIMPLEX   STATUS=UNCHANGED     70 CALLS      386 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.377        24.395        .25086E-03   -1.4976    
   2  Index         2.7749        .95062        .55785E-03   -.46119    
   3  Normalizat    .92172        .23910        .31659E-03   -.95701    
   4  Prefactor     1.0044        .11541        .13888E-03   -.92584    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8348.692     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      415 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.377        19.832        .10946E-03   -.22849E-05
   2  Index         2.7749        .77370        .14218E-02    .27526E-04
   3  Normalizat    .92172        .23898        .14757E-04    .61630E-07
   4  Prefactor     1.0044        .11525        .69432E-05    .19649E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3772
  Index      = 2.77492
  Normalizat = 0.921718
  Prefactor  = 1.00438
 **********
 **   18 **HESSE 
 **********

 FCN=   8348.692     FROM HESSE     STATUS=OK            25 CALLS      440 TOTAL
                     EDM=   .18E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.377        19.220        .43784E-05   -1.4976    
   2  Index         2.7749        .74980        .28436E-03   -.46119    
   3  Normalizat    .92172        .23888        .14757E-04   -.95701    
   4  Prefactor     1.0044        .11519        .13886E-05   -.92584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81129e-14
Minuit parameter uncertainties:
  1  19.2289
  2  0.753348
  3  0.239158
  4  0.115214
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/166340': 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) = 8348.69150543
delta logL = 0.201544321437

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.338e+01  1.923e+01  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.775e+00  7.533e-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.004e+00  1.152e-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:  9.217e-01  2.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 267.011 34.064
Photon Index (Free Index): 2.77 +/- 0.75
Photon Flux (Free Index): 7.05e-08 +/- 6.51e-08
Energy Flux (Free Index): 1.61e-05 +/- 1.45e-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/166340/cmap_HighResolution_402364801_402624001_4FGL_J1748.0+3403_daily_bin629.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='4.89e-08', energy_flux2='1.61e-05', photon_flux_error='5.70e-08', dlogl='2.02e-01', energy_flux='1.75e-05', photon_flux2='7.05e-08', job_status='DONE', time_completed='2021-09-18 14:35:59.061817', photon_index_error2='0.75', photon_index2='2.77', ts='1.24', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.45e-05', EG='0.95', time_epoch_completed='1632000959.06', return_code='0', job_id='166340', GAL2='1.00', EG2='0.92', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='6.51e-08', ts2='1.69', photon_index='2.34' WHERE bin_id='629' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 14:35:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 166340: <4FGL_J1748.0+3403_daily_bin629> in cluster <slac> Done

Job <4FGL_J1748.0+3403_daily_bin629> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 18 14:20:26 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 14:20: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:20:28 2021
Terminated at Sat Sep 18 14:35:59 2021
Results reported at Sat Sep 18 14:35:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin629 267.011 34.0641 402364801 402624001 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 :                                   915.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

