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


Performing analysis on: 4FGL_J1633.8+0701_daily_bin722
RA = 248.454, Dec = 7.0309
tmin = 426470401, tmax = 426729601
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='677124', job_status='RUN', time_executed='2021-09-14 21:06:43.106601', time_epoch_executed='1631678803.11' WHERE source_name='4FGL J1633.8+0701' and cadence='daily' and bin_id='722'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/677124

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/677124/ft1_4FGL_J1633.8+0701_daily_bin722.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/677124/ft2_4FGL_J1633.8+0701_daily_bin722.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/677124/ft1_4FGL_J1633.8+0701_daily_bin722.fits outfile=/scratch/kocevski/677124/ft1_filteredMKT_4FGL_J1633.8+0701_daily_bin722.fits ra=248.454 dec=7.0309 rad=12.0 tmin=426470401.0 tmax=426729601.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 4.03
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/677124/ft1_filtered_4FGL_J1633.8+0701_daily_bin722.fits" evtable="EVENTS" scfile=/scratch/kocevski/677124/ft2_4FGL_J1633.8+0701_daily_bin722.fits sctable="SC_DATA" outfile=/scratch/kocevski/677124/ltcube_426470401_426729601_4FGL_J1633.8+0701_daily_bin722.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/677124/ft2_4FGL_J1633.8+0701_daily_bin722.fits
.....................!
real 14.26
user 13.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/677124/ft1_filtered_4FGL_J1633.8+0701_daily_bin722.fits evtable="EVENTS" scfile=/scratch/kocevski/677124/ft2_4FGL_J1633.8+0701_daily_bin722.fits sctable="SC_DATA" expcube=/scratch/kocevski/677124/ltcube_426470401_426729601_4FGL_J1633.8+0701_daily_bin722.fits outfile=/scratch/kocevski/677124/expmap_426470401_426729601_4FGL_J1633.8+0701_daily_bin722.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/677124/ltcube_426470401_426729601_4FGL_J1633.8+0701_daily_bin722.fits
.....................!
real 192.78
user 186.54
sys 5.47

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/677124/ft1_filtered_4FGL_J1633.8+0701_daily_bin722.fits scfile=/scratch/kocevski/677124/ft2_4FGL_J1633.8+0701_daily_bin722.fits outfile=/scratch/kocevski/677124/cmap_426470401_426729601_4FGL_J1633.8+0701_daily_bin722.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
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/677124/ft1_filtered_4FGL_J1633.8+0701_daily_bin722.fits scfile=/scratch/kocevski/677124/ft2_4FGL_J1633.8+0701_daily_bin722.fits outfile=/scratch/kocevski/677124/cmap_HighResolution_426470401_426729601_4FGL_J1633.8+0701_daily_bin722.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
real 0.57
user 0.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/677124/ft1_filtered_4FGL_J1633.8+0701_daily_bin722.fits', '/scratch/kocevski/677124/ft2_4FGL_J1633.8+0701_daily_bin722.fits', expMap='/scratch/kocevski/677124/expmap_426470401_426729601_4FGL_J1633.8+0701_daily_bin722.fits', expCube='/scratch/kocevski/677124/ltcube_426470401_426729601_4FGL_J1633.8+0701_daily_bin722.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/677124/Model_4FGL_J1633.8+0701_daily_bin722.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/677124/ft1_filtered_4FGL_J1633.8+0701_daily_bin722.fits
Spacecraft file(s): /scratch/kocevski/677124/ft2_4FGL_J1633.8+0701_daily_bin722.fits
Exposure map: /scratch/kocevski/677124/expmap_426470401_426729601_4FGL_J1633.8+0701_daily_bin722.fits
Exposure cube: /scratch/kocevski/677124/ltcube_426470401_426729601_4FGL_J1633.8+0701_daily_bin722.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/677124/Model_4FGL_J1633.8+0701_daily_bin722.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) = 13875.6453532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6918       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.213       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.1617       1.0000         .10000E-03   10000.    
     6 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.556       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7474       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.159       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3669       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4115       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .87410       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=   13875.55     FROM MIGRAD    STATUS=CONVERGED    373 CALLS     1542 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6917        3.0598       -.25261E-06   -.48963E-03
   2  norm          .10000E-03    1.5362       -.66560E-07** at limit **
   3  Prefactor     21.209        29.962        .18543E-05   -.52152E-07
   4  norm          .10000E-03    2.6719       -.20518E-07** at limit **
   5  norm          5.1616        1.6462       -.11474E-07    .18612E-03
   6  norm          .10000E-03    8.8656       -.73828E-07** at limit **
   7  norm          .10000E-03    47.307        .26082E-06** at limit **
   8  Prefactor     .10000E-03    42.702       -.25871E-07** at limit **
   9  Prefactor     12.556        14.137       -.84672E-07    .13712E-04
  10  Prefactor     5.7479        6.9056       -.21704E-05   -.17758E-03
  11  Prefactor     .10000E-03    1.8863       -.16830E-07** at limit **
  12  Prefactor     .10000E-03    3.3266       -.55331E-07** at limit **
  13  Prefactor     .10000E-03    3.2942        .22655E-07** at limit **
  14  Prefactor     16.124        45.256       -.21301E-04   -.13815E-05
  15  Prefactor     8.3681        6.3954       -.23669E-06   -.17962E-03
  16  Prefactor     .10000E-03    274.95        .57016E-05** at limit **
  17  Normalizat    1.4117        .19819        .75016E-06    .65439E-05
  18  Prefactor     .87407        .64887E-01    .28165E-06    .67538E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.69172
  norm       = 0.0001
  Prefactor  = 21.209
  norm       = 0.0001
  norm       = 5.16157
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5561
  Prefactor  = 5.74787
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1238
  Prefactor  = 8.36807
  Prefactor  = 0.0001
  Normalizat = 1.41166
  Prefactor  = 0.874069
 **********
 **   18 **HESSE 
 **********

 FCN=   13875.55     FROM HESSE     STATUS=OK           242 CALLS     1784 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6917        3.0636        .21425E-03   -1.5380    
   2  norm          .10000E-03    1.5946        .28508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.209        29.963        .86964E-04   -1.4787    
   4  norm          .10000E-03    2.6772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.1616        1.6472        .83066E-04   -1.5254    
   6  norm          .10000E-03    8.9921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    47.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    42.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.556        14.135        .11304E-03   -1.4999    
  10  Prefactor     5.7479        6.9564        .16754E-03   -1.5228    
  11  Prefactor     .10000E-03    1.8937        .15795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4375        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.3830        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.124        44.932        .99635E-04   -1.4905    
  15  Prefactor     8.3681        6.4030        .13859E-03   -1.5129    
  16  Prefactor     .10000E-03    275.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.4117        .23759        .38375E-03   -.80292    
  18  Prefactor     .87407        .78010E-01    .15712E-03   -.97053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36985e-10
Minuit parameter uncertainties:
  1  3.06376
  2  2.21168e-06
  3  29.9841
  4  1.97518e-06
  5  1.64718
  6  1.15644e-05
  7  7.02892e-06
  8  2.43118e-05
  9  14.139
  10  6.95742
  11  3.87097e-06
  12  6.37335e-06
  13  7.18854e-06
  14  45.0262
  15  6.40349
  16  0.000206341
  17  0.237775
  18  0.0780196
Done.

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

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  1.000e-04  3.871e-06  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.741e-01  7.802e-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.412e+00  2.378e-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: 4.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/677124/likelihoodResults_426470401_426729601_4FGL_J1633.8+0701_daily_bin722.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) = 13875.554959
delta logL = -0.00251510272392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13875.5524436
delta logL = 2.75413185591e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1213       1.0000          .0000       10.000    
     3 'Normalizat'    1.4117       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87406       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=   13875.55     FROM MIGRAD    STATUS=FAILED        87 CALLS      240 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10123E-03    15.956        .16179E-02** at limit **
   2  Index         2.0682        6.0104        .50000        .87735E-04
   3  Normalizat    1.4117        .14558E-01    .38375E-03    .65176E-05
   4  Prefactor     .87407        .48600E-02    .15712E-03    .14760E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13875.55     FROM SIMPLEX   STATUS=PROGRESS     123 CALLS      363 TOTAL
                     EDM=   .47E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    15.956        .17042E-03** at limit **
   2  Index         2.0527        6.0104        .52641E-02    .87735E-04
   3  Normalizat    1.4116        .14558E-01    .23841E-04    .65176E-05
   4  Prefactor     .87406        .48600E-02    .49339E-05    .14760E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13875.55     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      420 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.310        .32359E-02** at limit **
   2  Index         1.6949        7.9788        .50000        .43246E-06
   3  Normalizat    1.4117        .13939E-01    .15350E-04    .63636E-03
   4  Prefactor     .87407        .46532E-02    .62850E-05   -.49129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.69487
  Normalizat = 1.41167
  Prefactor  = 0.874066
 **********
 **   18 **HESSE 
 **********

 FCN=   13875.55     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      449 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    84.551        .64718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6949        5.3701        .50000       -.72218    
   3  Normalizat    1.4117        .31817E-01    .30700E-05   -.80292    
   4  Prefactor     .87407        .10620E-01    .12570E-05   -.97053    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00534e-09
Minuit parameter uncertainties:
  1  4.69537e-05
  2  354.427
  3  0.0318172
  4  0.0106203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/677124': 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) = 13875.5524383
delta logL = 5.65161099075e-06

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  1.000e-04  4.695e-05  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  1.695e+00  3.544e+02  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.741e-01  1.062e-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.412e+00  3.182e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/677124/cmap_HighResolution_426470401_426729601_4FGL_J1633.8+0701_daily_bin722.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-03', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2021-09-14 21:21:11.021493', job_id='677124', GAL2='0.87', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1631679671.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='5.65e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='722' AND source_name='4FGL J1633.8+0701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 21:21:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 677124: <4FGL_J1633.8+0701_daily_bin722> in cluster <slac> Done

Job <4FGL_J1633.8+0701_daily_bin722> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 14 21:05:24 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 21:06:32 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:06:32 2021
Terminated at Tue Sep 14 21:21:11 2021
Results reported at Tue Sep 14 21:21:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1633.8+0701_daily_bin722 248.454 7.0309 426470401 426729601 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 :                                   863.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            947 sec.

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

