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


Performing analysis on: 4FGL_J1751.6+2921_daily_bin1521
RA = 267.904, Dec = 29.3582
tmin = 633571201, tmax = 633830401
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='223110', job_status='RUN', time_executed='2021-09-18 17:35:55.924167', time_epoch_executed='1632011755.92' WHERE source_name='4FGL J1751.6+2921' and cadence='daily' and bin_id='1521'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223110

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223110/ft1_4FGL_J1751.6+2921_daily_bin1521.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223110/ft2_4FGL_J1751.6+2921_daily_bin1521.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223110/ft1_4FGL_J1751.6+2921_daily_bin1521.fits outfile=/scratch/kocevski/223110/ft1_filteredMKT_4FGL_J1751.6+2921_daily_bin1521.fits ra=267.904 dec=29.3582 rad=12.0 tmin=633571201.0 tmax=633830401.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.59
user 3.35
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/223110/ft2_4FGL_J1751.6+2921_daily_bin1521.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/223110/ft1_filteredMKT_4FGL_J1751.6+2921_daily_bin1521.fits evtable="EVENTS" outfile="/scratch/kocevski/223110/ft1_filtered_4FGL_J1751.6+2921_daily_bin1521.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/223110/ft1_filtered_4FGL_J1751.6+2921_daily_bin1521.fits" evtable="EVENTS" scfile=/scratch/kocevski/223110/ft2_4FGL_J1751.6+2921_daily_bin1521.fits sctable="SC_DATA" outfile=/scratch/kocevski/223110/ltcube_633571201_633830401_4FGL_J1751.6+2921_daily_bin1521.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/223110/ft2_4FGL_J1751.6+2921_daily_bin1521.fits
.....................!
real 11.85
user 11.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223110/ft1_filtered_4FGL_J1751.6+2921_daily_bin1521.fits evtable="EVENTS" scfile=/scratch/kocevski/223110/ft2_4FGL_J1751.6+2921_daily_bin1521.fits sctable="SC_DATA" expcube=/scratch/kocevski/223110/ltcube_633571201_633830401_4FGL_J1751.6+2921_daily_bin1521.fits outfile=/scratch/kocevski/223110/expmap_633571201_633830401_4FGL_J1751.6+2921_daily_bin1521.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/223110/ltcube_633571201_633830401_4FGL_J1751.6+2921_daily_bin1521.fits
.....................!
real 191.42
user 186.26
sys 4.79

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/223110/ft1_filtered_4FGL_J1751.6+2921_daily_bin1521.fits scfile=/scratch/kocevski/223110/ft2_4FGL_J1751.6+2921_daily_bin1521.fits outfile=/scratch/kocevski/223110/cmap_633571201_633830401_4FGL_J1751.6+2921_daily_bin1521.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/223110/ft1_filtered_4FGL_J1751.6+2921_daily_bin1521.fits scfile=/scratch/kocevski/223110/ft2_4FGL_J1751.6+2921_daily_bin1521.fits outfile=/scratch/kocevski/223110/cmap_HighResolution_633571201_633830401_4FGL_J1751.6+2921_daily_bin1521.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/223110/ft1_filtered_4FGL_J1751.6+2921_daily_bin1521.fits', '/scratch/kocevski/223110/ft2_4FGL_J1751.6+2921_daily_bin1521.fits', expMap='/scratch/kocevski/223110/expmap_633571201_633830401_4FGL_J1751.6+2921_daily_bin1521.fits', expCube='/scratch/kocevski/223110/ltcube_633571201_633830401_4FGL_J1751.6+2921_daily_bin1521.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/223110/Model_4FGL_J1751.6+2921_daily_bin1521.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/223110/ft1_filtered_4FGL_J1751.6+2921_daily_bin1521.fits
Spacecraft file(s): /scratch/kocevski/223110/ft2_4FGL_J1751.6+2921_daily_bin1521.fits
Exposure map: /scratch/kocevski/223110/expmap_633571201_633830401_4FGL_J1751.6+2921_daily_bin1521.fits
Exposure cube: /scratch/kocevski/223110/ltcube_633571201_633830401_4FGL_J1751.6+2921_daily_bin1521.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/223110/Model_4FGL_J1751.6+2921_daily_bin1521.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) = 7812.92489648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    58.062       1.0000         .10000E-03   10000.    
     3 'norm      '    4.9073       1.0000         .10000E-03   10000.    
     4 'norm      '    25.642       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9516       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12222E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16998E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.052       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8413       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4543       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74868       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99454       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=   7812.923     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2314 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.948        .53875E-06** at limit **
   2  Prefactor     58.071        46.402       -.17679E-07    .21227E-05
   3  norm          4.9081        4.5011        .13691E-06    .48618E-04
   4  norm          25.573        79.189        .54109E-05   -.33643E-04
   5  Prefactor     .10000E-03    27.610       -.12468E-06** at limit **
   6  Prefactor     .10000E-03    58.023        .90236E-06** at limit **
   7  Prefactor     5.9513        7.5376        .43800E-06    .53750E-04
   8  Prefactor     .10000E-03    160.38        .24644E-05** at limit **
   9  Prefactor     .10001E-03    104.04       -.14801E-05** at limit **
  10  Prefactor     .10000E-03    48.205        .10213E-05** at limit **
  11  Prefactor     .10000E-03    1.9738       -.11275E-07** at limit **
  12  norm          .10000E-03    .60635        .15795E-07** at limit **
  13  norm          .10000E-03    22.131       -.33285E-06** at limit **
  14  Prefactor     .10000E-03    2.3601        .10083E-07** at limit **
  15  norm          21.051        10.490        .45089E-07    .57097E-04
  16  Prefactor     4.8419        4.0692       -.96832E-08    .12109E-03
  17  Prefactor     .10000E-03    7.7834        .43738E-07** at limit **
  18  norm          .10000E-03    38.253       -.37823E-06** at limit **
  19  Prefactor     1.4558        6.9151        .13616E-04   -.23343E-04
  20  norm          .10000E-03    16.443        .31864E-07** at limit **
  21  Normalizat    .74824        .20607       -.32691E-05   -.30200E-04
  22  Prefactor     .99464        .90637E-01    .59571E-06    .80070E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 58.0713
  norm       = 4.90807
  norm       = 25.5726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.95126
  Prefactor  = 0.000100001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 21.051
  Prefactor  = 4.84189
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.45581
  norm       = 0.0001
  Normalizat = 0.748241
  Prefactor  = 0.994636
 **********
 **   18 **HESSE 
 **********

 FCN=   7812.923     FROM HESSE     STATUS=OK           332 CALLS     2646 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     58.071        46.391        .52650E-04   -1.4182    
   3  norm          4.9081        4.5022        .17230E-03   -1.5265    
   4  norm          25.573        79.357        .79109E-04   -1.4696    
   5  Prefactor     .10000E-03    27.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    58.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.9513        7.5395        .16460E-03   -1.5220    
   8  Prefactor     .10000E-03    162.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    105.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    48.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9763        .12127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .61113        .67210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    22.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.3752        .13258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.051        10.492        .87297E-04   -1.4790    
  16  Prefactor     4.8419        4.0682        .15755E-03   -1.5268    
  17  Prefactor     .10000E-03    7.7990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    38.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4558        6.9689        .17854E-02   -1.5467    
  20  norm          .10000E-03    16.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .74824        .23270        .38431E-03   -1.0202    
  22  Prefactor     .99464        .10335        .14879E-03   -.92909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57225e-09
Minuit parameter uncertainties:
  1  1.351e-05
  2  46.4202
  3  4.50252
  4  79.6869
  5  2.45474e-05
  6  7.57914e-05
  7  7.54067
  8  0.000717624
  9  0.00154959
  10  9.83365e-05
  11  3.07895e-07
  12  1.03329e-06
  13  2.10367e-05
  14  5.24802e-07
  15  10.4927
  16  4.06844
  17  5.01358e-06
  18  0.000246989
  19  6.37133
  20  2.27955e-06
  21  0.233008
  22  0.103372
Done.

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

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  1.550e-03  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:  9.946e-01  1.034e-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:  7.482e-01  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 267.904 29.358
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/223110/likelihoodResults_633571201_633830401_4FGL_J1751.6+2921_daily_bin1521.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7812.92299098
delta logL = -4.50239322163e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7812.9229461
delta logL = -1.39296389534e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5746       1.0000          .0000       10.000    
     3 'Normalizat'    .74825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99464       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=   7812.923     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      267 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10027E-03    33.502        .12556    ** at limit **
   2  Index         2.6980        6.3466        .50000       -.15801E-04
   3  Normalizat    .74825        .59114E-02    .86774E-01   -.47258E-03
   4  Prefactor     .99463        .26229E-02    .33673E-01   -.14856E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100268
  Index      = 2.69803
  Normalizat = 0.748247
  Prefactor  = 0.994632
 **********
 **   18 **HESSE 
 **********

 FCN=   7812.923     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      302 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10027E-03    8180.6        .88441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6980        5.0107        .50000       -.47844    
   3  Normalizat    .74825        .34244E-01    .38431E-03   -1.0202    
   4  Prefactor     .99463        .15185E-01    .14879E-03   -.92909    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.45454e-08
Minuit parameter uncertainties:
  1  0.0956264
  2  27.9098
  3  0.0342453
  4  0.0151854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223110': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7812.92294569
delta logL = 2.69906195172e-07

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  1.003e-04  9.563e-02  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.698e+00  2.791e+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:  9.946e-01  1.519e-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:  7.482e-01  3.425e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 267.904 29.358

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/223110/cmap_HighResolution_633571201_633830401_4FGL_J1751.6+2921_daily_bin1521.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.12e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-18 17:49:51.790092', job_id='223110', GAL2='0.99', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632012591.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.70e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1521' AND source_name='4FGL J1751.6+2921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 17:49:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 223110: <4FGL_J1751.6+2921_daily_bin1521> in cluster <slac> Done

Job <4FGL_J1751.6+2921_daily_bin1521> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 18 17:35:38 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 17:35:40 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:35:40 2021
Terminated at Sat Sep 18 17:49:52 2021
Results reported at Sat Sep 18 17:49:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1751.6+2921_daily_bin1521 267.904 29.3582 633571201 633830401 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 :                                   808.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             316.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            854 sec.

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

