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


Performing analysis on: 4FGL_J1627.7+0251_daily_bin848
RA = 246.942, Dec = 2.8584
tmin = 459129601, tmax = 459388801
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='517435', job_status='RUN', time_executed='2021-09-14 13:49:37.550110', time_epoch_executed='1631652577.55' WHERE source_name='4FGL J1627.7+0251' and cadence='daily' and bin_id='848'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/517435

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/517435/ft1_4FGL_J1627.7+0251_daily_bin848.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/517435/ft2_4FGL_J1627.7+0251_daily_bin848.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/517435/ft1_4FGL_J1627.7+0251_daily_bin848.fits outfile=/scratch/kocevski/517435/ft1_filteredMKT_4FGL_J1627.7+0251_daily_bin848.fits ra=246.942 dec=2.8584 rad=12.0 tmin=459129601.0 tmax=459388801.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.94
user 3.67
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/517435/ft2_4FGL_J1627.7+0251_daily_bin848.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/517435/ft1_filteredMKT_4FGL_J1627.7+0251_daily_bin848.fits evtable="EVENTS" outfile="/scratch/kocevski/517435/ft1_filtered_4FGL_J1627.7+0251_daily_bin848.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.54
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/517435/ft1_filtered_4FGL_J1627.7+0251_daily_bin848.fits" evtable="EVENTS" scfile=/scratch/kocevski/517435/ft2_4FGL_J1627.7+0251_daily_bin848.fits sctable="SC_DATA" outfile=/scratch/kocevski/517435/ltcube_459129601_459388801_4FGL_J1627.7+0251_daily_bin848.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/517435/ft2_4FGL_J1627.7+0251_daily_bin848.fits
.....................!
real 13.55
user 13.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/517435/ft1_filtered_4FGL_J1627.7+0251_daily_bin848.fits evtable="EVENTS" scfile=/scratch/kocevski/517435/ft2_4FGL_J1627.7+0251_daily_bin848.fits sctable="SC_DATA" expcube=/scratch/kocevski/517435/ltcube_459129601_459388801_4FGL_J1627.7+0251_daily_bin848.fits outfile=/scratch/kocevski/517435/expmap_459129601_459388801_4FGL_J1627.7+0251_daily_bin848.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/517435/ltcube_459129601_459388801_4FGL_J1627.7+0251_daily_bin848.fits
.....................!
real 193.39
user 187.18
sys 5.49

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/517435/ft1_filtered_4FGL_J1627.7+0251_daily_bin848.fits scfile=/scratch/kocevski/517435/ft2_4FGL_J1627.7+0251_daily_bin848.fits outfile=/scratch/kocevski/517435/cmap_459129601_459388801_4FGL_J1627.7+0251_daily_bin848.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/517435/ft1_filtered_4FGL_J1627.7+0251_daily_bin848.fits scfile=/scratch/kocevski/517435/ft2_4FGL_J1627.7+0251_daily_bin848.fits outfile=/scratch/kocevski/517435/cmap_HighResolution_459129601_459388801_4FGL_J1627.7+0251_daily_bin848.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/517435/ft1_filtered_4FGL_J1627.7+0251_daily_bin848.fits evtable="EVENTS" scfile=/scratch/kocevski/517435/ft2_4FGL_J1627.7+0251_daily_bin848.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/517435/Model_4FGL_J1627.7+0251_daily_bin848.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/517435/ft1_filtered_4FGL_J1627.7+0251_daily_bin848.fits.....................!
real 83.48
user 82.03
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/517435/ft1_filtered_4FGL_J1627.7+0251_daily_bin848.fits', '/scratch/kocevski/517435/ft2_4FGL_J1627.7+0251_daily_bin848.fits', expMap='/scratch/kocevski/517435/expmap_459129601_459388801_4FGL_J1627.7+0251_daily_bin848.fits', expCube='/scratch/kocevski/517435/ltcube_459129601_459388801_4FGL_J1627.7+0251_daily_bin848.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/517435/Model_4FGL_J1627.7+0251_daily_bin848.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/517435/ft1_filtered_4FGL_J1627.7+0251_daily_bin848.fits
Spacecraft file(s): /scratch/kocevski/517435/ft2_4FGL_J1627.7+0251_daily_bin848.fits
Exposure map: /scratch/kocevski/517435/expmap_459129601_459388801_4FGL_J1627.7+0251_daily_bin848.fits
Exposure cube: /scratch/kocevski/517435/ltcube_459129601_459388801_4FGL_J1627.7+0251_daily_bin848.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/517435/Model_4FGL_J1627.7+0251_daily_bin848.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) = 9770.59044375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5564       1.0000         .10000E-03   10000.    
     3 'norm      '    3.0567       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.122       1.0000         .10000E-03   10000.    
     5 'norm      '    4.5347       1.0000         .10000E-03   10000.    
     6 'norm      '    16.129       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    133.62       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.432       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1137       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6922       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .87570       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0509       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=   9770.517     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     1889 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.228        .14826E-07** at limit **
   2  Prefactor     2.5554        4.2267       -.14451E-05   -.89402E-03
   3  norm          3.0571        3.4802        .85839E-06   -.28450E-03
   4  Prefactor     22.033        72.090       -.13820E-03    .83192E-05
   5  norm          4.5349        2.1608        .90901E-06    .28970E-03
   6  norm          16.118        15.855       -.83193E-05    .89039E-05
   7  norm          .10000E-03    35.378        .49231E-06** at limit **
   8  Prefactor     133.58        84.928       -.26859E-04   -.29517E-05
   9  Prefactor     15.430        19.173       -.15632E-05    .12001E-04
  10  Prefactor     .10000E-03    4.2623       -.10214E-06** at limit **
  11  Prefactor     .10000E-03    1.9827       -.22722E-07** at limit **
  12  Prefactor     3.1247        13.258        .39430E-05   -.16796E-03
  13  Prefactor     .10001E-03    86.337        .95771E-06** at limit **
  14  Prefactor     .10000E-03    1.4076       -.79575E-07** at limit **
  15  Prefactor     .10000E-03    3.7653       -.21036E-06** at limit **
  16  Prefactor     3.6757        13.243       -.33960E-05   -.15537E-03
  17  Prefactor     .10000E-03    168.92        .93163E-05** at limit **
  18  Normalizat    .87575        .28116        .19682E-04   -.86785E-04
  19  Prefactor     1.0509        .78625E-01   -.14970E-05    .58544E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.55541
  norm       = 3.05715
  Prefactor  = 22.0327
  norm       = 4.5349
  norm       = 16.1182
  norm       = 0.0001
  Prefactor  = 133.583
  Prefactor  = 15.4296
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.12465
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.67565
  Prefactor  = 0.0001
  Normalizat = 0.875753
  Prefactor  = 1.05089
 **********
 **   18 **HESSE 
 **********

 FCN=   9770.517     FROM HESSE     STATUS=OK           268 CALLS     2157 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5554        4.2063        .24789E-03   -1.5388    
   3  norm          3.0571        3.4671        .18885E-03   -1.5358    
   4  Prefactor     22.033        72.113        .85161E-04   -1.4769    
   5  norm          4.5349        2.1610        .97149E-04   -1.5282    
   6  norm          16.118        15.870        .99727E-04   -1.4905    
   7  norm          .10000E-03    35.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     133.58        84.956        .17419E-03   -1.3391    
   9  Prefactor     15.430        19.177        .10196E-03   -1.4922    
  10  Prefactor     .10000E-03    4.2873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9854        .13592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1247        13.146        .22979E-03   -1.5354    
  13  Prefactor     .10001E-03    86.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.4120        .11451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.8164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6757        13.218        .21019E-03   -1.5325    
  17  Prefactor     .10000E-03    169.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .87575        .30834        .53028E-03   -.97317    
  19  Prefactor     1.0509        .87626E-01    .14524E-03   -.91052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52879e-09
Minuit parameter uncertainties:
  1  9.88579e-06
  2  4.20679
  3  3.46734
  4  72.4004
  5  2.16109
  6  15.8745
  7  1.35571e-06
  8  85.0335
  9  19.1843
  10  1.93144e-05
  11  3.70587e-06
  12  12.8228
  13  0.001443
  14  8.95561e-06
  15  4.09594e-05
  16  13.2284
  17  0.000241546
  18  0.308967
  19  0.0876382
Done.

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

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  1.336e+02  8.503e+01  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:  1.051e+00  8.764e-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:  8.758e-01  3.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.62
Ra Dec: 246.942 2.858
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 7.36e-08 +/- 4.68e-08
Energy Flux (Fixed Index): 3.38e-05 +/- 2.15e-05

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) = 9770.46258804
delta logL = 0.0540360517844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9770.45776965
delta logL = 0.0588544413913

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    145.77       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9648       1.0000          .0000       10.000    
     3 'Normalizat'    .90031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0480       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=   9770.458     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      316 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     145.77        105.10        .33375E-04   -.52594E-04
   2  Index         1.9650        .72300        .11207E-01    .51443E-03
   3  Normalizat    .89979        .29666        .52387E-03    .82204E-04
   4  Prefactor     1.0481        .86235E-01    .14544E-03    .17791E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 145.768
  Index      = 1.96497
  Normalizat = 0.899786
  Prefactor  = 1.0481
 **********
 **   18 **HESSE 
 **********

 FCN=   9770.458     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     145.77        104.39        .66750E-05   -1.3287    
   2  Index         1.9650        .71666        .22414E-02   -.65229    
   3  Normalizat    .89979        .29635        .20955E-04   -.96468    
   4  Prefactor     1.0481        .86241E-01    .58177E-05   -.91143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.98849e-11
Minuit parameter uncertainties:
  1  104.519
  2  0.7206
  3  0.296885
  4  0.0862524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/517435': 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) = 9770.45776805
delta logL = 0.0588560458946

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  1.458e+02  1.045e+02  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  1.965e+00  7.206e-01  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:  1.048e+00  8.625e-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:  8.998e-01  2.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.70
Ra Dec: 246.942 2.858
Photon Index (Free Index): 1.96 +/- 0.72
Photon Flux (Free Index): 5.10e-08 +/- 7.81e-08
Energy Flux (Free Index): 3.85e-05 +/- 3.36e-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/517435/cmap_HighResolution_459129601_459388801_4FGL_J1627.7+0251_daily_bin848.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.36e-08', energy_flux2='3.85e-05', photon_flux_error='4.68e-08', dlogl='5.89e-02', energy_flux='3.38e-05', photon_flux2='5.10e-08', job_status='DONE', time_completed='2021-09-14 14:00:43.041068', photon_index_error2='0.72', photon_index2='1.96', ts='8.62', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='3.36e-05', EG='0.88', time_epoch_completed='1631653243.04', return_code='0', job_id='517435', GAL2='1.05', EG2='0.90', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='7.81e-08', ts2='8.70', photon_index='2.19' WHERE bin_id='848' AND source_name='4FGL J1627.7+0251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 14:00:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 517435: <4FGL_J1627.7+0251_daily_bin848> in cluster <slac> Done

Job <4FGL_J1627.7+0251_daily_bin848> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep 14 13:45:42 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 13:45:55 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:45:55 2021
Terminated at Tue Sep 14 14:00:43 2021
Results reported at Tue Sep 14 14:00:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1627.7+0251_daily_bin848 246.942 2.8584 459129601 459388801 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 :                                   661.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            901 sec.

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

