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


Performing analysis on: 4FGL_J1748.0+3403_daily_bin1352
RA = 267.011, Dec = 34.0641
tmin = 589766401, tmax = 590025601
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='172783', job_status='RUN', time_executed='2021-09-18 14:45:40.427697', time_epoch_executed='1632001540.43' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='1352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/172783

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/172783/ft1_4FGL_J1748.0+3403_daily_bin1352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/172783/ft2_4FGL_J1748.0+3403_daily_bin1352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/172783/ft1_4FGL_J1748.0+3403_daily_bin1352.fits outfile=/scratch/kocevski/172783/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin1352.fits ra=267.011 dec=34.0641 rad=12.0 tmin=589766401.0 tmax=590025601.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 5.24
user 4.96
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/172783/ft1_filtered_4FGL_J1748.0+3403_daily_bin1352.fits evtable="EVENTS" scfile=/scratch/kocevski/172783/ft2_4FGL_J1748.0+3403_daily_bin1352.fits sctable="SC_DATA" expcube=/scratch/kocevski/172783/ltcube_589766401_590025601_4FGL_J1748.0+3403_daily_bin1352.fits outfile=/scratch/kocevski/172783/expmap_589766401_590025601_4FGL_J1748.0+3403_daily_bin1352.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/172783/ltcube_589766401_590025601_4FGL_J1748.0+3403_daily_bin1352.fits
.....................!
real 190.43
user 185.22
sys 4.77

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/172783/ft1_filtered_4FGL_J1748.0+3403_daily_bin1352.fits scfile=/scratch/kocevski/172783/ft2_4FGL_J1748.0+3403_daily_bin1352.fits outfile=/scratch/kocevski/172783/cmap_589766401_590025601_4FGL_J1748.0+3403_daily_bin1352.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/172783/ft1_filtered_4FGL_J1748.0+3403_daily_bin1352.fits scfile=/scratch/kocevski/172783/ft2_4FGL_J1748.0+3403_daily_bin1352.fits outfile=/scratch/kocevski/172783/cmap_HighResolution_589766401_590025601_4FGL_J1748.0+3403_daily_bin1352.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1395       1.0000         .10000E-03   10000.    
     2 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    61.469       1.0000         .10000E-03   10000.    
     4 'norm      '    9.5108       1.0000         .10000E-03   10000.    
     5 'Prefactor '    158.90       1.0000         .10000E-03   10000.    
     6 'Prefactor '    101.25       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.877       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .35380E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7585       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    26.120       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.996       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10731E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    35.257       1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.499       1.0000         .10000E-03   10000.    
    22 'norm      '    83.373       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .79075       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0669       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=   7467.311     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2826 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1396        1.2491        .69928E-06    .12003E-02
   2  norm          .10001E-03    11.555       -.16222E-05** at limit **
   3  Prefactor     61.479        60.718        .18811E-06   -.92907E-04
   4  norm          9.5103        7.1876       -.14347E-06   -.53795E-03
   5  Prefactor     158.93        106.14       -.26660E-06   -.18883E-03
   6  Prefactor     101.27        113.88        .68366E-06   -.54986E-04
   7  Prefactor     10.877        12.546       -.96539E-07   -.11918E-03
   8  Prefactor     .10000E-03    62.287       -.11954E-05** at limit **
   9  Prefactor     .10002E-03    226.12       -.35498E-04** at limit **
  10  Prefactor     6.7632        76.380        .70403E-06   -.49326E-04
  11  Prefactor     .10000E-03    55.980       -.44221E-06** at limit **
  12  Prefactor     .10000E-03    5.8850        .76432E-07** at limit **
  13  norm          .10000E-03    .55002       -.96620E-07** at limit **
  14  norm          .10000E-03    17.281       -.18738E-06** at limit **
  15  norm          .10000E-03    6.1548        .17623E-06** at limit **
  16  Prefactor     .10000E-03    14.064       -.11796E-04** at limit **
  17  norm          26.119        14.177        .36585E-08    .49522E-04
  18  Prefactor     12.997        7.0736       -.87034E-07    .28322E-04
  19  Prefactor     .10000E-03    59.196       -.15708E-05** at limit **
  20  norm          35.252        40.182       -.43697E-06    .13643E-05
  21  Prefactor     27.494        15.746       -.11824E-06   -.39181E-04
  22  norm          83.430        78.679        .80303E-06   -.68607E-04
  23  Normalizat    .79052        .25734       -.71487E-05   -.28699E-03
  24  Prefactor     1.0671        .12129        .22458E-05    .14006E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.13957
  norm       = 0.000100006
  Prefactor  = 61.4792
  norm       = 9.51029
  Prefactor  = 158.925
  Prefactor  = 101.266
  Prefactor  = 10.877
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 6.76325
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 26.1189
  Prefactor  = 12.9973
  Prefactor  = 0.0001
  norm       = 35.2524
  Prefactor  = 27.4943
  norm       = 83.4298
  Normalizat = 0.790521
  Prefactor  = 1.0671
 **********
 **   18 **HESSE 
 **********

 FCN=   7467.311     FROM HESSE     STATUS=OK           403 CALLS     3229 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1396        1.2537        .98928E-04   -1.5494    
   2  norm          .10001E-03    11.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     61.479        60.698        .51178E-04   -1.4138    
   4  norm          9.5103        7.1810        .12995E-03   -1.5091    
   5  Prefactor     158.93        106.42        .15994E-03   -1.3180    
   6  Prefactor     101.27        113.91        .39956E-04   -1.3692    
   7  Prefactor     10.877        12.538        .12148E-03   -1.5048    
   8  Prefactor     .10000E-03    62.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    13.084        .73876E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.7632        76.026        .15434E-03   -1.5188    
  11  Prefactor     .10000E-03    55.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.9085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .55143        .62592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    17.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.2283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.250        .35056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          26.119        14.196        .78382E-04   -1.4685    
  18  Prefactor     12.997        7.0346        .11111E-03   -1.4987    
  19  Prefactor     .10000E-03    59.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          35.252        40.244        .67491E-04   -1.4520    
  21  Prefactor     27.494        15.777        .76397E-04   -1.4659    
  22  norm          83.430        78.845        .21996E-03   -1.3879    
  23  Normalizat    .79052        .28894        .42117E-03   -1.0042    
  24  Prefactor     1.0671        .13916        .18160E-03   -.90525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78214e-09
Minuit parameter uncertainties:
  1  1.25376
  2  0.000517439
  3  60.7596
  4  7.18165
  5  106.547
  6  114.156
  7  12.5409
  8  0.000173197
  9  0.00100459
  10  45.4239
  11  0.00104799
  12  3.59892e-05
  13  5.99463e-06
  14  6.75742e-06
  15  5.91046e-05
  16  0.000516588
  17  14.1981
  18  7.03508
  19  0.000337707
  20  40.2754
  21  15.7798
  22  78.9445
  23  0.289506
  24  0.139206
Done.

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

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.088e+01  1.254e+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:  1.067e+00  1.392e-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:  7.905e-01  2.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.69
Ra Dec: 267.011 34.064
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 2.58e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 9.25e-06 +/- 1.07e-05

TS (Fixed Index): 1.69
Ra Dec: 267.011 34.064
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/172783/likelihoodResults_589766401_590025601_4FGL_J1748.0+3403_daily_bin1352.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) = 7467.29842241
delta logL = 0.0130289034714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7467.29573962
delta logL = 0.0157116991741

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.823       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1623       1.0000          .0000       10.000    
     3 'Normalizat'    .79546       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0659       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=   7467.296     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      238 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.815        551.91        .29126E-02    .49376E-05
   2  Index         2.1613        5.0220        .24932        .25127E-04
   3  Normalizat    .79553        .16392        .94783E-01    .32600E-04
   4  Prefactor     1.0659        .48910E-01    .39058E-01   -.18120E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8147
  Index      = 2.16127
  Normalizat = 0.79553
  Prefactor  = 1.06586
 **********
 **   18 **HESSE 
 **********

 FCN=   7467.296     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.815        14.406        .11651E-03   -1.5020    
   2  Index         2.1613        .97160        .13574E-01   -.60377    
   3  Normalizat    .79553        .26828        .41995E-03   -1.0023    
   4  Prefactor     1.0659        .13308        .18170E-03   -.90565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07333e-10
Minuit parameter uncertainties:
  1  14.4103
  2  0.980861
  3  0.268729
  4  0.133118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/172783': 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) = 7467.2957387
delta logL = 0.0157126207023

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.181e+01  1.441e+01  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.161e+00  9.809e-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:  1.066e+00  1.331e-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:  7.955e-01  2.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 267.011 34.064
Photon Index (Free Index): 2.16 +/- 0.98
Photon Flux (Free Index): 2.09e-08 +/- 3.48e-08
Energy Flux (Free Index): 1.01e-05 +/- 1.39e-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/172783/cmap_HighResolution_589766401_590025601_4FGL_J1748.0+3403_daily_bin1352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.52e-03', comment='SUCCESS', photon_flux='2.58e-08', energy_flux2='1.01e-05', photon_flux_error='2.97e-08', dlogl='1.57e-02', energy_flux='9.25e-06', photon_flux2='2.09e-08', job_status='DONE', time_completed='2021-09-18 14:59:40.607781', photon_index_error2='0.98', photon_index2='2.16', ts='1.69', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='1.39e-05', EG='0.79', time_epoch_completed='1632002380.61', return_code='0', job_id='172783', GAL2='1.07', EG2='0.80', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='3.48e-08', ts2='1.71', photon_index='2.34' WHERE bin_id='1352' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 14:59:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 172783: <4FGL_J1748.0+3403_daily_bin1352> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin1352 267.011 34.0641 589766401 590025601 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 :                                   832.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            854 sec.

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

