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


Performing analysis on: 4FGL_J1751.6+2921_daily_bin1
RA = 267.904, Dec = 29.3582
tmin = 239587201, tmax = 239846401
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='212313', job_status='RUN', time_executed='2021-09-18 17:00:37.493435', time_epoch_executed='1632009637.49' WHERE source_name='4FGL J1751.6+2921' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212313

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212313/ft1_4FGL_J1751.6+2921_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212313/ft2_4FGL_J1751.6+2921_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212313/ft1_4FGL_J1751.6+2921_daily_bin1.fits outfile=/scratch/kocevski/212313/ft1_filteredMKT_4FGL_J1751.6+2921_daily_bin1.fits ra=267.904 dec=29.3582 rad=12.0 tmin=239587201.0 tmax=239846401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.33
user 1.13
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212313/ft1_filtered_4FGL_J1751.6+2921_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/212313/ft2_4FGL_J1751.6+2921_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/212313/ltcube_239587201_239846401_4FGL_J1751.6+2921_daily_bin1.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/212313/ft2_4FGL_J1751.6+2921_daily_bin1.fits
.....................!
real 12.50
user 12.12
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212313/ft1_filtered_4FGL_J1751.6+2921_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/212313/ft2_4FGL_J1751.6+2921_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/212313/ltcube_239587201_239846401_4FGL_J1751.6+2921_daily_bin1.fits outfile=/scratch/kocevski/212313/expmap_239587201_239846401_4FGL_J1751.6+2921_daily_bin1.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/212313/ltcube_239587201_239846401_4FGL_J1751.6+2921_daily_bin1.fits
.....................!
real 191.23
user 185.67
sys 5.22

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/212313/ft1_filtered_4FGL_J1751.6+2921_daily_bin1.fits scfile=/scratch/kocevski/212313/ft2_4FGL_J1751.6+2921_daily_bin1.fits outfile=/scratch/kocevski/212313/cmap_239587201_239846401_4FGL_J1751.6+2921_daily_bin1.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212313/ft1_filtered_4FGL_J1751.6+2921_daily_bin1.fits scfile=/scratch/kocevski/212313/ft2_4FGL_J1751.6+2921_daily_bin1.fits outfile=/scratch/kocevski/212313/cmap_HighResolution_239587201_239846401_4FGL_J1751.6+2921_daily_bin1.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.105       1.0000         .10000E-03   10000.    
     2 'Prefactor '    69.533       1.0000         .10000E-03   10000.    
     3 'norm      '    10.718       1.0000         .10000E-03   10000.    
     4 'norm      '    28.607       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.190       1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.695       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10843E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.175       1.0000         .10000E-03   10000.    
    10 'Prefactor '    84.353       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.3101       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4491       1.0000         .10000E-03   10000.    
    13 'norm      '    31.145       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9585       1.0000         .10000E-03   10000.    
    15 'norm      '    7.8640       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11135E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .31450       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2943       1.0000         .10000E-03   10000.    
    20 'norm      '    50.439       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76561       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85943       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8911.257     FROM MIGRAD    STATUS=CONVERGED    861 CALLS     2865 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.105        26.219        .12022E-03   -.20804E-05
   2  Prefactor     69.533        53.759        .48138E-04   -.10108E-04
   3  norm          10.718        6.3027        .12238E-03   -.23967E-04
   4  norm          28.593        33.777        .74906E-04    .14570E-05
   5  Prefactor     32.189        49.075        .70624E-04   -.43142E-05
   6  Prefactor     37.789        78.783        .65279E-04   -.15047E-04
   7  Prefactor     .10000E-03    8.2818        .18142E-02** at limit **
   8  Prefactor     .10000E-03    62.391        .18142E-02** at limit **
   9  Prefactor     32.220        54.088        .70641E-04   -.12231E-04
  10  Prefactor     84.416        113.19        .43738E-04    .13516E-05
  11  Prefactor     9.3079        6.5486        .13135E-03   -.69244E-05
  12  norm          1.4490        1.1888        .90141E-04   -.14353E-03
  13  norm          31.139        60.382        .71796E-04   -.98175E-05
  14  Prefactor     4.9582        4.9579        .90305E-03    .31095E-04
  15  norm          7.8605        8.2076        .71493E-03    .16124E-04
  16  Prefactor     .10000E-03    1.3082        .10519E-02** at limit **
  17  Prefactor     .10000E-03    20.247        .93323E-01** at limit **
  18  norm          .13501        12.474        .12039        .21597E-03
  19  Prefactor     2.2947        3.7561        .22812E-03    .32593E-04
  20  norm          50.440        39.764        .56467E-04   -.14496E-05
  21  Normalizat    .76547        .22422        .37104E-03   -.22674E-04
  22  Prefactor     .85950        .90372E-01    .14962E-03   -.79844E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.105
  Prefactor  = 69.5331
  norm       = 10.7179
  norm       = 28.5929
  Prefactor  = 32.1894
  Prefactor  = 37.7893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.2196
  Prefactor  = 84.4162
  Prefactor  = 9.3079
  norm       = 1.449
  norm       = 31.1391
  Prefactor  = 4.9582
  norm       = 7.86047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.135008
  Prefactor  = 2.29467
  norm       = 50.44
  Normalizat = 0.765474
  Prefactor  = 0.859498
 **********
 **   18 **HESSE 
 **********

 FCN=   8911.257     FROM HESSE     STATUS=OK           344 CALLS     3209 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.105        26.218        .48088E-05   -1.5041    
   2  Prefactor     69.533        53.763        .96277E-05   -1.4038    
   3  norm          10.718        6.3027        .48953E-05   -1.5053    
   4  norm          28.593        33.777        .14981E-04   -1.4638    
   5  Prefactor     32.189        49.076        .14125E-04   -1.4573    
   6  Prefactor     37.789        78.792        .13056E-04   -1.4478    
   7  Prefactor     .10000E-03    8.2829        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    62.403        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.220        54.150        .28256E-05   -1.4572    
  10  Prefactor     84.416        113.30        .87475E-05   -1.3868    
  11  Prefactor     9.3079        6.5485        .52538E-05   -1.5098    
  12  norm          1.4490        1.1887        .36057E-05   -1.5467    
  13  norm          31.139        60.522        .28718E-05   -1.4591    
  14  Prefactor     4.9582        4.9564        .36122E-04   -1.5263    
  15  norm          7.8605        8.2032        .28597E-04   -1.5147    
  16  Prefactor     .10000E-03    1.3082        .21038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.494        .98681E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .13501        12.293        .12247       -1.5635    
  19  Prefactor     2.2947        3.7559        .91249E-05   -1.5405    
  20  norm          50.440        39.765        .11293E-04   -1.4286    
  21  Normalizat    .76547        .22433        .14841E-04   -1.0136    
  22  Prefactor     .85950        .90426E-01    .29924E-04   -.97571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52382e-10
Minuit parameter uncertainties:
  1  26.2456
  2  53.8005
  3  6.30307
  4  33.7995
  5  49.1377
  6  79.0103
  7  5.66757e-05
  8  0.000292029
  9  54.2331
  10  113.596
  11  6.549
  12  1.18876
  13  60.6412
  14  4.95678
  15  8.20434
  16  5.84379e-07
  17  8.41621e-05
  18  2.57614
  19  3.75632
  20  39.7858
  21  0.224597
  22  0.0904416
Done.

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

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  3.222e+01  5.423e+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:  8.595e-01  9.044e-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.655e-01  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/212313/likelihoodResults_239587201_239846401_4FGL_J1751.6+2921_daily_bin1.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) = 8910.31917361
delta logL = 0.937933453237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8910.29933
delta logL = 0.957777063859

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8609       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8191       1.0000          .0000       10.000    
     3 'Normalizat'    .71322       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87242       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=   8910.299     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      263 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8609        108.75        .31902E-02    .22555E-03
   2  Index         3.8192        2.7734        .15575        .18658E-03
   3  Normalizat    .71322        .59931E-01    .86452E-01    .62392E-04
   4  Prefactor     .87242        .24986E-01    .33612E-01   -.12621E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.86094
  Index      = 3.81916
  Normalizat = 0.713223
  Prefactor  = 0.872419
 **********
 **   18 **HESSE 
 **********

 FCN=   8910.299     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8609        73.054        .12761E-03   -1.5080    
   2  Index         3.8192        2.9014        .53638E-02   -.23842    
   3  Normalizat    .71322        .21299        .38290E-03   -1.0337    
   4  Prefactor     .87242        .89679E-01    .14852E-03   -.97112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97367e-10
Minuit parameter uncertainties:
  1  53.7718
  2  3.10935
  3  0.213236
  4  0.0896939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212313': 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) = 8910.29933
delta logL = 0.95777706568

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  9.861e+00  5.377e+01  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  3.819e+00  3.109e+00  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:  8.724e-01  8.969e-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.132e-01  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.06
Ra Dec: 267.904 29.358
Photon Index (Free Index): 3.82 +/- 3.11
Photon Flux (Free Index): 8.84e-08 +/- 6.04e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.37e-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/212313/cmap_HighResolution_239587201_239846401_4FGL_J1751.6+2921_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', energy_flux2='1.37e-05', dlogl='9.58e-01', photon_flux2='8.84e-08', job_status='DONE', time_completed='2021-09-18 17:16:32.996922', photon_index_error2='3.11', photon_index2='3.82', ts='1.00', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.37e-05', EG='0.77', time_epoch_completed='1632010593.0', return_code='0', job_id='212313', GAL2='0.87', EG2='0.71', return_code2='0', photon_flux_error2='6.04e-08', ts2='3.06', photon_index='2.62' WHERE bin_id='1' AND source_name='4FGL J1751.6+2921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 17:16:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 212313: <4FGL_J1751.6+2921_daily_bin1> in cluster <slac> Done

Job <4FGL_J1751.6+2921_daily_bin1> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 18 17:00:18 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 17:00:19 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:00:19 2021
Terminated at Sat Sep 18 17:16:33 2021
Results reported at Sat Sep 18 17:16:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1751.6+2921_daily_bin1 267.904 29.3582 239587201 239846401 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 :                                   953.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             316.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            975 sec.

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

