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


Performing analysis on: 4FGL_J1748.0+3403_daily_bin836
RA = 267.011, Dec = 34.0641
tmin = 456019201, tmax = 456278401
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='168684', job_status='RUN', time_executed='2021-09-18 14:32:28.881752', time_epoch_executed='1632000748.88' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='836'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/168684

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/168684/ft1_4FGL_J1748.0+3403_daily_bin836.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/168684/ft2_4FGL_J1748.0+3403_daily_bin836.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/168684/ft1_4FGL_J1748.0+3403_daily_bin836.fits outfile=/scratch/kocevski/168684/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin836.fits ra=267.011 dec=34.0641 rad=12.0 tmin=456019201.0 tmax=456278401.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 6.90
user 6.64
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/168684/ft2_4FGL_J1748.0+3403_daily_bin836.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/168684/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin836.fits evtable="EVENTS" outfile="/scratch/kocevski/168684/ft1_filtered_4FGL_J1748.0+3403_daily_bin836.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/168684/ft1_filtered_4FGL_J1748.0+3403_daily_bin836.fits" evtable="EVENTS" scfile=/scratch/kocevski/168684/ft2_4FGL_J1748.0+3403_daily_bin836.fits sctable="SC_DATA" outfile=/scratch/kocevski/168684/ltcube_456019201_456278401_4FGL_J1748.0+3403_daily_bin836.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/168684/ft2_4FGL_J1748.0+3403_daily_bin836.fits
.....................!
real 11.86
user 11.47
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/168684/ft1_filtered_4FGL_J1748.0+3403_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/168684/ft2_4FGL_J1748.0+3403_daily_bin836.fits sctable="SC_DATA" expcube=/scratch/kocevski/168684/ltcube_456019201_456278401_4FGL_J1748.0+3403_daily_bin836.fits outfile=/scratch/kocevski/168684/expmap_456019201_456278401_4FGL_J1748.0+3403_daily_bin836.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/168684/ltcube_456019201_456278401_4FGL_J1748.0+3403_daily_bin836.fits
.....................!
real 190.41
user 184.91
sys 4.99

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/168684/ft1_filtered_4FGL_J1748.0+3403_daily_bin836.fits scfile=/scratch/kocevski/168684/ft2_4FGL_J1748.0+3403_daily_bin836.fits outfile=/scratch/kocevski/168684/cmap_456019201_456278401_4FGL_J1748.0+3403_daily_bin836.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/168684/ft1_filtered_4FGL_J1748.0+3403_daily_bin836.fits scfile=/scratch/kocevski/168684/ft2_4FGL_J1748.0+3403_daily_bin836.fits outfile=/scratch/kocevski/168684/cmap_HighResolution_456019201_456278401_4FGL_J1748.0+3403_daily_bin836.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/168684/ft1_filtered_4FGL_J1748.0+3403_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/168684/ft2_4FGL_J1748.0+3403_daily_bin836.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/168684/Model_4FGL_J1748.0+3403_daily_bin836.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/168684/ft1_filtered_4FGL_J1748.0+3403_daily_bin836.fits.....................!
real 57.74
user 56.14
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3459       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .42331E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14131       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.435       1.0000         .10000E-03   10000.    
    11 'Prefactor '    134.36       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.6570       1.0000         .10000E-03   10000.    
    14 'norm      '    .35603       1.0000         .10000E-03   10000.    
    15 'norm      '    3.1684       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1313       1.0000         .10000E-03   10000.    
    17 'norm      '    13.424       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.706       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95969       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95494       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=   6563.250     FROM MIGRAD    STATUS=CONVERGED    673 CALLS     2934 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .55900        .21517E-01** at limit **
   2  norm          .10000E-03    2.4248        .90712E-02** at limit **
   3  Prefactor     .10000E-03    25.807        .90712E-02** at limit **
   4  norm          .10000E-03    2.1162        .90712E-02** at limit **
   5  Prefactor     .10000E-03    29.060        .90712E-02** at limit **
   6  Prefactor     .10000E-03    34.840        .90712E-02** at limit **
   7  Prefactor     3.3627        20.111        .55315E-02    .14729E-03
   8  Prefactor     .10001E-03    236.46        .10619E-01** at limit **
   9  Prefactor     .10288E-03    7.1989        .97064E-01** at limit **
  10  Prefactor     13.488        43.744        .27320E-02   -.20965E-04
  11  Prefactor     134.36        115.12        .86859E-03    .36710E-03
  12  Prefactor     .10000E-03    6.2631        .90712E-02** at limit **
  13  norm          3.6572        1.9068        .52808E-02   -.37242E-04
  14  norm          .10001E-03    46.214        .17157    ** at limit **
  15  norm          3.1968        10.294        .56922E-02    .31494E-03
  16  Prefactor     3.1302        6.8250        .57276E-02    .52121E-03
  17  norm          13.424        10.386        .27331E-02   -.14072E-03
  18  Prefactor     .10000E-03    3.0647        .90712E-02** at limit **
  19  Prefactor     .10000E-03    11.652        .90712E-02** at limit **
  20  norm          .10000E-03    13.403        .90712E-02** at limit **
  21  Prefactor     25.700        11.465        .19753E-02    .35385E-04
  22  norm          .10000E-03    22.279        .90712E-02** at limit **
  23  Normalizat    .96010        .21747        .74711E-01    .24836E-03
  24  Prefactor     .95495        .11019        .45701E-01    .38373E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.36267
  Prefactor  = 0.000100006
  Prefactor  = 0.000102882
  Prefactor  = 13.4875
  Prefactor  = 134.358
  Prefactor  = 0.0001
  norm       = 3.65719
  norm       = 0.000100007
  norm       = 3.19679
  Prefactor  = 3.13018
  norm       = 13.4238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.7004
  norm       = 0.0001
  Normalizat = 0.960104
  Prefactor  = 0.954953
 **********
 **   18 **HESSE 
 **********

 FCN=   6563.250     FROM HESSE     STATUS=OK           411 CALLS     3345 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7961        .11786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.4280        .12320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.1373        .11507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    29.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.3627        19.965        .22126E-03   -1.5341    
   8  Prefactor     .10001E-03    242.26        .42475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10288E-03    12.835        .65107E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.488        43.443        .10928E-03   -1.4973    
  11  Prefactor     134.36        114.34        .34743E-04   -1.3384    
  12  Prefactor     .10000E-03    6.3510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.6572        1.9085        .78514E-04   -1.5325    
  14  norm          .10001E-03    46.378        .17019       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.1968        10.274        .22769E-03   -1.5350    
  16  Prefactor     3.1302        6.8078        .22910E-03   -1.5354    
  17  norm          13.424        10.398        .10932E-03   -1.4975    
  18  Prefactor     .10000E-03    3.1407        .27688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    13.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.700        11.493        .79010E-04   -1.4694    
  22  norm          .10000E-03    22.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .96010        .25489        .33060E-03   -.94379    
  24  Prefactor     .95495        .13036        .17221E-03   -.94246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64783e-09
Minuit parameter uncertainties:
  1  5.90662e-06
  2  3.28097e-07
  3  6.33225e-05
  4  3.4799e-06
  5  0.000164535
  6  0.000141818
  7  16.3951
  8  0.00249048
  9  0.0121663
  10  43.5451
  11  114.525
  12  1.09731e-05
  13  1.90853
  14  0.00115058
  15  10.2793
  16  6.80948
  17  10.3995
  18  9.01633e-06
  19  3.28535e-05
  20  7.11923e-05
  21  11.4943
  22  8.8586e-05
  23  0.255208
  24  0.130403
Done.

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

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  3.363e+00  1.640e+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.550e-01  1.304e-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.601e-01  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/168684/likelihoodResults_456019201_456278401_4FGL_J1748.0+3403_daily_bin836.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) = 6563.24276695
delta logL = 0.00684957774411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6562.94751354
delta logL = 0.302102990213

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.9893       1.0000          .0000       10.000    
     3 'Normalizat'    .89481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97799       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=   6562.948     FROM MIGRAD    STATUS=CONVERGED    127 CALLS      433 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .27819E-02    .42159E-03** at limit **
   2  Index         7.9885        2.7532        .14939        .16978E-03
   3  Normalizat    .89490        .43721E-01    .77113E-01    .84672E-04
   4  Prefactor     .97797        .22443E-01    .45991E-01    .95569E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.9885
  Normalizat = 0.894897
  Prefactor  = 0.977966
 **********
 **   18 **HESSE 
 **********

 FCN=   6562.948     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      472 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .32536E-01    .18378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.9885        8.6707        .81624E-02    .64063    
   3  Normalizat    .89490        .10702        .34130E-03   -.96640    
   4  Prefactor     .97797        .54727E-01    .17037E-03   -.93468    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.41402e-09
Minuit parameter uncertainties:
  1  2.08803e-07
  2  6.80248
  3  0.107041
  4  0.0547299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/168684': 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) = 6562.94751214
delta logL = 0.302104381465

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.000e-04  2.088e-07  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  7.989e+00  6.802e+00  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.780e-01  5.473e-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:  8.949e-01  1.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 267.011 34.064

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/168684/cmap_HighResolution_456019201_456278401_4FGL_J1748.0+3403_daily_bin836.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.71e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-18 14:46:42.644352', job_id='168684', GAL2='0.98', fit_tolerance='1e-08', EG2='0.89', EG='0.96', time_epoch_completed='1632001602.64', return_code2='102', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.02e-01', ts2='0.73', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='836' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 14:46:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 168684: <4FGL_J1748.0+3403_daily_bin836> in cluster <slac> Done

Job <4FGL_J1748.0+3403_daily_bin836> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 18 14:30:18 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 14:30:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 14:30:20 2021
Terminated at Sat Sep 18 14:46:43 2021
Results reported at Sat Sep 18 14:46:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin836 267.011 34.0641 456019201 456278401 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 :                                   851.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            985 sec.

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

