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


Performing analysis on: 4FGL_J1748.0+3403_daily_bin88
RA = 267.011, Dec = 34.0641
tmin = 262137601, tmax = 262396801
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='158476', job_status='RUN', time_executed='2021-09-18 13:54:05.082646', time_epoch_executed='1631998445.08' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='88'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158476

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158476/ft1_4FGL_J1748.0+3403_daily_bin88.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158476/ft2_4FGL_J1748.0+3403_daily_bin88.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158476/ft1_4FGL_J1748.0+3403_daily_bin88.fits outfile=/scratch/kocevski/158476/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin88.fits ra=267.011 dec=34.0641 rad=12.0 tmin=262137601.0 tmax=262396801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.40
user 1.22
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158476/ft1_filtered_4FGL_J1748.0+3403_daily_bin88.fits evtable="EVENTS" scfile=/scratch/kocevski/158476/ft2_4FGL_J1748.0+3403_daily_bin88.fits sctable="SC_DATA" expcube=/scratch/kocevski/158476/ltcube_262137601_262396801_4FGL_J1748.0+3403_daily_bin88.fits outfile=/scratch/kocevski/158476/expmap_262137601_262396801_4FGL_J1748.0+3403_daily_bin88.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/158476/ltcube_262137601_262396801_4FGL_J1748.0+3403_daily_bin88.fits
.....................!
real 191.60
user 186.33
sys 4.89

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/158476/ft1_filtered_4FGL_J1748.0+3403_daily_bin88.fits scfile=/scratch/kocevski/158476/ft2_4FGL_J1748.0+3403_daily_bin88.fits outfile=/scratch/kocevski/158476/cmap_262137601_262396801_4FGL_J1748.0+3403_daily_bin88.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158476/ft1_filtered_4FGL_J1748.0+3403_daily_bin88.fits scfile=/scratch/kocevski/158476/ft2_4FGL_J1748.0+3403_daily_bin88.fits outfile=/scratch/kocevski/158476/cmap_HighResolution_262137601_262396801_4FGL_J1748.0+3403_daily_bin88.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2635       1.0000         .10000E-03   10000.    
     2 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11302E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    25.351       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.095       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    80.161       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.829       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.446       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .95329       1.0000         .10000E-03   10000.    
    13 'norm      '    .44741       1.0000         .10000E-03   10000.    
    14 'norm      '    .12018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.2300       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.791       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.4417       1.0000         .10000E-03   10000.    
    22 'norm      '    27.866       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1620       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95288       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=   7726.589     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2359 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2637        1.3202        .33974E-05    .16664E-02
   2  norm          .10000E-03    9.3338        .12021E-05** at limit **
   3  Prefactor     .10000E-03    44.642       -.10971E-05** at limit **
   4  norm          25.332        12.292        .75210E-07   -.19598E-03
   5  Prefactor     24.443        196.88        .25139E-05    .95673E-04
   6  Prefactor     .10000E-03    26.655        .15052E-06** at limit **
   7  Prefactor     80.166        25.729        .51266E-06   -.81676E-04
   8  Prefactor     .10000E-03    16.699       -.50951E-07** at limit **
   9  Prefactor     46.831        17.313        .34346E-06   -.74085E-04
  10  Prefactor     33.460        32.499        .41840E-06   -.30146E-04
  11  Prefactor     .10000E-03    30.282       -.11196E-06** at limit **
  12  Prefactor     .94925        7.0322        .27286E-05   -.56243E-03
  13  norm          .44753        1.3789        .51713E-06   -.10720E-03
  14  norm          .10000E-03    69.614        .22173E-06** at limit **
  15  norm          .10000E-03    2.6320        .75826E-07** at limit **
  16  Prefactor     .10000E-03    1.8948       -.30406E-07** at limit **
  17  norm          .10000E-03    2.4335       -.26386E-07** at limit **
  18  Prefactor     8.2285        5.6286        .10840E-06   -.62945E-04
  19  Prefactor     .10000E-03    4.7227       -.82132E-07** at limit **
  20  norm          12.789        16.289       -.13700E-06    .46283E-05
  21  Prefactor     8.4407        6.9772       -.27838E-07   -.87190E-06
  22  norm          27.840        35.424       -.50912E-06   -.68784E-04
  23  Normalizat    1.1614        .24791       -.10361E-04    .32153E-04
  24  Prefactor     .95317        .11753        .44127E-05   -.88130E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26373
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 25.3323
  Prefactor  = 24.443
  Prefactor  = 0.0001
  Prefactor  = 80.1665
  Prefactor  = 0.0001
  Prefactor  = 46.8312
  Prefactor  = 33.4599
  Prefactor  = 0.0001
  Prefactor  = 0.949248
  norm       = 0.447529
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.22854
  Prefactor  = 0.0001
  norm       = 12.7887
  Prefactor  = 8.44072
  norm       = 27.8396
  Normalizat = 1.16137
  Prefactor  = 0.953173
 **********
 **   18 **HESSE 
 **********

 FCN=   7726.589     FROM HESSE     STATUS=OK           397 CALLS     2756 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2637        1.3389        .51395E-03   -1.5483    
   2  norm          .10000E-03    9.4062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    44.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          25.332        12.234        .79561E-04   -1.4701    
   5  Prefactor     24.443        192.46        .81604E-04   -1.4719    
   6  Prefactor     .10000E-03    26.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     80.166        25.643        .44857E-04   -1.3915    
   8  Prefactor     .10000E-03    16.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.831        17.314        .58593E-04   -1.4338    
  10  Prefactor     33.460        32.424        .69289E-04   -1.4550    
  11  Prefactor     .10000E-03    30.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .94925        17.594        .43303E-02   -1.5513    
  13  norm          .44753        1.5069        .17367E-02   -1.5574    
  14  norm          .10000E-03    69.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.6345        .13926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.8999        .11815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.4345        .13391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.2285        5.6265        .13975E-03   -1.5134    
  19  Prefactor     .10000E-03    4.7252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.789        16.290        .11200E-03   -1.4993    
  21  Prefactor     8.4407        6.9812        .13797E-03   -1.5127    
  22  norm          27.840        35.423        .37946E-03   -1.4652    
  23  Normalizat    1.1614        .27710        .35477E-03   -.87805    
  24  Prefactor     .95317        .13262        .19065E-03   -.94307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15383e-08
Minuit parameter uncertainties:
  1  1.33893
  2  2.49991e-05
  3  3.61357e-06
  4  12.2352
  5  137.792
  6  9.03439e-05
  7  25.6469
  8  1.11075e-05
  9  17.3154
  10  32.4412
  11  0.00012362
  12  8.17567
  13  1.50698
  14  0.000168437
  15  2.9813e-06
  16  4.18349e-06
  17  1.30627e-06
  18  5.62687
  19  5.78615e-07
  20  16.2955
  21  6.98187
  22  35.4493
  23  0.277453
  24  0.132662
Done.

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

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  8.017e+01  2.565e+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.532e-01  1.327e-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.161e+00  2.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.37
Ra Dec: 267.011 34.064
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 1.90e-07 +/- 6.08e-08
Energy Flux (Fixed Index): 6.81e-05 +/- 2.18e-05

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): 0
logL (Free Index) = 7726.45869687
delta logL = 0.12983098044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7726.45457137
delta logL = 0.133956488351

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    66.443       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4993       1.0000          .0000       10.000    
     3 'Normalizat'    1.1374       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96077       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=   7726.455     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      286 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     66.437        36.266        .49237E-04    .14726E-02
   2  Index         2.4992        .34276        .34576E-02    .85171E-03
   3  Normalizat    1.1373        .26596        .35788E-03   -.22427E-03
   4  Prefactor     .96081        .12916        .18996E-03   -.66229E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 66.4374
  Index      = 2.49922
  Normalizat = 1.13734
  Prefactor  = 0.960808
 **********
 **   18 **HESSE 
 **********

 FCN=   7726.455     FROM HESSE     STATUS=OK            23 CALLS      309 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     66.437        34.197        .98475E-05   -1.4076    
   2  Index         2.4992        .32300        .13831E-03   -.52378    
   3  Normalizat    1.1373        .26583        .14315E-04   -.88562    
   4  Prefactor     .96081        .12915        .37991E-04   -.94048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91867e-09
Minuit parameter uncertainties:
  1  34.2075
  2  0.323301
  3  0.266146
  4  0.129194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158476': 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): 0
logL (Free Index) = 7726.45457102
delta logL = 0.133956834576

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  6.644e+01  3.421e+01  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.499e+00  3.233e-01  0.000e+00  1.000e+01 (-1.000e+00)
335        Scale:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
671    Prefactor:  9.608e-01  1.292e-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.137e+00  2.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.66
Ra Dec: 267.011 34.064
Photon Index (Free Index): 2.50 +/- 0.32
Photon Flux (Free Index): 2.10e-07 +/- 7.44e-08
Energy Flux (Free Index): 6.10e-05 +/- 2.22e-05

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/158476/cmap_HighResolution_262137601_262396801_4FGL_J1748.0+3403_daily_bin88.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.90e-07', energy_flux2='6.10e-05', photon_flux_error='6.08e-08', dlogl='1.34e-01', energy_flux='6.81e-05', photon_flux2='2.10e-07', job_status='DONE', time_completed='2021-09-18 14:06:11.233726', photon_index_error2='0.32', photon_index2='2.50', ts='21.37', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.22e-05', EG='1.16', time_epoch_completed='1631999171.23', return_code='0', job_id='158476', GAL2='0.96', EG2='1.14', return_code2='0', energy_flux_error='2.18e-05', photon_flux_error2='7.44e-08', ts2='21.66', photon_index='2.34' WHERE bin_id='88' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 14:06:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 158476: <4FGL_J1748.0+3403_daily_bin88> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin88 267.011 34.0641 262137601 262396801 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 :                                   725.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             246.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            957 sec.

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

