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


Performing analysis on: 4FGL_J1751.6+2921_daily_bin525
RA = 267.904, Dec = 29.3582
tmin = 375408001, tmax = 375667201
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='217395', job_status='RUN', time_executed='2021-09-18 17:15:38.541771', time_epoch_executed='1632010538.54' WHERE source_name='4FGL J1751.6+2921' and cadence='daily' and bin_id='525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217395

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217395/ft1_4FGL_J1751.6+2921_daily_bin525.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217395/ft2_4FGL_J1751.6+2921_daily_bin525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217395/ft1_4FGL_J1751.6+2921_daily_bin525.fits outfile=/scratch/kocevski/217395/ft1_filteredMKT_4FGL_J1751.6+2921_daily_bin525.fits ra=267.904 dec=29.3582 rad=12.0 tmin=375408001.0 tmax=375667201.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.45
user 3.22
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/217395/ft2_4FGL_J1751.6+2921_daily_bin525.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/217395/ft2_4FGL_J1751.6+2921_daily_bin525.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/217395/ft1_filteredMKT_4FGL_J1751.6+2921_daily_bin525.fits evtable="EVENTS" outfile="/scratch/kocevski/217395/ft1_filtered_4FGL_J1751.6+2921_daily_bin525.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217395/ft1_filtered_4FGL_J1751.6+2921_daily_bin525.fits" evtable="EVENTS" scfile=/scratch/kocevski/217395/ft2_4FGL_J1751.6+2921_daily_bin525.fits sctable="SC_DATA" outfile=/scratch/kocevski/217395/ltcube_375408001_375667201_4FGL_J1751.6+2921_daily_bin525.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/217395/ft2_4FGL_J1751.6+2921_daily_bin525.fits
.....................!
real 12.22
user 11.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217395/ft1_filtered_4FGL_J1751.6+2921_daily_bin525.fits evtable="EVENTS" scfile=/scratch/kocevski/217395/ft2_4FGL_J1751.6+2921_daily_bin525.fits sctable="SC_DATA" expcube=/scratch/kocevski/217395/ltcube_375408001_375667201_4FGL_J1751.6+2921_daily_bin525.fits outfile=/scratch/kocevski/217395/expmap_375408001_375667201_4FGL_J1751.6+2921_daily_bin525.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/217395/ltcube_375408001_375667201_4FGL_J1751.6+2921_daily_bin525.fits
.....................!
real 191.11
user 186.27
sys 4.03

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 210 point sources and 0 extended sources

Setting source of interest to:
4FGL J1751.6+2921 @ 267.904 29.3582

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/217395/ft1_filtered_4FGL_J1751.6+2921_daily_bin525.fits scfile=/scratch/kocevski/217395/ft2_4FGL_J1751.6+2921_daily_bin525.fits outfile=/scratch/kocevski/217395/cmap_375408001_375667201_4FGL_J1751.6+2921_daily_bin525.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.904 yref=29.3582 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.60
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217395/ft1_filtered_4FGL_J1751.6+2921_daily_bin525.fits scfile=/scratch/kocevski/217395/ft2_4FGL_J1751.6+2921_daily_bin525.fits outfile=/scratch/kocevski/217395/cmap_HighResolution_375408001_375667201_4FGL_J1751.6+2921_daily_bin525.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.904 yref=29.3582 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/217395/ft1_filtered_4FGL_J1751.6+2921_daily_bin525.fits evtable="EVENTS" scfile=/scratch/kocevski/217395/ft2_4FGL_J1751.6+2921_daily_bin525.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217395/Model_4FGL_J1751.6+2921_daily_bin525.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/217395/ft1_filtered_4FGL_J1751.6+2921_daily_bin525.fits.....................!
real 82.25
user 79.94
sys 1.87

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/217395/ft1_filtered_4FGL_J1751.6+2921_daily_bin525.fits', '/scratch/kocevski/217395/ft2_4FGL_J1751.6+2921_daily_bin525.fits', expMap='/scratch/kocevski/217395/expmap_375408001_375667201_4FGL_J1751.6+2921_daily_bin525.fits', expCube='/scratch/kocevski/217395/ltcube_375408001_375667201_4FGL_J1751.6+2921_daily_bin525.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/217395/Model_4FGL_J1751.6+2921_daily_bin525.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1751.6+2921'

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  9.593e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.618e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  7.773e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/217395/ft1_filtered_4FGL_J1751.6+2921_daily_bin525.fits
Spacecraft file(s): /scratch/kocevski/217395/ft2_4FGL_J1751.6+2921_daily_bin525.fits
Exposure map: /scratch/kocevski/217395/expmap_375408001_375667201_4FGL_J1751.6+2921_daily_bin525.fits
Exposure cube: /scratch/kocevski/217395/ltcube_375408001_375667201_4FGL_J1751.6+2921_daily_bin525.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/217395/Model_4FGL_J1751.6+2921_daily_bin525.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) = 9268.12361636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.593       1.0000         .10000E-03   10000.    
     2 'Prefactor '    84.683       1.0000         .10000E-03   10000.    
     3 'norm      '    6.1614       1.0000         .10000E-03   10000.    
     4 'norm      '    56.230       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.218       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.506       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10641E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    19.597       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7546       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.584       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6288       1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.500       1.0000         .10000E-03   10000.    
    20 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4063       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78199       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9268.098     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2371 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.585        24.607        .14998E-05    .82915E-04
   2  Prefactor     84.722        50.206        .71667E-06    .47363E-04
   3  norm          6.1605        5.7843        .58533E-06    .25731E-03
   4  norm          56.167        77.180       -.12742E-05   -.32629E-04
   5  Prefactor     14.356        129.90        .30853E-05    .21659E-04
   6  Prefactor     .10000E-03    27.876        .44778E-07** at limit **
   7  Prefactor     .10000E-03    6.2883        .21588E-06** at limit **
   8  Prefactor     .10000E-03    121.03       -.38766E-06** at limit **
   9  Prefactor     52.523        43.632        .18323E-05    .80865E-04
  10  Prefactor     .10000E-03    170.93        .21715E-05** at limit **
  11  Prefactor     .10000E-03    23.502       -.10587E-05** at limit **
  12  norm          .10000E-03    .72535        .50231E-07** at limit **
  13  norm          19.610        64.700        .20055E-05    .90895E-05
  14  Prefactor     .10000E-03    9.9119        .47227E-07** at limit **
  15  norm          .10000E-03    5.5000        .19875E-08** at limit **
  16  Prefactor     5.7550        6.4806        .37826E-06    .15359E-03
  17  Prefactor     22.588        20.282        .32708E-07    .24104E-04
  18  norm          2.6191        46.337       -.38931E-06    .15179E-04
  19  Prefactor     34.500        12.039        .42712E-07    .22572E-04
  20  norm          .10000E-03    18.437        .17846E-08** at limit **
  21  Normalizat    1.4053        .26523       -.83719E-05    .73708E-04
  22  Prefactor     .78237        .10206        .39986E-05   -.22977E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5848
  Prefactor  = 84.7216
  norm       = 6.16047
  norm       = 56.1667
  Prefactor  = 14.3563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.5232
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 19.61
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.755
  Prefactor  = 22.5876
  norm       = 2.61909
  Prefactor  = 34.4999
  norm       = 0.0001
  Normalizat = 1.40529
  Prefactor  = 0.782368
 **********
 **   18 **HESSE 
 **********

 FCN=   9268.098     FROM HESSE     STATUS=OK           342 CALLS     2713 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.585        24.719        .58828E-03   -1.5027    
   2  Prefactor     84.722        50.194        .21827E-03   -1.3864    
   3  norm          6.1605        5.7935        .16173E-03   -1.5212    
   4  norm          56.167        77.294        .26748E-03   -1.4208    
   5  Prefactor     14.356        129.42        .10622E-03   -1.4950    
   6  Prefactor     .10000E-03    27.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    121.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     52.523        43.649        .55350E-04   -1.4257    
  10  Prefactor     .10000E-03    171.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.512        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .74164        .80030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          19.610        64.631        .90476E-04   -1.4822    
  14  Prefactor     .10000E-03    10.313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.5463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.7550        6.4710        .16743E-03   -1.5228    
  17  Prefactor     22.588        20.245        .84287E-04   -1.4757    
  18  norm          2.6191        46.531        .25152E-03   -1.5384    
  19  Prefactor     34.500        12.037        .68226E-04   -1.4533    
  20  norm          .10000E-03    18.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4053        .26488        .34461E-03   -.80476    
  22  Prefactor     .78237        .10230        .17871E-03   -1.0038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75849e-10
Minuit parameter uncertainties:
  1  24.7409
  2  50.2189
  3  5.79399
  4  77.4328
  5  86.4579
  6  2.07059e-05
  7  1.87673e-05
  8  0.000346511
  9  43.6759
  10  0.00104367
  11  0.000161647
  12  1.02785e-07
  13  64.8634
  14  3.15334e-05
  15  5.34415e-06
  16  6.47181
  17  20.2507
  18  22.0986
  19  12.038
  20  2.81935e-06
  21  0.265136
  22  0.102321
Done.

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

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  5.252e+01  4.368e+01  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.618e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  7.773e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
696    Prefactor:  7.824e-01  1.023e-01  0.000e+00  1.000e+01 ( 1.000e+00)
697        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
698        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
695   Normalization:  1.405e+00  2.651e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.92
Ra Dec: 267.904 29.358
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 6.97e-08 +/- 5.79e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.50e-05

TS (Fixed Index): 1.92
Ra Dec: 267.904 29.358
Photon Flux Upper Limit: 1.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.44e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217395/likelihoodResults_375408001_375667201_4FGL_J1751.6+2921_daily_bin525.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) = 9268.09709844
delta logL = 0.000922993584027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9268.09641583
delta logL = 0.00160560226504

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9268.096     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      236 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.592        1024.0        .14096E-02    .26314E-03
   2  Index         2.6577        6.3285        .17259        .12475E-03
   3  Normalizat    1.4034        .89295E-01    .77908E-01    .12078E-04
   4  Prefactor     .78293        .33702E-01    .43495E-01    .93264E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.5916
  Index      = 2.65772
  Normalizat = 1.40344
  Prefactor  = 0.782927
 **********
 **   18 **HESSE 
 **********

 FCN=   9268.096     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.592        59.062        .56382E-04   -1.4284    
   2  Index         2.6577        .77119        .89404E-02   -.48754    
   3  Normalizat    1.4034        .25231        .34481E-03   -.80529    
   4  Prefactor     .78293        .99895E-01    .17865E-03   -1.0036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47781e-09
Minuit parameter uncertainties:
  1  59.1305
  2  0.77516
  3  0.252538
  4  0.0999178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217395': 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) = 9268.09641572
delta logL = 0.0016057144112

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  5.059e+01  5.913e+01  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.658e+00  7.752e-01  0.000e+00  1.000e+01 (-1.000e+00)
341        Scale:  7.773e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
696    Prefactor:  7.829e-01  9.992e-02  0.000e+00  1.000e+01 ( 1.000e+00)
697        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
698        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
695   Normalization:  1.403e+00  2.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 267.904 29.358
Photon Index (Free Index): 2.66 +/- 0.78
Photon Flux (Free Index): 7.11e-08 +/- 6.24e-08
Energy Flux (Free Index): 1.77e-05 +/- 1.60e-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/217395/cmap_HighResolution_375408001_375667201_4FGL_J1751.6+2921_daily_bin525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-02', comment='SUCCESS', photon_flux='6.97e-08', energy_flux2='1.77e-05', photon_flux_error='5.79e-08', dlogl='1.61e-03', energy_flux='1.80e-05', photon_flux2='7.11e-08', job_status='DONE', time_completed='2021-09-18 17:30:43.986515', photon_index_error2='0.78', photon_index2='2.66', ts='1.92', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.84e-07', energy_flux_error2='1.60e-05', EG='1.41', time_epoch_completed='1632011443.99', return_code='0', job_id='217395', GAL2='0.78', EG2='1.40', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='6.24e-08', ts2='1.92', photon_index='2.62' WHERE bin_id='525' AND source_name='4FGL J1751.6+2921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 17:30:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 217395: <4FGL_J1751.6+2921_daily_bin525> in cluster <slac> Done

Job <4FGL_J1751.6+2921_daily_bin525> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 18 17:15:23 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 17:15:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 17:15:25 2021
Terminated at Sat Sep 18 17:30:44 2021
Results reported at Sat Sep 18 17:30:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1751.6+2921_daily_bin525 267.904 29.3582 375408001 375667201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1751.6+2921 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 :                             333.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

