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


Performing analysis on: 4FGL_J1748.0+3403_daily_bin526
RA = 267.011, Dec = 34.0641
tmin = 375667201, tmax = 375926401
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='165061', job_status='RUN', time_executed='2021-09-18 14:15:44.639636', time_epoch_executed='1631999744.64' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165061

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165061/ft1_4FGL_J1748.0+3403_daily_bin526.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165061/ft2_4FGL_J1748.0+3403_daily_bin526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165061/ft1_4FGL_J1748.0+3403_daily_bin526.fits outfile=/scratch/kocevski/165061/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin526.fits ra=267.011 dec=34.0641 rad=12.0 tmin=375667201.0 tmax=375926401.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.81
user 4.53
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/165061/ft1_filtered_4FGL_J1748.0+3403_daily_bin526.fits" evtable="EVENTS" scfile=/scratch/kocevski/165061/ft2_4FGL_J1748.0+3403_daily_bin526.fits sctable="SC_DATA" outfile=/scratch/kocevski/165061/ltcube_375667201_375926401_4FGL_J1748.0+3403_daily_bin526.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/165061/ft2_4FGL_J1748.0+3403_daily_bin526.fits
.....................!
real 11.94
user 11.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165061/ft1_filtered_4FGL_J1748.0+3403_daily_bin526.fits evtable="EVENTS" scfile=/scratch/kocevski/165061/ft2_4FGL_J1748.0+3403_daily_bin526.fits sctable="SC_DATA" expcube=/scratch/kocevski/165061/ltcube_375667201_375926401_4FGL_J1748.0+3403_daily_bin526.fits outfile=/scratch/kocevski/165061/expmap_375667201_375926401_4FGL_J1748.0+3403_daily_bin526.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/165061/ltcube_375667201_375926401_4FGL_J1748.0+3403_daily_bin526.fits
.....................!
real 191.18
user 186.64
sys 4.16

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/165061/ft1_filtered_4FGL_J1748.0+3403_daily_bin526.fits scfile=/scratch/kocevski/165061/ft2_4FGL_J1748.0+3403_daily_bin526.fits outfile=/scratch/kocevski/165061/cmap_375667201_375926401_4FGL_J1748.0+3403_daily_bin526.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/165061/ft1_filtered_4FGL_J1748.0+3403_daily_bin526.fits scfile=/scratch/kocevski/165061/ft2_4FGL_J1748.0+3403_daily_bin526.fits outfile=/scratch/kocevski/165061/cmap_HighResolution_375667201_375926401_4FGL_J1748.0+3403_daily_bin526.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.0860       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.7778       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10628E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    199.00       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10936E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.765       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    18.438       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10787E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.549       1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.106       1.0000         .10000E-03   10000.    
    22 'norm      '    57.046       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .88216       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0494       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=   8182.113     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2740 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .49992       -.10171E-07** at limit **
   2  norm          7.0844        10.534       -.31466E-06   -.80688E-04
   3  Prefactor     .10000E-03    32.334        .22373E-05** at limit **
   4  norm          3.7760        5.6548       -.10483E-05   -.43525E-03
   5  Prefactor     .10000E-03    52.522        .16846E-05** at limit **
   6  Prefactor     198.94        119.37       -.36459E-04    .78235E-05
   7  Prefactor     .10000E-03    9.2299        .53028E-06** at limit **
   8  Prefactor     .10000E-03    34.069       -.10747E-04** at limit **
   9  Prefactor     .10000E-03    5.9552        .61519E-07** at limit **
  10  Prefactor     .10000E-03    26.588       -.67105E-05** at limit **
  11  Prefactor     .10000E-03    235.71       -.17203E-04** at limit **
  12  Prefactor     .10000E-03    3.4354        .64310E-07** at limit **
  13  norm          .10000E-03    .58303        .22589E-07** at limit **
  14  norm          .10000E-03    28.850        .13105E-04** at limit **
  15  norm          12.763        9.6573       -.13990E-05   -.56689E-04
  16  Prefactor     .10000E-03    3.9856       -.15478E-06** at limit **
  17  norm          18.443        12.348       -.25975E-05   -.27843E-04
  18  Prefactor     .10000E-03    3.6536       -.38489E-06** at limit **
  19  Prefactor     11.517        25.283        .17048E-04    .11783E-04
  20  norm          .10000E-03    12.724        .67097E-07** at limit **
  21  Prefactor     22.108        10.949       -.44491E-06   -.59143E-04
  22  norm          57.033        51.013       -.71538E-05   -.31993E-05
  23  Normalizat    .88219        .22268        .42887E-05   -.67974E-04
  24  Prefactor     1.0494        .10864       -.60143E-06    .26806E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 7.08435
  Prefactor  = 0.0001
  norm       = 3.77603
  Prefactor  = 0.0001
  Prefactor  = 198.945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 12.7627
  Prefactor  = 0.0001
  norm       = 18.4433
  Prefactor  = 0.0001
  Prefactor  = 11.5169
  norm       = 0.0001
  Prefactor  = 22.1083
  norm       = 57.0334
  Normalizat = 0.882191
  Prefactor  = 1.04937
 **********
 **   18 **HESSE 
 **********

 FCN=   8182.113     FROM HESSE     STATUS=OK           391 CALLS     3131 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .51859        .12476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.0844        10.529        .15070E-03   -1.5176    
   3  Prefactor     .10000E-03    32.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.7760        5.6330        .20770E-03   -1.5319    
   5  Prefactor     .10000E-03    52.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     198.94        119.28        .14321E-03   -1.2878    
   7  Prefactor     .10000E-03    9.2722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.9817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    238.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4479        .16372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .58590        .67444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    28.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.763        9.6714        .11211E-03   -1.4993    
  16  Prefactor     .10000E-03    4.0427        .17629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          18.443        12.359        .93275E-04   -1.4849    
  18  Prefactor     .10000E-03    3.7502        .33748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.517        25.225        .11788E-03   -1.5029    
  20  norm          .10000E-03    12.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.108        10.959        .85191E-04   -1.4767    
  22  norm          57.033        51.035        .26557E-03   -1.4196    
  23  Normalizat    .88219        .25802        .37480E-03   -.97089    
  24  Prefactor     1.0494        .12699        .17467E-03   -.91101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57503e-10
Minuit parameter uncertainties:
  1  1.8478e-06
  2  10.5319
  3  7.53752e-05
  4  5.63376
  5  0.00010334
  6  119.428
  7  0.000133961
  8  1.04705e-05
  9  7.28371e-07
  10  8.20475e-05
  11  0.000468569
  12  4.78823e-06
  13  3.14313e-06
  14  3.25083e-05
  15  9.67263
  16  1.79759e-05
  17  12.3609
  18  6.96735e-05
  19  25.2484
  20  1.54217e-06
  21  10.9597
  22  51.0742
  23  0.258377
  24  0.127028
Done.

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

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.000e-04  1.340e-04  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.049e+00  1.270e-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:  8.822e-01  2.584e-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: 7.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/165061/likelihoodResults_375667201_375926401_4FGL_J1748.0+3403_daily_bin526.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) = 8182.11309925
delta logL = -0.000513994275934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8182.11258513
delta logL = 1.28879946715e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3118       1.0000          .0000       10.000    
     3 'Normalizat'    .88220       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0494       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=   8182.113     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      246 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10183E-03    95.230        .18142E-02** at limit **
   2  Index         2.2433        7.5392        .50000        .17144E-04
   3  Normalizat    .88219        .16563E-01    .37480E-03   -.17593E-04
   4  Prefactor     1.0494        .84077E-02    .17467E-03    .41343E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101834
  Index      = 2.24328
  Normalizat = 0.882194
  Prefactor  = 1.04937
 **********
 **   18 **HESSE 
 **********

 FCN=   8182.113     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10183E-03    402.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2433        7.9571        .50000       -.58398    
   3  Normalizat    .88219        .35457E-01    .14992E-04   -.97089    
   4  Prefactor     1.0494        .17999E-01    .34934E-04   -.91101    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.12539e-08
Minuit parameter uncertainties:
  1  0.0547171
  2  676.163
  3  0.035458
  4  0.0179991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165061': 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) = 8182.11258491
delta logL = 3.48331923306e-07

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.018e-04  5.472e-02  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.243e+00  6.762e+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.049e+00  1.800e-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.822e-01  3.546e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/165061/cmap_HighResolution_375667201_375926401_4FGL_J1748.0+3403_daily_bin526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-03', job_status='DONE', photon_flux_upper_limit='7.39e-08', time_completed='2021-09-18 14:30:36.173000', job_id='165061', GAL2='1.05', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632000636.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='526' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 14:30:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 165061: <4FGL_J1748.0+3403_daily_bin526> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin526 267.011 34.0641 375667201 375926401 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 :                                   886.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            904 sec.

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

