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


Performing analysis on: 4FGL_J1748.0+3403_daily_bin505
RA = 267.011, Dec = 34.0641
tmin = 370224001, tmax = 370483201
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='165028', job_status='RUN', time_executed='2021-09-18 14:17:35.075811', time_epoch_executed='1631999855.08' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165028

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165028/ft1_4FGL_J1748.0+3403_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165028/ft2_4FGL_J1748.0+3403_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165028/ft1_4FGL_J1748.0+3403_daily_bin505.fits outfile=/scratch/kocevski/165028/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin505.fits ra=267.011 dec=34.0641 rad=12.0 tmin=370224001.0 tmax=370483201.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 16.18
user 15.69
sys 0.44

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/165028/ft1_filtered_4FGL_J1748.0+3403_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/165028/ft2_4FGL_J1748.0+3403_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/165028/ltcube_370224001_370483201_4FGL_J1748.0+3403_daily_bin505.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/165028/ft2_4FGL_J1748.0+3403_daily_bin505.fits
.....................!
real 10.47
user 10.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165028/ft1_filtered_4FGL_J1748.0+3403_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/165028/ft2_4FGL_J1748.0+3403_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/165028/ltcube_370224001_370483201_4FGL_J1748.0+3403_daily_bin505.fits outfile=/scratch/kocevski/165028/expmap_370224001_370483201_4FGL_J1748.0+3403_daily_bin505.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/165028/ltcube_370224001_370483201_4FGL_J1748.0+3403_daily_bin505.fits
.....................!
real 190.42
user 185.49
sys 4.61

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/165028/ft1_filtered_4FGL_J1748.0+3403_daily_bin505.fits scfile=/scratch/kocevski/165028/ft2_4FGL_J1748.0+3403_daily_bin505.fits outfile=/scratch/kocevski/165028/cmap_370224001_370483201_4FGL_J1748.0+3403_daily_bin505.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=267.011 yref=34.0641 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/165028/ft1_filtered_4FGL_J1748.0+3403_daily_bin505.fits scfile=/scratch/kocevski/165028/ft2_4FGL_J1748.0+3403_daily_bin505.fits outfile=/scratch/kocevski/165028/cmap_HighResolution_370224001_370483201_4FGL_J1748.0+3403_daily_bin505.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/165028/ft1_filtered_4FGL_J1748.0+3403_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/165028/ft2_4FGL_J1748.0+3403_daily_bin505.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/165028/Model_4FGL_J1748.0+3403_daily_bin505.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/165028/ft1_filtered_4FGL_J1748.0+3403_daily_bin505.fits.....................!
real 34.10
user 32.66
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0375       1.0000         .10000E-03   10000.    
     2 'norm      '    12.482       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13481E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    87.285       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27580E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11338E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.776       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11410E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11352E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .13262E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.9429       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.773       1.0000         .10000E-03   10000.    
    17 'norm      '    .10654E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.8367       1.0000         .10000E-03   10000.    
    20 'norm      '    .15301E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    59.892       1.0000         .10000E-03   10000.    
    22 'norm      '    .14989E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4318       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90021       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=   2694.070     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     3026 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0373        1.4387        .47920E-06    .47512E-03
   2  norm          12.476        14.273        .70723E-06   -.53072E-04
   3  Prefactor     .10000E-03    36.806        .71733E-06** at limit **
   4  norm          .10000E-03    5.4738        .38502E-05** at limit **
   5  Prefactor     87.577        168.59        .94174E-05    .35266E-04
   6  Prefactor     .10000E-03    136.85       -.99789E-07** at limit **
   7  Prefactor     .10000E-03    16.508       -.15352E-07** at limit **
   8  Prefactor     .10000E-03    58.185       -.29816E-06** at limit **
   9  Prefactor     30.747        24.543        .34962E-06   -.64673E-04
  10  Prefactor     .10000E-03    31.019       -.28142E-06** at limit **
  11  Prefactor     .10000E-03    59.675       -.45299E-06** at limit **
  12  Prefactor     .10000E-03    11.966       -.20879E-06** at limit **
  13  norm          .10000E-03    1.8145       -.29382E-06** at limit **
  14  norm          .10000E-03    108.55        .21958E-06** at limit **
  15  norm          5.9423        11.277        .45848E-05    .38478E-03
  16  Prefactor     25.769        18.083        .53649E-06   -.51267E-05
  17  norm          .10000E-03    20.663       -.33023E-05** at limit **
  18  Prefactor     .10000E-03    10.021       -.62742E-05** at limit **
  19  Prefactor     9.6476        144.87       -.11014E-04   -.61495E-04
  20  norm          .10000E-03    46.052       -.29522E-06** at limit **
  21  Prefactor     59.929        34.685       -.63247E-06    .27921E-04
  22  norm          .10000E-03    74.774        .60147E-06** at limit **
  23  Normalizat    1.4311        .50420       -.28591E-04    .76267E-04
  24  Prefactor     .90049        .24726        .15919E-04   -.26303E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.03732
  norm       = 12.4762
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 87.5766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.7466
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.94228
  Prefactor  = 25.7689
  norm       = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 9.64764
  norm       = 0.0001
  Prefactor  = 59.9292
  norm       = 0.0001
  Normalizat = 1.4311
  Prefactor  = 0.900491
 **********
 **   18 **HESSE 
 **********

 FCN=   2694.070     FROM HESSE     STATUS=OK           387 CALLS     3413 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0373        1.3885        .70767E-03   -1.5504    
   2  norm          12.476        14.257        .11338E-03   -1.5001    
   3  Prefactor     .10000E-03    36.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.5856        .11965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     87.577        168.69        .21502E-03   -1.3834    
   6  Prefactor     .10000E-03    136.88        .21425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    58.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.747        24.572        .72223E-04   -1.4598    
  10  Prefactor     .10000E-03    31.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    59.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.969        .17539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.8166        .68289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    108.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.9423        11.406        .82360E-03   -1.5220    
  16  Prefactor     25.769        18.098        .78908E-04   -1.4692    
  17  norm          .10000E-03    20.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.279        .16217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.6476        147.89        .12777E-03   -1.5087    
  20  norm          .10000E-03    46.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     59.929        34.695        .51844E-04   -1.4158    
  22  norm          .10000E-03    74.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4311        .51727        .34817E-03   -.79733    
  24  Prefactor     .90049        .25450        .21778E-03   -.96124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24931e-09
Minuit parameter uncertainties:
  1  1.38852
  2  14.2608
  3  5.42472e-05
  4  0.000182438
  5  169.627
  6  0.000122363
  7  3.26948e-05
  8  6.31725e-05
  9  24.58
  10  0.00010413
  11  5.29604e-05
  12  1.7573e-05
  13  6.41356e-06
  14  0.000261244
  15  11.4102
  16  18.1015
  17  0.00034687
  18  0.000373541
  19  75.7704
  20  0.000248403
  21  34.7063
  22  0.00034867
  23  0.519187
  24  0.254833
Done.

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

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.000e-04  3.269e-05  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.005e-01  2.548e-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.431e+00  5.192e-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: 1.82e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/165028/likelihoodResults_370224001_370483201_4FGL_J1748.0+3403_daily_bin505.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) = 2694.06985508
delta logL = -0.00028687584836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2694.06956929
delta logL = -1.08169251689e-06

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     '    2.7932       1.0000          .0000       10.000    
     3 'Normalizat'    1.4310       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90052       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=   2694.070     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      269 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10173E-03    99.636        .17854E-02** at limit **
   2  Index         2.7308        5.1683        .50000        .14965E-04
   3  Normalizat    1.4311        .30034E-01    .34820E-03    .15835E-05
   4  Prefactor     .90050        .15424E-01    .21776E-03    .17515E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101727
  Index      = 2.73082
  Normalizat = 1.43109
  Prefactor  = 0.900499
 **********
 **   18 **HESSE 
 **********

 FCN=   2694.070     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      298 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10173E-03    423.50        .35709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7308        7.3107        .50000       -.47107    
   3  Normalizat    1.4311        .64056E-01    .13928E-04   -.79734    
   4  Prefactor     .90050        .32898E-01    .87106E-05   -.96124    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.88441e-08
Minuit parameter uncertainties:
  1  0.0544787
  2  657.949
  3  0.06406
  4  0.0328986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165028': 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) = 2694.06956913
delta logL = -9.24962478166e-07

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.017e-04  5.448e-02  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.731e+00  6.579e+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.005e-01  3.290e-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.431e+00  6.406e-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/165028/cmap_HighResolution_370224001_370483201_4FGL_J1748.0+3403_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', job_status='DONE', photon_flux_upper_limit='1.82e-07', time_completed='2021-09-18 14:27:10.188524', job_id='165028', GAL2='0.90', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1632000430.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-9.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='505' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 14:27:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 165028: <4FGL_J1748.0+3403_daily_bin505> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin505 267.011 34.0641 370224001 370483201 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 :                                   571.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            702 sec.

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

