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


Performing analysis on: 4FGL_J1748.0+3403_daily_bin1
RA = 267.011, Dec = 34.0641
tmin = 239587201, tmax = 239846401
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='155930', job_status='RUN', time_executed='2021-09-18 13:41:11.867255', time_epoch_executed='1631997671.87' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/155930

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/155930/ft1_4FGL_J1748.0+3403_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/155930/ft2_4FGL_J1748.0+3403_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/155930/ft1_4FGL_J1748.0+3403_daily_bin1.fits outfile=/scratch/kocevski/155930/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin1.fits ra=267.011 dec=34.0641 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.30
user 1.12
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/155930/ft1_filtered_4FGL_J1748.0+3403_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/155930/ft2_4FGL_J1748.0+3403_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/155930/ltcube_239587201_239846401_4FGL_J1748.0+3403_daily_bin1.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/155930/ft2_4FGL_J1748.0+3403_daily_bin1.fits
.....................!
real 12.57
user 12.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/155930/ft1_filtered_4FGL_J1748.0+3403_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/155930/ft2_4FGL_J1748.0+3403_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/155930/ltcube_239587201_239846401_4FGL_J1748.0+3403_daily_bin1.fits outfile=/scratch/kocevski/155930/expmap_239587201_239846401_4FGL_J1748.0+3403_daily_bin1.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/155930/ltcube_239587201_239846401_4FGL_J1748.0+3403_daily_bin1.fits
.....................!
real 190.48
user 186.06
sys 4.03

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/155930/ft1_filtered_4FGL_J1748.0+3403_daily_bin1.fits scfile=/scratch/kocevski/155930/ft2_4FGL_J1748.0+3403_daily_bin1.fits outfile=/scratch/kocevski/155930/cmap_239587201_239846401_4FGL_J1748.0+3403_daily_bin1.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/155930/ft1_filtered_4FGL_J1748.0+3403_daily_bin1.fits scfile=/scratch/kocevski/155930/ft2_4FGL_J1748.0+3403_daily_bin1.fits outfile=/scratch/kocevski/155930/cmap_HighResolution_239587201_239846401_4FGL_J1748.0+3403_daily_bin1.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.400       1.0000         .10000E-03   10000.    
     4 'norm      '    9.3499       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.993       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.007       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7480       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.936       1.0000         .10000E-03   10000.    
    11 'Prefactor '    82.367       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.2685       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4147       1.0000         .10000E-03   10000.    
    14 'norm      '    12.616       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8902       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6326       1.0000         .10000E-03   10000.    
    17 'norm      '    7.9165       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .72483       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6546       1.0000         .10000E-03   10000.    
    22 'norm      '    52.492       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2627       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72168       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=   8444.471     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2771 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .39751       -.56255E-07** at limit **
   2  norm          .10000E-03    2.0953        .42090E-08** at limit **
   3  Prefactor     56.408        48.895        .22079E-06    .66614E-05
   4  norm          9.3507        5.7381        .12088E-06    .54540E-04
   5  Prefactor     21.997        40.061        .24046E-06    .27556E-05
   6  Prefactor     10.998        100.37        .24730E-05    .75249E-05
   7  Prefactor     .10000E-03    6.2097       -.14895E-06** at limit **
   8  Prefactor     .10000E-03    45.912       -.28261E-06** at limit **
   9  Prefactor     6.7502        14.448       -.32009E-06   -.30160E-04
  10  Prefactor     16.025        49.505       -.76450E-05   -.80089E-04
  11  Prefactor     82.224        107.12        .73543E-05    .63824E-04
  12  Prefactor     9.2685        6.5544        .41418E-09    .40938E-04
  13  norm          1.4147        1.1546        .59200E-07    .15964E-03
  14  norm          12.601        62.611        .96479E-06    .39287E-05
  15  norm          1.8894        12.401        .27053E-05    .13924E-03
  16  Prefactor     3.6331        4.2298        .20068E-06    .85336E-04
  17  norm          7.9135        7.8149       -.26273E-07    .35864E-04
  18  Prefactor     .10000E-03    1.1354        .43718E-07** at limit **
  19  Prefactor     .10000E-03    24.307       -.15503E-06** at limit **
  20  norm          .69400        17.764        .35288E-05   -.40736E-03
  21  Prefactor     1.6543        3.1600        .42764E-06    .19967E-03
  22  norm          52.492        40.713       -.12646E-06   -.24732E-05
  23  Normalizat    1.2624        .20511       -.29217E-05    .38555E-04
  24  Prefactor     .72183        .96036E-01    .16593E-05   -.28990E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 56.4077
  norm       = 9.35066
  Prefactor  = 21.9966
  Prefactor  = 10.9976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.75022
  Prefactor  = 16.0253
  Prefactor  = 82.2243
  Prefactor  = 9.2685
  norm       = 1.41471
  norm       = 12.6015
  norm       = 1.88939
  Prefactor  = 3.63306
  norm       = 7.91351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.693996
  Prefactor  = 1.6543
  norm       = 52.4915
  Normalizat = 1.26238
  Prefactor  = 0.721826
 **********
 **   18 **HESSE 
 **********

 FCN=   8444.471     FROM HESSE     STATUS=OK           407 CALLS     3178 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .67658        .11214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.0988        .12989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     56.408        48.900        .53415E-04   -1.4204    
   4  norm          9.3507        5.7358        .13106E-03   -1.5096    
   5  Prefactor     21.997        40.064        .85411E-04   -1.4770    
   6  Prefactor     10.998        100.49        .12076E-03   -1.5045    
   7  Prefactor     .10000E-03    6.2235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    46.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.7502        14.172        .15446E-03   -1.5188    
  10  Prefactor     16.025        50.780        .10033E-03   -1.4907    
  11  Prefactor     82.224        109.47        .44258E-04   -1.3892    
  12  Prefactor     9.2685        6.5581        .13164E-03   -1.5099    
  13  norm          1.4147        1.1623        .86824E-04   -1.5470    
  14  norm          12.601        62.553        .11278E-03   -1.4998    
  15  norm          1.8894        12.008        .30266E-03   -1.5433    
  16  Prefactor     3.6331        4.2194        .19569E-03   -1.5327    
  17  norm          7.9135        7.8218        .14251E-03   -1.5145    
  18  Prefactor     .10000E-03    1.1392        .95608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .69400        63.672        .62739E-02   -1.5541    
  21  Prefactor     1.6543        3.1364        .22007E-03   -1.5451    
  22  norm          52.492        40.719        .55357E-04   -1.4258    
  23  Normalizat    1.2624        .22686        .28858E-03   -.84696    
  24  Prefactor     .72183        .10719        .18186E-03   -1.0268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35928e-09
Minuit parameter uncertainties:
  1  6.38302e-06
  2  1.08867e-06
  3  48.9348
  4  5.73616
  5  40.1131
  6  66.6345
  7  7.50446e-06
  8  6.19876e-05
  9  14.1792
  10  50.9176
  11  109.74
  12  6.55859
  13  1.16229
  14  56.2462
  15  9.52894
  16  4.21975
  17  7.82277
  18  1.16206e-06
  19  2.53592e-05
  20  13.3084
  21  3.13675
  22  40.7405
  23  0.227038
  24  0.107218
Done.

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

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.000e-04  7.504e-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:  7.218e-01  1.072e-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.262e+00  2.270e-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: 5.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/155930/likelihoodResults_239587201_239846401_4FGL_J1748.0+3403_daily_bin1.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) = 8444.47168953
delta logL = -0.000765671597037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8444.47092386
delta logL = -2.42835085373e-09

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.3373       1.0000          .0000       10.000    
     3 'Normalizat'    1.2624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72183       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=   8444.471     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1023.3        .90712E-02** at limit **
   2  Index         2.3381        5.8779        .50000       -.12043E-05
   3  Normalizat    1.2624        .84922E-01    .65236E-01   -.26375E-04
   4  Prefactor     .72183        .41673E-01    .42691E-01   -.17284E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.33807
  Normalizat = 1.26238
  Prefactor  = 0.721826
 **********
 **   18 **HESSE 
 **********

 FCN=   8444.471     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      242 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1351.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3381        6.2274        .50000       -.56142    
   3  Normalizat    1.2624        .14041        .28859E-03   -.84696    
   4  Prefactor     .72183        .69245E-01    .18186E-03   -1.0268    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02046e-09
Minuit parameter uncertainties:
  1  0.000171881
  2  63.9325
  3  0.140449
  4  0.0692537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/155930': 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) = 8444.47092386
delta logL = 4.01996658184e-10

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.000e-04  1.719e-04  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.338e+00  6.393e+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.218e-01  6.925e-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:  1.262e+00  1.404e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/155930/cmap_HighResolution_239587201_239846401_4FGL_J1748.0+3403_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-03', job_status='DONE', photon_flux_upper_limit='5.87e-08', time_completed='2021-09-18 13:56:21.601651', job_id='155930', GAL2='0.72', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1631998581.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='4.02e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 13:56:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 155930: <4FGL_J1748.0+3403_daily_bin1> in cluster <slac> Done

Job <4FGL_J1748.0+3403_daily_bin1> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 18 13:40:14 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 13:40:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 13:40:15 2021
Terminated at Sat Sep 18 13:56:22 2021
Results reported at Sat Sep 18 13:56:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin1 267.011 34.0641 239587201 239846401 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 :                                   908.01 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             312.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            968 sec.

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

