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


Performing analysis on: 4FGL_J1748.0+3403_daily_bin1192
RA = 267.011, Dec = 34.0641
tmin = 548294401, tmax = 548553601
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='171414', job_status='RUN', time_executed='2021-09-18 14:44:31.783284', time_epoch_executed='1632001471.78' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='1192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171414

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171414/ft1_4FGL_J1748.0+3403_daily_bin1192.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171414/ft2_4FGL_J1748.0+3403_daily_bin1192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171414/ft1_4FGL_J1748.0+3403_daily_bin1192.fits outfile=/scratch/kocevski/171414/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin1192.fits ra=267.011 dec=34.0641 rad=12.0 tmin=548294401.0 tmax=548553601.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.85
user 3.66
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/171414/ft2_4FGL_J1748.0+3403_daily_bin1192.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/171414/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin1192.fits evtable="EVENTS" outfile="/scratch/kocevski/171414/ft1_filtered_4FGL_J1748.0+3403_daily_bin1192.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/171414/ft1_filtered_4FGL_J1748.0+3403_daily_bin1192.fits" evtable="EVENTS" scfile=/scratch/kocevski/171414/ft2_4FGL_J1748.0+3403_daily_bin1192.fits sctable="SC_DATA" outfile=/scratch/kocevski/171414/ltcube_548294401_548553601_4FGL_J1748.0+3403_daily_bin1192.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/171414/ft2_4FGL_J1748.0+3403_daily_bin1192.fits
.....................!
real 12.15
user 11.84
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171414/ft1_filtered_4FGL_J1748.0+3403_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/171414/ft2_4FGL_J1748.0+3403_daily_bin1192.fits sctable="SC_DATA" expcube=/scratch/kocevski/171414/ltcube_548294401_548553601_4FGL_J1748.0+3403_daily_bin1192.fits outfile=/scratch/kocevski/171414/expmap_548294401_548553601_4FGL_J1748.0+3403_daily_bin1192.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/171414/ltcube_548294401_548553601_4FGL_J1748.0+3403_daily_bin1192.fits
.....................!
real 190.78
user 185.57
sys 4.86

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/171414/ft1_filtered_4FGL_J1748.0+3403_daily_bin1192.fits scfile=/scratch/kocevski/171414/ft2_4FGL_J1748.0+3403_daily_bin1192.fits outfile=/scratch/kocevski/171414/cmap_548294401_548553601_4FGL_J1748.0+3403_daily_bin1192.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.764       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.223       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17222E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10656E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.156       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0651       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10587E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.088       1.0000         .10000E-03   10000.    
    22 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .47478       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96805       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=   2174.704     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     3120 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    38.152        .10757E-07** at limit **
   2  norm          .10000E-03    34.997       -.54401E-07** at limit **
   3  Prefactor     .10000E-03    88.986       -.32507E-06** at limit **
   4  norm          .10000E-03    11.455       -.48023E-08** at limit **
   5  Prefactor     .10000E-03    168.67        .31557E-06** at limit **
   6  Prefactor     .10000E-03    342.77        .85876E-06** at limit **
   7  Prefactor     .10000E-03    24.209        .17800E-06** at limit **
   8  Prefactor     10.727        111.03       -.98972E-07   -.36527E-05
   9  Prefactor     .10000E-03    61.937       -.25496E-07** at limit **
  10  Prefactor     31.284        98.529       -.14539E-04   -.16909E-05
  11  Prefactor     .10000E-03    632.46        .15906E-04** at limit **
  12  Prefactor     .10000E-03    9.4377       -.17479E-06** at limit **
  13  norm          .10000E-03    3.1895        .39410E-06** at limit **
  14  norm          .10000E-03    152.64        .36241E-06** at limit **
  15  norm          .10000E-03    57.305        .65177E-07** at limit **
  16  Prefactor     20.153        21.285       -.12120E-07   -.21656E-04
  17  norm          .10000E-03    13.654        .13479E-06** at limit **
  18  Prefactor     5.0645        7.3100        .12085E-06   -.17539E-04
  19  Prefactor     .10000E-03    56.774        .56453E-06** at limit **
  20  norm          .10000E-03    25.240        .61106E-07** at limit **
  21  Prefactor     24.082        19.407        .80162E-08   -.31778E-04
  22  norm          .10000E-03    37.485       -.74652E-08** at limit **
  23  Normalizat    .47473        .46980        .56030E-05    .15977E-05
  24  Prefactor     .96807        .18098       -.11951E-05   -.30056E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.727
  Prefactor  = 0.0001
  Prefactor  = 31.2836
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 20.1532
  norm       = 0.0001
  Prefactor  = 5.06449
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.0816
  norm       = 0.0001
  Normalizat = 0.474733
  Prefactor  = 0.968066
 **********
 **   18 **HESSE 
 **********

 FCN=   2174.704     FROM HESSE     STATUS=OK           387 CALLS     3507 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    38.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    34.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    88.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    11.457        .15418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    168.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    342.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.727        110.68        .12212E-03   -1.5053    
   9  Prefactor     .10000E-03    61.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     31.284        98.892        .71706E-04   -1.4589    
  11  Prefactor     .10000E-03    649.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.4653        .13984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.2338        .81439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    152.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    57.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.153        21.237        .89213E-04   -1.4810    
  17  norm          .10000E-03    13.786        .16832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0645        7.2899        .14537E-03   -1.5258    
  19  Prefactor     .10000E-03    56.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    25.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.082        19.468        .81616E-04   -1.4726    
  22  norm          .10000E-03    37.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .47473        .47922        .52988E-03   -1.1360    
  24  Prefactor     .96807        .19007        .14782E-03   -.93802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46397e-11
Minuit parameter uncertainties:
  1  8.06713e-06
  2  3.17184e-05
  3  0.000304437
  4  1.07841e-07
  5  0.000420615
  6  0.000187292
  7  8.88172e-06
  8  69.0794
  9  1.75092e-05
  10  99.4166
  11  0.00345222
  12  1.4377e-05
  13  9.84279e-06
  14  0.000302884
  15  5.49871e-05
  16  21.2448
  17  1.38064e-05
  18  7.29117
  19  9.97377e-05
  20  3.46679e-05
  21  19.4727
  22  1.88243e-06
  23  0.483462
  24  0.190204
Done.

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

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.000e-04  8.882e-06  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.681e-01  1.902e-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:  4.747e-01  4.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/171414/likelihoodResults_548294401_548553601_4FGL_J1748.0+3403_daily_bin1192.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2174.70390417
delta logL = -0.000196548008262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2174.7037083
delta logL = -6.79442109686e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7661       1.0000          .0000       10.000    
     3 'Normalizat'    .47473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96807       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=   2174.704     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      277 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10162E-03    141.53        .18142E-02** at limit **
   2  Index         2.7065        5.4322        .50000        .10043E-04
   3  Normalizat    .47473        .29848E-01    .52989E-03    .11060E-04
   4  Prefactor     .96807        .11750E-01    .14782E-03    .36148E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101623
  Index      = 2.70652
  Normalizat = 0.474733
  Prefactor  = 0.968066
 **********
 **   18 **HESSE 
 **********

 FCN=   2174.704     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10162E-03    598.82        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7065        6.7045        .50000       -.47653    
   3  Normalizat    .47473        .63561E-01    .21196E-04   -1.1360    
   4  Prefactor     .96807        .25023E-01    .59128E-05   -.93802    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.35886e-09
Minuit parameter uncertainties:
  1  0.0629923
  2  750.615
  3  0.0635705
  4  0.0250233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171414': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2174.7037082
delta logL = -5.7959005062e-07

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.016e-04  6.299e-02  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.707e+00  7.506e+02  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:  9.681e-01  2.502e-02  0.000e+00  1.000e+01 ( 1.000e+00)
672        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
673        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
670   Normalization:  4.747e-01  6.357e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/171414/cmap_HighResolution_548294401_548553601_4FGL_J1748.0+3403_daily_bin1192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-02', job_status='DONE', photon_flux_upper_limit='2.55e-07', time_completed='2021-09-18 14:52:28.504835', job_id='171414', GAL2='0.97', fit_tolerance='1e-08', EG2='0.47', EG='0.47', time_epoch_completed='1632001948.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-5.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1192' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 14:52:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 171414: <4FGL_J1748.0+3403_daily_bin1192> in cluster <slac> Done

Job <4FGL_J1748.0+3403_daily_bin1192> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep 18 14:40:28 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 14:40:29 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:40:29 2021
Terminated at Sat Sep 18 14:52:29 2021
Results reported at Sat Sep 18 14:52:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin1192 267.011 34.0641 548294401 548553601 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 :                                   472.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            721 sec.

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

