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


Performing analysis on: 4FGL_J1633.8+0701_daily_bin550
RA = 248.454, Dec = 7.0309
tmin = 381888001, tmax = 382147201
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='675963', job_status='RUN', time_executed='2021-09-14 21:04:49.506656', time_epoch_executed='1631678689.51' WHERE source_name='4FGL J1633.8+0701' and cadence='daily' and bin_id='550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675963

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675963/ft1_4FGL_J1633.8+0701_daily_bin550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/675963/ft2_4FGL_J1633.8+0701_daily_bin550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675963/ft1_4FGL_J1633.8+0701_daily_bin550.fits outfile=/scratch/kocevski/675963/ft1_filteredMKT_4FGL_J1633.8+0701_daily_bin550.fits ra=248.454 dec=7.0309 rad=12.0 tmin=381888001.0 tmax=382147201.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.80
user 4.54
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/675963/ft2_4FGL_J1633.8+0701_daily_bin550.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/675963/ft1_filteredMKT_4FGL_J1633.8+0701_daily_bin550.fits evtable="EVENTS" outfile="/scratch/kocevski/675963/ft1_filtered_4FGL_J1633.8+0701_daily_bin550.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/675963/ft1_filtered_4FGL_J1633.8+0701_daily_bin550.fits" evtable="EVENTS" scfile=/scratch/kocevski/675963/ft2_4FGL_J1633.8+0701_daily_bin550.fits sctable="SC_DATA" outfile=/scratch/kocevski/675963/ltcube_381888001_382147201_4FGL_J1633.8+0701_daily_bin550.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/675963/ft2_4FGL_J1633.8+0701_daily_bin550.fits
.....................!
real 12.51
user 12.10
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675963/ft1_filtered_4FGL_J1633.8+0701_daily_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/675963/ft2_4FGL_J1633.8+0701_daily_bin550.fits sctable="SC_DATA" expcube=/scratch/kocevski/675963/ltcube_381888001_382147201_4FGL_J1633.8+0701_daily_bin550.fits outfile=/scratch/kocevski/675963/expmap_381888001_382147201_4FGL_J1633.8+0701_daily_bin550.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/675963/ltcube_381888001_382147201_4FGL_J1633.8+0701_daily_bin550.fits
.....................!
real 192.24
user 185.51
sys 5.43

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/675963/ft1_filtered_4FGL_J1633.8+0701_daily_bin550.fits scfile=/scratch/kocevski/675963/ft2_4FGL_J1633.8+0701_daily_bin550.fits outfile=/scratch/kocevski/675963/cmap_381888001_382147201_4FGL_J1633.8+0701_daily_bin550.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/675963/ft1_filtered_4FGL_J1633.8+0701_daily_bin550.fits scfile=/scratch/kocevski/675963/ft2_4FGL_J1633.8+0701_daily_bin550.fits outfile=/scratch/kocevski/675963/cmap_HighResolution_381888001_382147201_4FGL_J1633.8+0701_daily_bin550.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    5.6781       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.387       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.1064       1.0000         .10000E-03   10000.    
     6 'norm      '    4.7029       1.0000         .10000E-03   10000.    
     7 'norm      '    .10215E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    102.65       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3996       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6564       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1281       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.946       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .73373       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0768       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=   9097.360     FROM MIGRAD    STATUS=CONVERGED    359 CALLS     1761 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6291        .15819E-06** at limit **
   2  norm          5.6786        4.2930        .20004E-06   -.19035E-04
   3  Prefactor     13.319        38.346       -.53440E-06   -.74216E-04
   4  norm          .10000E-03    2.5899        .72703E-07** at limit **
   5  norm          3.1066        1.5758        .30434E-08   -.60714E-06
   6  norm          4.7036        10.008        .50744E-06   -.71754E-05
   7  norm          .10000E-03    95.457        .48890E-06** at limit **
   8  Prefactor     102.52        91.192       -.12379E-05   -.14914E-03
   9  Prefactor     .10000E-03    13.927        .21520E-06** at limit **
  10  Prefactor     8.3995        8.3694        .89965E-07   -.38218E-04
  11  Prefactor     .10000E-03    2.7141       -.15538E-06** at limit **
  12  Prefactor     6.6559        5.5604        .32538E-05   -.22154E-03
  13  Prefactor     7.1276        6.7594       -.43821E-07   -.22528E-04
  14  Prefactor     .10000E-03    23.235        .15045E-06** at limit **
  15  Prefactor     17.946        8.5946        .86508E-07   -.27612E-04
  16  Prefactor     .10000E-03    63.824       -.68273E-07** at limit **
  17  Normalizat    .73380        .25905       -.13572E-05   -.35472E-04
  18  Prefactor     1.0768        .87823E-01   -.22512E-06   -.27440E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.67863
  Prefactor  = 13.3185
  norm       = 0.0001
  norm       = 3.10656
  norm       = 4.70359
  norm       = 0.0001
  Prefactor  = 102.516
  Prefactor  = 0.0001
  Prefactor  = 8.39948
  Prefactor  = 0.0001
  Prefactor  = 6.65592
  Prefactor  = 7.12762
  Prefactor  = 0.0001
  Prefactor  = 17.9458
  Prefactor  = 0.0001
  Normalizat = 0.733798
  Prefactor  = 1.07677
 **********
 **   18 **HESSE 
 **********

 FCN=   9097.360     FROM HESSE     STATUS=OK           248 CALLS     2009 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6536        .15098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.6786        4.2869        .16567E-03   -1.5231    
   3  Prefactor     13.319        38.369        .10948E-03   -1.4978    
   4  norm          .10000E-03    2.5944        .14990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.1066        1.5767        .82923E-04   -1.5355    
   6  norm          4.7036        9.9934        .18556E-03   -1.5274    
   7  norm          .10000E-03    95.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     102.52        91.142        .19843E-03   -1.3679    
   9  Prefactor     .10000E-03    13.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.3995        8.3602        .13832E-03   -1.5128    
  11  Prefactor     .10000E-03    2.7241        .15343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6559        5.5615        .77767E-03   -1.5192    
  13  Prefactor     7.1276        6.7412        .15025E-03   -1.5174    
  14  Prefactor     .10000E-03    23.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.946        8.5849        .94545E-04   -1.4860    
  16  Prefactor     .10000E-03    63.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .73380        .28094        .49872E-03   -1.0257    
  18  Prefactor     1.0768        .96692E-01    .14847E-03   -.90213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67604e-10
Minuit parameter uncertainties:
  1  1.53257e-06
  2  4.28715
  3  38.44
  4  1.30262e-06
  5  1.57668
  6  9.99698
  7  0.000419059
  8  91.2666
  9  2.90405e-06
  10  8.36131
  11  1.19154e-06
  12  5.56193
  13  6.74196
  14  5.71564e-06
  15  8.5855
  16  0.00011964
  17  0.281496
  18  0.0967082
Done.

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

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  1.000e-04  1.192e-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:  1.077e+00  9.671e-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:  7.338e-01  2.815e-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: 6.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/675963/likelihoodResults_381888001_382147201_4FGL_J1633.8+0701_daily_bin550.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) = 9097.36155667
delta logL = -0.00174699159106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9097.35980946
delta logL = 2.16916305362e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1290       1.0000          .0000       10.000    
     3 'Normalizat'    .73381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0768       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=   9097.360     FROM MIGRAD    STATUS=FAILED        92 CALLS      250 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10325E-03    1.0670        .15523E-01** at limit **
   2  Index         1.8518        5.8303        .50000        .16928E-04
   3  Normalizat    .73380        .36018E-02    .49870E-03   -.13860E-04
   4  Prefactor     1.0768        .12882E-02    .14847E-03    .16540E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9097.360     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      337 TOTAL
                     EDM=   .95E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10325E-03    1.0670        .27836E-03** at limit **
   2  Index         1.8518        5.8303        .14590E-01    .16928E-04
   3  Normalizat    .73380        .36018E-02    .26229E-04   -.13860E-04
   4  Prefactor     1.0768        .12882E-02    .10082E-04    .16540E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9097.360     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      410 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    468.79        .32986E-03** at limit **
   2  Index         1.7025        5.5607        .50000        .60481E-08
   3  Normalizat    .73380        .96225E-01    .39896E-05    .43314E-04
   4  Prefactor     1.0768        .34340E-01    .11877E-05    .17612E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.70253
  Normalizat = 0.733799
  Prefactor  = 1.07677
 **********
 **   18 **HESSE 
 **********

 FCN=   9097.360     FROM HESSE     STATUS=OK            29 CALLS      439 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1426        .65973E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7025        5.6312        .50000       -.72014    
   3  Normalizat    .73380        .27966        .79792E-06   -1.0257    
   4  Prefactor     1.0768        .99826E-01    .23755E-06   -.90213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.89802e-12
Minuit parameter uncertainties:
  1  4.1042e-06
  2  143.302
  3  0.280211
  4  0.0998436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675963': 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) = 9097.35980688
delta logL = 2.79685264104e-06

Extracting fit parameters...

4FGL J1633.8+0701
   Spectrum: PowerLaw
245    Prefactor:  1.000e-04  4.104e-06  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  1.703e+00  1.433e+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:  1.077e+00  9.984e-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:  7.338e-01  2.802e-01  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/675963/cmap_HighResolution_381888001_382147201_4FGL_J1633.8+0701_daily_bin550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', job_status='DONE', photon_flux_upper_limit='6.15e-08', time_completed='2021-09-14 21:16:23.985857', job_id='675963', GAL2='1.08', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1631679383.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.80e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='550' AND source_name='4FGL J1633.8+0701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 21:16:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 675963: <4FGL_J1633.8+0701_daily_bin550> in cluster <slac> Done

Job <4FGL_J1633.8+0701_daily_bin550> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 14 21:00:53 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 21:02:35 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:02:35 2021
Terminated at Tue Sep 14 21:16:24 2021
Results reported at Tue Sep 14 21:16:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1633.8+0701_daily_bin550 248.454 7.0309 381888001 382147201 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 :                                   691.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            931 sec.

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

