/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 235 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1633.8+0701_daily_bin451
RA = 248.454, Dec = 7.0309
tmin = 356227201, tmax = 356486401
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='675810', job_status='RUN', time_executed='2021-09-14 21:05:50.338826', time_epoch_executed='1631678750.34' WHERE source_name='4FGL J1633.8+0701' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675810

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675810/ft1_4FGL_J1633.8+0701_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/675810/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/675810/ft2_4FGL_J1633.8+0701_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675810/ft1_4FGL_J1633.8+0701_daily_bin451.fits outfile=/scratch/kocevski/675810/ft1_filteredMKT_4FGL_J1633.8+0701_daily_bin451.fits ra=248.454 dec=7.0309 rad=12.0 tmin=356227201.0 tmax=356486401.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.12
user 2.90
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/675810/ft2_4FGL_J1633.8+0701_daily_bin451.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/675810/ft2_4FGL_J1633.8+0701_daily_bin451.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/675810/ft1_filteredMKT_4FGL_J1633.8+0701_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/675810/ft1_filtered_4FGL_J1633.8+0701_daily_bin451.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/675810/ft1_filtered_4FGL_J1633.8+0701_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/675810/ft2_4FGL_J1633.8+0701_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/675810/ltcube_356227201_356486401_4FGL_J1633.8+0701_daily_bin451.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/675810/ft2_4FGL_J1633.8+0701_daily_bin451.fits
.....................!
real 3.43
user 3.10
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675810/ft1_filtered_4FGL_J1633.8+0701_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/675810/ft2_4FGL_J1633.8+0701_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/675810/ltcube_356227201_356486401_4FGL_J1633.8+0701_daily_bin451.fits outfile=/scratch/kocevski/675810/expmap_356227201_356486401_4FGL_J1633.8+0701_daily_bin451.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/675810/ltcube_356227201_356486401_4FGL_J1633.8+0701_daily_bin451.fits
.....................!
real 193.72
user 187.91
sys 5.39

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 163 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 J1633.8+0701 @ 248.454 7.0309

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/675810/ft1_filtered_4FGL_J1633.8+0701_daily_bin451.fits scfile=/scratch/kocevski/675810/ft2_4FGL_J1633.8+0701_daily_bin451.fits outfile=/scratch/kocevski/675810/cmap_356227201_356486401_4FGL_J1633.8+0701_daily_bin451.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=248.454 yref=7.0309 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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/675810/ft1_filtered_4FGL_J1633.8+0701_daily_bin451.fits scfile=/scratch/kocevski/675810/ft2_4FGL_J1633.8+0701_daily_bin451.fits outfile=/scratch/kocevski/675810/cmap_HighResolution_356227201_356486401_4FGL_J1633.8+0701_daily_bin451.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=248.454 yref=7.0309 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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/675810/ft1_filtered_4FGL_J1633.8+0701_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/675810/ft2_4FGL_J1633.8+0701_daily_bin451.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/675810/Model_4FGL_J1633.8+0701_daily_bin451.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/675810/ft1_filtered_4FGL_J1633.8+0701_daily_bin451.fits......................!
real 28.32
user 26.99
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/675810/ft1_filtered_4FGL_J1633.8+0701_daily_bin451.fits', '/scratch/kocevski/675810/ft2_4FGL_J1633.8+0701_daily_bin451.fits', expMap='/scratch/kocevski/675810/expmap_356227201_356486401_4FGL_J1633.8+0701_daily_bin451.fits', expCube='/scratch/kocevski/675810/ltcube_356227201_356486401_4FGL_J1633.8+0701_daily_bin451.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/675810/Model_4FGL_J1633.8+0701_daily_bin451.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1633.8+0701'

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  1.015e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  2.146e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
247        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/675810/ft1_filtered_4FGL_J1633.8+0701_daily_bin451.fits
Spacecraft file(s): /scratch/kocevski/675810/ft2_4FGL_J1633.8+0701_daily_bin451.fits
Exposure map: /scratch/kocevski/675810/expmap_356227201_356486401_4FGL_J1633.8+0701_daily_bin451.fits
Exposure cube: /scratch/kocevski/675810/ltcube_356227201_356486401_4FGL_J1633.8+0701_daily_bin451.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/675810/Model_4FGL_J1633.8+0701_daily_bin451.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) = 2318.29062196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.760       1.0000         .10000E-03   10000.    
     2 'norm      '    .27738E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20182E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.7040       1.0000         .10000E-03   10000.    
     6 'norm      '    5.1844       1.0000         .10000E-03   10000.    
     7 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.2053       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9352       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4261       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .86530       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2318.253     FROM MIGRAD    STATUS=CONVERGED    391 CALLS     1759 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.768        19.576       -.56198E-06   -.27562E-03
   2  norm          .10054E-03    10.510        .22199E-05** at limit **
   3  Prefactor     .10000E-03    265.19        .25057E-05** at limit **
   4  norm          .10000E-03    7.6337        .38647E-06** at limit **
   5  norm          3.7026        3.2186        .14556E-06    .87588E-04
   6  norm          5.0935        95.591        .21846E-05    .30989E-05
   7  norm          .10000E-03    175.52       -.21841E-06** at limit **
   8  Prefactor     .10000E-03    118.52        .13163E-06** at limit **
   9  Prefactor     7.8296        227.29        .19812E-04    .23159E-04
  10  Prefactor     8.9673        29.866       -.56192E-05   -.11163E-03
  11  Prefactor     .10000E-03    5.9662        .37741E-06** at limit **
  12  Prefactor     .10000E-03    3.6969       -.12431E-06** at limit **
  13  Prefactor     .10000E-03    15.371       -.71725E-06** at limit **
  14  Prefactor     .10000E-03    44.722       -.15212E-06** at limit **
  15  Prefactor     .10000E-03    14.761       -.74569E-06** at limit **
  16  Prefactor     .10000E-03    138.85       -.57956E-06** at limit **
  17  Normalizat    1.4251        .59526       -.14588E-04   -.29583E-04
  18  Prefactor     .86549        .18597        .56930E-05   -.19978E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.7683
  norm       = 0.000100538
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 3.70256
  norm       = 5.09349
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.82956
  Prefactor  = 8.96726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.42514
  Prefactor  = 0.865494
 **********
 **   18 **HESSE 
 **********

 FCN=   2318.253     FROM HESSE     STATUS=OK           238 CALLS     1997 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.768        19.317        .83959E-04   -1.4753    
   2  norm          .10054E-03    122.99        .27970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    265.59        .20221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.6395        .12999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.7026        3.2210        .78223E-04   -1.5323    
   6  norm          5.0935        94.008        .17655E-03   -1.5257    
   7  norm          .10000E-03    175.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    118.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.8296        237.52        .13996E-03   -1.5148    
  10  Prefactor     8.9673        30.536        .13409E-03   -1.5109    
  11  Prefactor     .10000E-03    5.9782        .11495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7001        .90412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    44.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.885        .18071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    138.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.4251        .61033        .39301E-03   -.79904    
  18  Prefactor     .86549        .19051        .15957E-03   -.97357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69109e-09
Minuit parameter uncertainties:
  1  19.3228
  2  0.0163091
  3  0.00175672
  4  2.75565e-05
  5  3.22118
  6  43.8441
  7  0.000260904
  8  0.0003153
  9  86.6279
  10  30.5896
  11  3.0278e-05
  12  2.97966e-06
  13  2.36019e-05
  14  1.78352e-05
  15  5.84063e-05
  16  0.000574791
  17  0.613494
  18  0.190657
Done.

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

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  1.000e-04  3.028e-05  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  2.146e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
247        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  8.655e-01  1.907e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.425e+00  6.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 248.454 7.031
Photon Flux Upper Limit: 1.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/675810/likelihoodResults_356227201_356486401_4FGL_J1633.8+0701_daily_bin451.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) = 2318.25355514
delta logL = -0.000775673748649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2318.25277938
delta logL = 8.05343915999e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1229       1.0000          .0000       10.000    
     3 'Normalizat'    1.4251       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86552       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2318.253     FROM MIGRAD    STATUS=FAILED        88 CALLS      240 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10850E-03    8.0345        .11763E-01** at limit **
   2  Index         1.8568        8.7920        .50000        .18606E-04
   3  Normalizat    1.4251        .13338E-01    .39303E-03   -.16661E-04
   4  Prefactor     .86550        .43784E-02    .15957E-03    .15339E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2318.253     FROM SIMPLEX   STATUS=PROGRESS      94 CALLS      334 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10255E-03    8.0345        .42875E-03** at limit **
   2  Index         1.6795        8.7920        .66082E-01    .18606E-04
   3  Normalizat    1.4249        .13338E-01    .10138E-03   -.16661E-04
   4  Prefactor     .86544        .43784E-02    .27852E-04    .15339E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2318.253     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      378 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    23.233        .12989E-01** at limit **
   2  Index         1.5394        6.4722        .50000        .27759E-05
   3  Normalizat    1.4251        .21254E-01    .15721E-04   -.24926E-03
   4  Prefactor     .86551        .69771E-02    .31914E-04    .47524E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100167
  Index      = 1.53942
  Normalizat = 1.4251
  Prefactor  = 0.865508
 **********
 **   18 **HESSE 
 **********

 FCN=   2318.253     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      407 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10017E-03    321.83        .13887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5394        5.3225        .50000       -.76442    
   3  Normalizat    1.4251        .82638E-01    .31443E-05   -.79905    
   4  Prefactor     .86551        .27120E-01    .63829E-05   -.97357    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.51054e-09
Minuit parameter uncertainties:
  1  0.014737
  2  1178.53
  3  0.0826455
  4  0.0271205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675810': 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) = 2318.25277685
delta logL = 2.61685318037e-06

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  1.002e-04  1.474e-02  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  1.539e+00  1.179e+03  0.000e+00  1.000e+01 (-1.000e+00)
247        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  8.655e-01  2.712e-02  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.425e+00  8.265e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 248.454 7.031

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/675810/cmap_HighResolution_356227201_356486401_4FGL_J1633.8+0701_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.57e-07', time_completed='2021-09-14 21:12:28.488002', job_id='675810', GAL2='0.87', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1631679148.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.62e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='451' AND source_name='4FGL J1633.8+0701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 21:12:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 675810: <4FGL_J1633.8+0701_daily_bin451> in cluster <slac> Done

Job <4FGL_J1633.8+0701_daily_bin451> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 14 21:00:40 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 21:01:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 21:01:46 2021
Terminated at Tue Sep 14 21:12:29 2021
Results reported at Tue Sep 14 21:12:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1633.8+0701_daily_bin451 248.454 7.0309 356227201 356486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1633.8+0701 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   397.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            709 sec.

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

