/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 10 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 = 7387
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1627.7+0251_daily_bin356
RA = 246.942, Dec = 2.8584
tmin = 331603201, tmax = 331862401
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='513587', job_status='RUN', time_executed='2021-09-14 13:35:11.331558', time_epoch_executed='1631651711.33' WHERE source_name='4FGL J1627.7+0251' and cadence='daily' and bin_id='356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513587

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513587/ft1_4FGL_J1627.7+0251_daily_bin356.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513587/ft2_4FGL_J1627.7+0251_daily_bin356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513587/ft1_4FGL_J1627.7+0251_daily_bin356.fits outfile=/scratch/kocevski/513587/ft1_filteredMKT_4FGL_J1627.7+0251_daily_bin356.fits ra=246.942 dec=2.8584 rad=12.0 tmin=331603201.0 tmax=331862401.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 4.31
user 3.10
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/513587/ft2_4FGL_J1627.7+0251_daily_bin356.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/513587/ft2_4FGL_J1627.7+0251_daily_bin356.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/513587/ft1_filteredMKT_4FGL_J1627.7+0251_daily_bin356.fits evtable="EVENTS" outfile="/scratch/kocevski/513587/ft1_filtered_4FGL_J1627.7+0251_daily_bin356.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 1.02
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513587/ft1_filtered_4FGL_J1627.7+0251_daily_bin356.fits" evtable="EVENTS" scfile=/scratch/kocevski/513587/ft2_4FGL_J1627.7+0251_daily_bin356.fits sctable="SC_DATA" outfile=/scratch/kocevski/513587/ltcube_331603201_331862401_4FGL_J1627.7+0251_daily_bin356.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/513587/ft2_4FGL_J1627.7+0251_daily_bin356.fits
.....................!
real 15.59
user 14.60
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513587/ft1_filtered_4FGL_J1627.7+0251_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/513587/ft2_4FGL_J1627.7+0251_daily_bin356.fits sctable="SC_DATA" expcube=/scratch/kocevski/513587/ltcube_331603201_331862401_4FGL_J1627.7+0251_daily_bin356.fits outfile=/scratch/kocevski/513587/expmap_331603201_331862401_4FGL_J1627.7+0251_daily_bin356.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/513587/ltcube_331603201_331862401_4FGL_J1627.7+0251_daily_bin356.fits
.....................!
real 192.68
user 187.53
sys 4.26

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 164 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1627.7+0251 @ 246.942 2.8584

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/513587/ft1_filtered_4FGL_J1627.7+0251_daily_bin356.fits scfile=/scratch/kocevski/513587/ft2_4FGL_J1627.7+0251_daily_bin356.fits outfile=/scratch/kocevski/513587/cmap_331603201_331862401_4FGL_J1627.7+0251_daily_bin356.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=246.942 yref=2.8584 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.78
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513587/ft1_filtered_4FGL_J1627.7+0251_daily_bin356.fits scfile=/scratch/kocevski/513587/ft2_4FGL_J1627.7+0251_daily_bin356.fits outfile=/scratch/kocevski/513587/cmap_HighResolution_331603201_331862401_4FGL_J1627.7+0251_daily_bin356.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=246.942 yref=2.8584 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.62
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/513587/ft1_filtered_4FGL_J1627.7+0251_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/513587/ft2_4FGL_J1627.7+0251_daily_bin356.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/513587/Model_4FGL_J1627.7+0251_daily_bin356.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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/scratch/kocevski/513587/ft1_filtered_4FGL_J1627.7+0251_daily_bin356.fits.....................!
real 84.94
user 81.23
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/513587/ft1_filtered_4FGL_J1627.7+0251_daily_bin356.fits', '/scratch/kocevski/513587/ft2_4FGL_J1627.7+0251_daily_bin356.fits', expMap='/scratch/kocevski/513587/expmap_331603201_331862401_4FGL_J1627.7+0251_daily_bin356.fits', expCube='/scratch/kocevski/513587/ltcube_331603201_331862401_4FGL_J1627.7+0251_daily_bin356.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/513587/Model_4FGL_J1627.7+0251_daily_bin356.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1627.7+0251'

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  7.087e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/513587/ft1_filtered_4FGL_J1627.7+0251_daily_bin356.fits
Spacecraft file(s): /scratch/kocevski/513587/ft2_4FGL_J1627.7+0251_daily_bin356.fits
Exposure map: /scratch/kocevski/513587/expmap_331603201_331862401_4FGL_J1627.7+0251_daily_bin356.fits
Exposure cube: /scratch/kocevski/513587/ltcube_331603201_331862401_4FGL_J1627.7+0251_daily_bin356.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/513587/Model_4FGL_J1627.7+0251_daily_bin356.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) = 9822.87823666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.329       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3103       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    75.638       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.232       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.498       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.894       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4678       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.070       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    185.42       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.6392       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91094       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9822.838     FROM MIGRAD    STATUS=CONVERGED    366 CALLS     1856 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.325        34.479       -.30022E-06   -.51828E-04
   2  Prefactor     .10000E-03    2.3100        .23185E-07** at limit **
   3  norm          .10000E-03    1.3216       -.12113E-07** at limit **
   4  Prefactor     .10000E-03    17.064       -.77526E-06** at limit **
   5  norm          2.3103        1.4522        .31450E-08    .43870E-05
   6  norm          .10000E-03    6.3138        .11001E-06** at limit **
   7  norm          75.661        83.537        .25284E-05    .79530E-04
   8  Prefactor     .10000E-03    32.684        .18445E-06** at limit **
   9  Prefactor     .10000E-03    18.340        .86317E-06** at limit **
  10  Prefactor     .10000E-03    7.0149       -.40533E-06** at limit **
  11  Prefactor     15.227        10.398       -.81404E-07    .22656E-05
  12  Prefactor     25.484        23.863       -.44034E-06   -.19270E-03
  13  Prefactor     12.874        33.503       -.28679E-05   -.14411E-03
  14  Prefactor     8.4668        6.1314        .18044E-05   -.40933E-03
  15  Prefactor     15.069        7.4401       -.99819E-07   -.33614E-04
  16  Prefactor     .10000E-03    7.2785        .45318E-06** at limit **
  17  Prefactor     185.43        176.49        .26779E-06    .10062E-04
  18  Normalizat    1.6397        .26441       -.12689E-05    .28499E-04
  19  Prefactor     .91079        .78092E-01    .29357E-06   -.12275E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.3247
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.31027
  norm       = 0.0001
  norm       = 75.6607
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2275
  Prefactor  = 25.484
  Prefactor  = 12.8743
  Prefactor  = 8.46678
  Prefactor  = 15.0694
  Prefactor  = 0.0001
  Prefactor  = 185.429
  Normalizat = 1.63974
  Prefactor  = 0.910788
 **********
 **   18 **HESSE 
 **********

 FCN=   9822.838     FROM HESSE     STATUS=OK           260 CALLS     2116 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.325        34.539        .52983E-04   -1.4192    
   2  Prefactor     .10000E-03    2.3424        .14702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.3277        .11123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3103        1.4508        .92355E-04   -1.5404    
   6  norm          .10000E-03    6.3415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          75.661        84.718        .23084E-03   -1.3966    
   8  Prefactor     .10000E-03    32.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.0763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.227        10.409        .10262E-03   -1.4927    
  12  Prefactor     25.484        23.878        .79331E-04   -1.4698    
  13  Prefactor     12.874        34.094        .11155E-03   -1.4990    
  14  Prefactor     8.4668        6.2779        .68880E-03   -1.5126    
  15  Prefactor     15.069        7.4486        .10317E-03   -1.4931    
  16  Prefactor     .10000E-03    7.3436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     185.43        176.77        .14826E-03   -1.2976    
  18  Normalizat    1.6397        .30436        .42140E-03   -.73924    
  19  Prefactor     .91079        .90457E-01    .16215E-03   -.95765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4852e-10
Minuit parameter uncertainties:
  1  34.551
  2  2.98722e-06
  3  1.12554e-06
  4  9.5688e-05
  5  1.45079
  6  7.43105e-06
  7  84.8539
  8  2.61298e-05
  9  0.000108308
  10  3.14311e-05
  11  10.4103
  12  23.8866
  13  34.1459
  14  6.27839
  15  7.4491
  16  3.09114e-05
  17  177.276
  18  0.30471
  19  0.0904718
Done.

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

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  2.613e-05  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.108e-01  9.047e-02  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.640e+00  3.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 246.942 2.858
Photon Flux Upper Limit: 6.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513587/likelihoodResults_331603201_331862401_4FGL_J1627.7+0251_daily_bin356.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) = 9822.83784741
delta logL = -0.000145575450006

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9822.83770186
delta logL = -2.47982825385e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1552       1.0000          .0000       10.000    
     3 'Normalizat'    1.6397       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91078       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+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=   9822.838     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      248 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10146E-03    211.21        .18142E-02** at limit **
   2  Index         2.1005        5.6481        .50000        .64575E-05
   3  Normalizat    1.6397        .17404E-01    .42140E-03    .88488E-04
   4  Prefactor     .91079        .52293E-02    .16215E-03    .25642E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101456
  Index      = 2.10054
  Normalizat = 1.63974
  Prefactor  = 0.910789
 **********
 **   18 **HESSE 
 **********

 FCN=   9822.838     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10146E-03    900.33        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1005        7.8807        .50000       -.61860    
   3  Normalizat    1.6397        .37144E-01    .16856E-04   -.73924    
   4  Prefactor     .91079        .11161E-01    .32429E-04   -.95765    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.75437e-09
Minuit parameter uncertainties:
  1  0.0735358
  2  660.45
  3  0.0371445
  4  0.0111606
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513587': 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) = 9822.8377017
delta logL = 1.35987647809e-07

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  1.015e-04  7.354e-02  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  2.101e+00  6.605e+02  0.000e+00  1.000e+01 (-1.000e+00)
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.108e-01  1.116e-02  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.640e+00  3.714e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 246.942 2.858

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/513587/cmap_HighResolution_331603201_331862401_4FGL_J1627.7+0251_daily_bin356.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.21e-03', job_status='DONE', photon_flux_upper_limit='6.85e-08', time_completed='2021-09-14 13:47:37.621434', job_id='513587', GAL2='0.91', fit_tolerance='1e-08', EG2='1.64', EG='1.64', time_epoch_completed='1631652457.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='356' AND source_name='4FGL J1627.7+0251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 13:47:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 513587: <4FGL_J1627.7+0251_daily_bin356> in cluster <slac> Done

Job <4FGL_J1627.7+0251_daily_bin356> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 13:32:15 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 13:34:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 13:34:42 2021
Terminated at Tue Sep 14 13:47:38 2021
Results reported at Tue Sep 14 13:47:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1627.7+0251_daily_bin356 246.942 2.8584 331603201 331862401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1627.7+0251 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   738.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             337.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            923 sec.

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

