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


Performing analysis on: 4FGL_J1748.0+3403_daily_bin1216
RA = 267.011, Dec = 34.0641
tmin = 554515201, tmax = 554774401
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='171448', job_status='RUN', time_executed='2021-09-18 14:44:39.019063', time_epoch_executed='1632001479.02' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='1216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171448

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171448/ft1_4FGL_J1748.0+3403_daily_bin1216.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171448/ft2_4FGL_J1748.0+3403_daily_bin1216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171448/ft1_4FGL_J1748.0+3403_daily_bin1216.fits outfile=/scratch/kocevski/171448/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin1216.fits ra=267.011 dec=34.0641 rad=12.0 tmin=554515201.0 tmax=554774401.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 4.11
user 3.90
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/171448/ft2_4FGL_J1748.0+3403_daily_bin1216.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/171448/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin1216.fits evtable="EVENTS" outfile="/scratch/kocevski/171448/ft1_filtered_4FGL_J1748.0+3403_daily_bin1216.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.50
user 0.31
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171448/ft1_filtered_4FGL_J1748.0+3403_daily_bin1216.fits evtable="EVENTS" scfile=/scratch/kocevski/171448/ft2_4FGL_J1748.0+3403_daily_bin1216.fits sctable="SC_DATA" expcube=/scratch/kocevski/171448/ltcube_554515201_554774401_4FGL_J1748.0+3403_daily_bin1216.fits outfile=/scratch/kocevski/171448/expmap_554515201_554774401_4FGL_J1748.0+3403_daily_bin1216.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/171448/ltcube_554515201_554774401_4FGL_J1748.0+3403_daily_bin1216.fits
.....................!
real 190.51
user 185.13
sys 5.05

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/171448/ft1_filtered_4FGL_J1748.0+3403_daily_bin1216.fits scfile=/scratch/kocevski/171448/ft2_4FGL_J1748.0+3403_daily_bin1216.fits outfile=/scratch/kocevski/171448/cmap_554515201_554774401_4FGL_J1748.0+3403_daily_bin1216.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/171448/ft1_filtered_4FGL_J1748.0+3403_daily_bin1216.fits scfile=/scratch/kocevski/171448/ft2_4FGL_J1748.0+3403_daily_bin1216.fits outfile=/scratch/kocevski/171448/cmap_HighResolution_554515201_554774401_4FGL_J1748.0+3403_daily_bin1216.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/171448/ft1_filtered_4FGL_J1748.0+3403_daily_bin1216.fits', '/scratch/kocevski/171448/ft2_4FGL_J1748.0+3403_daily_bin1216.fits', expMap='/scratch/kocevski/171448/expmap_554515201_554774401_4FGL_J1748.0+3403_daily_bin1216.fits', expCube='/scratch/kocevski/171448/ltcube_554515201_554774401_4FGL_J1748.0+3403_daily_bin1216.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/171448/Model_4FGL_J1748.0+3403_daily_bin1216.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/171448/ft1_filtered_4FGL_J1748.0+3403_daily_bin1216.fits
Spacecraft file(s): /scratch/kocevski/171448/ft2_4FGL_J1748.0+3403_daily_bin1216.fits
Exposure map: /scratch/kocevski/171448/expmap_554515201_554774401_4FGL_J1748.0+3403_daily_bin1216.fits
Exposure cube: /scratch/kocevski/171448/ltcube_554515201_554774401_4FGL_J1748.0+3403_daily_bin1216.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/171448/Model_4FGL_J1748.0+3403_daily_bin1216.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 989.481260575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 987.785031965

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10684       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .67653       1.0000         .10000E-03   10000.    
     4 'norm      '    .17739       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20081       1.0000         .10000E-03   10000.    
     6 'Prefactor '    487.23       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .45952E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14982       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7026       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.540       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .92727       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10441E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .55409       1.0000         .10000E-03   10000.    
    15 'norm      '    8.3827       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .79136E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .23370E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .19589E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .47362E-01   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .34935       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0204       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   987.7645     FROM MIGRAD    STATUS=CONVERGED    240 CALLS      629 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    27.525       -.19118E-05** at limit **
   2  norm          .10000E-03    69.146        .28670E-05** at limit **
   3  Prefactor     .10000E-03    588.03        .15371E-03** at limit **
   4  norm          .10000E-03    40.309        .31437E-05** at limit **
   5  Prefactor     .10000E-03    529.94        .19569E-04** at limit **
   6  Prefactor     507.79        464.91        .50859E-06    .59189E-05
   7  Prefactor     .10000E-03    48.202        .29184E-05** at limit **
   8  Prefactor     .10000E-03    47.555        .23290E-04** at limit **
   9  Prefactor     .10012E-03    6761.8        .18970E-03** at limit **
  10  Prefactor     18.637        152.54        .36521E-04   -.20920E-04
  11  Prefactor     .10000E-03    114.58       -.39516E-05** at limit **
  12  Prefactor     .10000E-03    20.755        .92197E-05** at limit **
  13  norm          .10000E-03    3.4431       -.11297E-05** at limit **
  14  norm          .10000E-03    351.13        .40183E-04** at limit **
  15  norm          8.3827        1.0018         .0000         .0000    
  16  Prefactor     .10000E-03    86.602       -.28332E-04** at limit **
  17  norm          .10000E-03    12.743       -.28051E-06** at limit **
  18  Prefactor     .10000E-03    10.090       -.34737E-07** at limit **
  19  Prefactor     .10000E-03    62.947        .32234E-04** at limit **
  20  norm          .10000E-03    107.95       -.14029E-05** at limit **
  21  Prefactor     .10000E-03    30.918       -.83818E-05** at limit **
  22  norm          .10000E-03    613.15        .39530E-05** at limit **
  23  Normalizat    .34421        .64760       -.46598E-04    .31493E-05
  24  Prefactor     1.0259        .28874        .17096E-05    .44171E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 507.793
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100121
  Prefactor  = 18.6371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.38269
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.344205
  Prefactor  = 1.02591
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   987.7645     FROM HESSE     STATUS=FAILED        67 CALLS      696 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    27.646        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    69.214        .95438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    585.15        .11972E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    40.250        .98740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    529.68        .99813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     507.79        447.11        .46449E-03   -1.1162    
   7  Prefactor     .10000E-03    47.926        .92503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    47.670        .97461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10012E-03    6762.0        .61948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.637        144.51        .17298E-02   -1.4844    
  11  Prefactor     .10000E-03    114.33        .12906E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.738        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.4579        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    350.29        .11490E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          502.31        493.90         .0000       -1.5129    
  16  Prefactor     .10000E-03    .27323       -.28332E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .20571       -.28051E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .20571       -.34737E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .20882        .32234E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .25622       -.14029E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .20571       -.83818E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .21424        .39530E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .34421        .65612       -.46598E-04   -1.2029    
  24  Prefactor     1.0259        1.2399        .17096E-05   -.91871    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.60752e-11
Minuit parameter uncertainties:
  1  4.38806e-06
  2  5.97393e-06
  3  0.00146969
  4  4.99876e-06
  5  0.0002203
  6  450.256
  7  3.87336e-07
  8  4.63253e-05
  9  0.044127
  10  104.141
  11  8.73237e-06
  12  2.02833e-05
  13  3.78207e-07
  14  4.50751e-05
  15  1.00179
  16  1.14871e-06
  17  9.15432e-08
  18  1.05977e-08
  19  4.85981e-06
  20  1.37219e-07
  21  1.23586e-06
  22  7.21619e-06
  23  0.671665
  24  1.27732
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 987.764489638

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.000e-04  3.873e-07  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:  1.026e+00  1.277e+00  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:  3.442e-01  6.717e-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.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/171448/likelihoodResults_554515201_554774401_4FGL_J1748.0+3403_daily_bin1216.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) = 987.764588488
delta logL = -9.88499548384e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 987.764490158
delta logL = -5.20086359757e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7412       1.0000          .0000       10.000    
     3 'Normalizat'    .34420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0259       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=   987.7645     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      273 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10303E-03    28.979        .17900E-01** at limit **
   2  Index         2.6604        6.2555        .50000        .68299E-05
   3  Normalizat    .34420        .13460E-01    .57443E-03   -.26555E-04
   4  Prefactor     1.0259        .58349E-02    .14707E-03   -.13044E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103029
  Index      = 2.66037
  Normalizat = 0.344199
  Prefactor  = 1.02592
 **********
 **   18 **HESSE 
 **********

 FCN=   987.7645     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10303E-03    276.35        .18421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6604        6.0383        .50000       -.48694    
   3  Normalizat    .34420        .42008E-01    .22977E-04   -1.2029    
   4  Prefactor     1.0259        .18211E-01    .58829E-05   -.91871    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.74375e-09
Minuit parameter uncertainties:
  1  0.0581313
  2  534.469
  3  0.0420116
  4  0.0182111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171448': 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) = 987.764490025
delta logL = -3.87653926737e-07

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.030e-04  5.813e-02  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.660e+00  5.345e+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:  1.026e+00  1.821e-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:  3.442e-01  4.201e-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/171448/cmap_HighResolution_554515201_554774401_4FGL_J1748.0+3403_daily_bin1216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.31e-02', job_status='DONE', photon_flux_upper_limit='5.60e-07', time_completed='2021-09-18 14:50:34.744343', job_id='171448', GAL2='1.03', fit_tolerance='1e-08', EG2='0.34', EG='0.34', time_epoch_completed='1632001834.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.03', dlogl='-3.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1216' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 14:50:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 171448: <4FGL_J1748.0+3403_daily_bin1216> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin1216 267.011 34.0641 554515201 554774401 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 :                                   352.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             219.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   602 sec.
    Turnaround time :                            605 sec.

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

