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


Performing analysis on: 4FGL_J1748.0+3403_daily_bin266
RA = 267.011, Dec = 34.0641
tmin = 308275201, tmax = 308534401
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='162342', job_status='RUN', time_executed='2021-09-18 14:05:35.767162', time_epoch_executed='1631999135.77' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='266'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162342

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162342/ft1_4FGL_J1748.0+3403_daily_bin266.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162342/ft2_4FGL_J1748.0+3403_daily_bin266.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162342/ft1_4FGL_J1748.0+3403_daily_bin266.fits outfile=/scratch/kocevski/162342/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin266.fits ra=267.011 dec=34.0641 rad=12.0 tmin=308275201.0 tmax=308534401.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 3.41
user 3.15
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/162342/ft1_filtered_4FGL_J1748.0+3403_daily_bin266.fits" evtable="EVENTS" scfile=/scratch/kocevski/162342/ft2_4FGL_J1748.0+3403_daily_bin266.fits sctable="SC_DATA" outfile=/scratch/kocevski/162342/ltcube_308275201_308534401_4FGL_J1748.0+3403_daily_bin266.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/162342/ft2_4FGL_J1748.0+3403_daily_bin266.fits
.....................!
real 12.03
user 11.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162342/ft1_filtered_4FGL_J1748.0+3403_daily_bin266.fits evtable="EVENTS" scfile=/scratch/kocevski/162342/ft2_4FGL_J1748.0+3403_daily_bin266.fits sctable="SC_DATA" expcube=/scratch/kocevski/162342/ltcube_308275201_308534401_4FGL_J1748.0+3403_daily_bin266.fits outfile=/scratch/kocevski/162342/expmap_308275201_308534401_4FGL_J1748.0+3403_daily_bin266.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/162342/ltcube_308275201_308534401_4FGL_J1748.0+3403_daily_bin266.fits
.....................!
real 190.79
user 185.46
sys 4.96

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/162342/ft1_filtered_4FGL_J1748.0+3403_daily_bin266.fits scfile=/scratch/kocevski/162342/ft2_4FGL_J1748.0+3403_daily_bin266.fits outfile=/scratch/kocevski/162342/cmap_308275201_308534401_4FGL_J1748.0+3403_daily_bin266.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/162342/ft1_filtered_4FGL_J1748.0+3403_daily_bin266.fits scfile=/scratch/kocevski/162342/ft2_4FGL_J1748.0+3403_daily_bin266.fits outfile=/scratch/kocevski/162342/cmap_HighResolution_308275201_308534401_4FGL_J1748.0+3403_daily_bin266.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=267.011 yref=34.0641 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3735       1.0000         .10000E-03   10000.    
     2 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    62.396       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8275       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5269       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20287E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6189       1.0000         .10000E-03   10000.    
    14 'norm      '    .10641E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.4823       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .51991E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.524       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.597       1.0000         .10000E-03   10000.    
    22 'norm      '    22.638       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2488       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86992       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=   8083.863     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2701 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3737        1.3525       -.28748E-07   -.16951E-03
   2  norm          .10000E-03    3.2362       -.56085E-06** at limit **
   3  Prefactor     .10000E-03    16.158       -.24014E-06** at limit **
   4  norm          .10000E-03    1.8210       -.12024E-05** at limit **
   5  Prefactor     62.368        49.274       -.13677E-05   -.31266E-03
   6  Prefactor     .10000E-03    29.843        .89856E-06** at limit **
   7  Prefactor     7.8254        9.7486        .44613E-07    .59631E-04
   8  Prefactor     .10000E-03    23.766       -.34284E-06** at limit **
   9  Prefactor     .10000E-03    2.7036       -.10991E-06** at limit **
  10  Prefactor     1.5407        88.340        .68957E-05    .13165E-03
  11  Prefactor     .10000E-03    23.839       -.15547E-07** at limit **
  12  Prefactor     .10001E-03    7.0737        .38172E-05** at limit **
  13  norm          1.6191        1.5552        .12910E-06    .58720E-03
  14  norm          .10000E-03    62.439       -.25216E-06** at limit **
  15  norm          6.4827        6.9440        .26116E-06    .27366E-03
  16  Prefactor     .10000E-03    3.3386        .14128E-07** at limit **
  17  norm          .10002E-03    13.122       -.63747E-05** at limit **
  18  Prefactor     .10000E-03    2.1821        .11557E-07** at limit **
  19  Prefactor     23.514        18.650       -.31157E-06    .79255E-04
  20  norm          .10000E-03    6.9209        .35587E-08** at limit **
  21  Prefactor     23.598        10.011        .77124E-07    .49338E-04
  22  norm          22.640        63.298        .65558E-06    .13968E-04
  23  Normalizat    1.2488        .20488        .20115E-05    .91982E-04
  24  Prefactor     .86992        .10242       -.12344E-05   -.17626E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.37366
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 62.3678
  Prefactor  = 0.000100002
  Prefactor  = 7.82537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.54072
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 1.61913
  norm       = 0.0001
  norm       = 6.48268
  Prefactor  = 0.0001
  norm       = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 23.5141
  norm       = 0.0001
  Prefactor  = 23.5979
  norm       = 22.64
  Normalizat = 1.2488
  Prefactor  = 0.869921
 **********
 **   18 **HESSE 
 **********

 FCN=   8083.863     FROM HESSE     STATUS=OK           395 CALLS     3096 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3737        1.3548        .64204E-04   -1.5341    
   2  norm          .10000E-03    3.2751        .15865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.9636        .12270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     62.368        50.326        .25400E-03   -1.4127    
   6  Prefactor     .10000E-03    30.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.8254        9.7445        .14332E-03   -1.5148    
   8  Prefactor     .10000E-03    23.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7087        .14441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.5407        93.363        .34554E-03   -1.5460    
  11  Prefactor     .10000E-03    23.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    17.336        .34648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6191        1.5485        .10682E-03   -1.5453    
  14  norm          .10000E-03    62.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.4827        6.9613        .15763E-03   -1.5199    
  16  Prefactor     .10000E-03    3.3768        .16038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10002E-03    18.801        .36726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.1950        .12959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.514        18.378        .82588E-04   -1.4738    
  20  norm          .10000E-03    6.9211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.598        10.017        .82460E-04   -1.4736    
  22  norm          22.640        63.417        .84187E-04   -1.4756    
  23  Normalizat    1.2488        .24013        .31328E-03   -.85108    
  24  Prefactor     .86992        .12015        .18407E-03   -.97200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84432e-09
Minuit parameter uncertainties:
  1  1.35477
  2  6.69336e-05
  3  6.09738e-05
  4  0.000110634
  5  50.36
  6  0.000479856
  7  9.74651
  8  0.000202502
  9  1.24728e-05
  10  24.0257
  11  0.000101365
  12  0.000719046
  13  1.54855
  14  0.000180917
  15  6.96217
  16  9.66157e-07
  17  0.00124724
  18  2.00728e-06
  19  18.3828
  20  9.29446e-07
  21  10.0178
  22  63.6064
  23  0.240345
  24  0.12019
Done.

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

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  7.825e+00  9.747e+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

GAL_V02
   Spectrum: PowerLaw
671    Prefactor:  8.699e-01  1.202e-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.249e+00  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.23
Ra Dec: 267.011 34.064
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 1.86e-08 +/- 2.31e-08
Energy Flux (Fixed Index): 6.65e-06 +/- 8.28e-06

TS (Fixed Index): 1.23
Ra Dec: 267.011 34.064
Photon Flux Upper Limit: 8.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/162342/likelihoodResults_308275201_308534401_4FGL_J1748.0+3403_daily_bin266.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): 0
logL (Free Index) = 8082.94833674
delta logL = 0.914283868659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8082.92753303
delta logL = 0.935087570626

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.138       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3906       1.0000          .0000       10.000    
     3 'Normalizat'    1.2601       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86728       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8082.928     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      211 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.167        11.921        .31461E-02   -.52419E-04
   2  Index         1.3916        .48284        .31127       -.40492E-04
   3  Normalizat    1.2603        .19804        .70506E-01    .27621E-04
   4  Prefactor     .86722        .99544E-01    .44587E-01    .19935E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1671
  Index      = 1.39164
  Normalizat = 1.26029
  Prefactor  = 0.867225
 **********
 **   18 **HESSE 
 **********

 FCN=   8082.928     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.167        13.032        .12584E-03   -1.5070    
   2  Index         1.3916        .64589        .11216E-01   -.80622    
   3  Normalizat    1.2603        .23324        .31197E-03   -.84760    
   4  Prefactor     .86722        .11745        .18427E-03   -.97296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39169e-09
Minuit parameter uncertainties:
  1  13.0358
  2  0.649696
  3  0.233436
  4  0.117479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162342': 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) = 8082.92753046
delta logL = 0.935090144564

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.017e+01  1.304e+01  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  1.392e+00  6.497e-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:  8.672e-01  1.175e-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.260e+00  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.10
Ra Dec: 267.011 34.064
Photon Index (Free Index): 1.39 +/- 0.65
Photon Flux (Free Index): 7.48e-09 +/- 1.08e-08
Energy Flux (Free Index): 3.40e-05 +/- 5.43e-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/162342/cmap_HighResolution_308275201_308534401_4FGL_J1748.0+3403_daily_bin266.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.47e-03', comment='SUCCESS', photon_flux='1.86e-08', energy_flux2='3.40e-05', photon_flux_error='2.31e-08', dlogl='9.35e-01', energy_flux='6.65e-06', photon_flux2='7.48e-09', job_status='DONE', time_completed='2021-09-18 14:20:45.330800', photon_index_error2='0.65', photon_index2='1.39', ts='1.23', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='8.42e-08', energy_flux_error2='5.43e-05', EG='1.25', time_epoch_completed='1632000045.33', return_code='0', job_id='162342', GAL2='0.87', EG2='1.26', return_code2='0', energy_flux_error='8.28e-06', photon_flux_error2='1.08e-08', ts2='3.10', photon_index='2.34' WHERE bin_id='266' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 14:20:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 162342: <4FGL_J1748.0+3403_daily_bin266> in cluster <slac> Done

Job <4FGL_J1748.0+3403_daily_bin266> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 18 14:05:24 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 14:05:26 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:05:26 2021
Terminated at Sat Sep 18 14:20:46 2021
Results reported at Sat Sep 18 14:20:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin266 267.011 34.0641 308275201 308534401 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 :                                   900.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            922 sec.

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

