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


Performing analysis on: 4FGL_J0634.9-2335_daily_bin505
RA = 98.7305, Dec = -23.5949
tmin = 370224001, tmax = 370483201
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='508726', job_status='RUN', time_executed='2021-08-25 09:16:49.771663', time_epoch_executed='1629908209.77' WHERE source_name='4FGL J0634.9-2335' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/508726

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/508726/ft1_4FGL_J0634.9-2335_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/508726/ft2_4FGL_J0634.9-2335_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/508726/ft1_4FGL_J0634.9-2335_daily_bin505.fits outfile=/scratch/kocevski/508726/ft1_filteredMKT_4FGL_J0634.9-2335_daily_bin505.fits ra=98.7305 dec=-23.5949 rad=12.0 tmin=370224001.0 tmax=370483201.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 24.33
user 15.92
sys 8.35

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/508726/ft2_4FGL_J0634.9-2335_daily_bin505.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/508726/ft2_4FGL_J0634.9-2335_daily_bin505.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/508726/ft1_filteredMKT_4FGL_J0634.9-2335_daily_bin505.fits evtable="EVENTS" outfile="/scratch/kocevski/508726/ft1_filtered_4FGL_J0634.9-2335_daily_bin505.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 8.68
user 0.34
sys 8.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/508726/ft1_filtered_4FGL_J0634.9-2335_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/508726/ft2_4FGL_J0634.9-2335_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/508726/ltcube_370224001_370483201_4FGL_J0634.9-2335_daily_bin505.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/508726/ft2_4FGL_J0634.9-2335_daily_bin505.fits
.....................!
real 20.74
user 11.41
sys 9.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/508726/ft1_filtered_4FGL_J0634.9-2335_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/508726/ft2_4FGL_J0634.9-2335_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/508726/ltcube_370224001_370483201_4FGL_J0634.9-2335_daily_bin505.fits outfile=/scratch/kocevski/508726/expmap_370224001_370483201_4FGL_J0634.9-2335_daily_bin505.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/508726/ltcube_370224001_370483201_4FGL_J0634.9-2335_daily_bin505.fits
.....................!
real 201.88
user 186.71
sys 14.74

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
Added 152 point sources and 0 extended sources

Setting source of interest to:
4FGL J0634.9-2335 @ 98.7305 -23.5949

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/508726/ft1_filtered_4FGL_J0634.9-2335_daily_bin505.fits scfile=/scratch/kocevski/508726/ft2_4FGL_J0634.9-2335_daily_bin505.fits outfile=/scratch/kocevski/508726/cmap_370224001_370483201_4FGL_J0634.9-2335_daily_bin505.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=98.7305 yref=-23.5949 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 8.37
user 0.37
sys 7.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/508726/ft1_filtered_4FGL_J0634.9-2335_daily_bin505.fits scfile=/scratch/kocevski/508726/ft2_4FGL_J0634.9-2335_daily_bin505.fits outfile=/scratch/kocevski/508726/cmap_HighResolution_370224001_370483201_4FGL_J0634.9-2335_daily_bin505.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=98.7305 yref=-23.5949 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 8.40
user 0.40
sys 7.90

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/508726/ft1_filtered_4FGL_J0634.9-2335_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/508726/ft2_4FGL_J0634.9-2335_daily_bin505.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/508726/Model_4FGL_J0634.9-2335_daily_bin505.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 GAL_V02
Working on...
/scratch/kocevski/508726/ft1_filtered_4FGL_J0634.9-2335_daily_bin505.fits......................!
real 48.82
user 36.33
sys 11.47

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/508726/ft1_filtered_4FGL_J0634.9-2335_daily_bin505.fits', '/scratch/kocevski/508726/ft2_4FGL_J0634.9-2335_daily_bin505.fits', expMap='/scratch/kocevski/508726/expmap_370224001_370483201_4FGL_J0634.9-2335_daily_bin505.fits', expCube='/scratch/kocevski/508726/ltcube_370224001_370483201_4FGL_J0634.9-2335_daily_bin505.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/508726/Model_4FGL_J0634.9-2335_daily_bin505.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0634.9-2335'

4FGL J0634.9-2335
   Spectrum: PowerLaw
277    Prefactor:  1.593e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
278        Index:  2.612e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  7.320e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/508726/ft1_filtered_4FGL_J0634.9-2335_daily_bin505.fits
Spacecraft file(s): /scratch/kocevski/508726/ft2_4FGL_J0634.9-2335_daily_bin505.fits
Exposure map: /scratch/kocevski/508726/expmap_370224001_370483201_4FGL_J0634.9-2335_daily_bin505.fits
Exposure cube: /scratch/kocevski/508726/ltcube_370224001_370483201_4FGL_J0634.9-2335_daily_bin505.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/508726/Model_4FGL_J0634.9-2335_daily_bin505.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) = 1679.88475233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.450       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11604E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.095       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .30698E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    46.888       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.959       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10577E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.5415       1.0000         .10000E-03   10000.    
    16 'norm      '    86.354       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10501E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    14.787       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.409       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.0233       1.0000         .10000E-03   10000.    
    22 'norm      '    .11895E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10403E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10678E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93476       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1679.862     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     2785 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    26.983        .30716E-05** at limit **
   2  Prefactor     .10000E-03    18.880       -.23355E-05** at limit **
   3  Prefactor     28.460        1.2097        .88183E-08   -.92913E-04
   4  Prefactor     .10006E-03    41.338       -.13204E-05** at limit **
   5  Prefactor     25.046        8.0204       -.30031E-07    .12826E-02
   6  Prefactor     .10174E-03    4.6142       -.80595E-07** at limit **
   7  Prefactor     .10700E-03    43.362       -.15822E-05** at limit **
   8  Prefactor     .10995E-03    69.246       -.81471E-06** at limit **
   9  norm          .10002E-03    30.127        .35989E-05** at limit **
  10  Prefactor     46.893        1.6424        .34683E-08   -.61652E-03
  11  Prefactor     18.956        1.0304        .61187E-08    .64995E-04
  12  Prefactor     .10679E-03    41.617       -.15436E-05** at limit **
  13  norm          .10411E-03    39.633       -.11167E-05** at limit **
  14  norm          .10000E-03    12.499       -.13018E-05** at limit **
  15  norm          2.5414        5.9884        .10022E-05    .12478E-03
  16  norm          86.365        2.4541        .56347E-08   -.99261E-03
  17  Prefactor     .10000E-03    11.887        .22265E-05** at limit **
  18  norm          .10614E-03    67.601        .12169E-06** at limit **
  19  norm          14.787        1.9665       -.37547E-07   -.16533E-03
  20  Prefactor     13.333        19.559       -.87113E-07    .62161E-02
  21  Prefactor     4.0242        7.2418       -.31318E-06   -.37849E-03
  22  norm          .10076E-03    144.27       -.62736E-06** at limit **
  23  norm          .10835E-03    44.895       -.98765E-06** at limit **
  24  norm          .10000E-03    3.8689       -.25261E-06** at limit **
  25  Prefactor     .10050E-03    52.976        .27767E-05** at limit **
  26  Normalizat    .10000E-01    7.6924       -.27427E-04** at limit **
  27  Prefactor     .93486        .93864E-01    .15347E-06    .26321E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100017
  Prefactor  = 0.000100001
  Prefactor  = 28.4598
  Prefactor  = 0.000100055
  Prefactor  = 25.046
  Prefactor  = 0.000101737
  Prefactor  = 0.000106998
  Prefactor  = 0.000109947
  norm       = 0.000100016
  Prefactor  = 46.8925
  Prefactor  = 18.9557
  Prefactor  = 0.000106785
  norm       = 0.000104115
  norm       = 0.0001
  norm       = 2.54139
  norm       = 86.3649
  Prefactor  = 0.0001
  norm       = 0.000106141
  norm       = 14.7873
  Prefactor  = 13.3328
  Prefactor  = 4.02423
  norm       = 0.000100756
  norm       = 0.000108353
  norm       = 0.0001
  Prefactor  = 0.000100499
  Normalizat = 0.01
  Prefactor  = 0.934862
 **********
 **   18 **HESSE 
 **********

 FCN=   1679.862     FROM HESSE     STATUS=OK           536 CALLS     3321 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    26.991        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.836        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.460        27.584        .18778E-02   -1.4641    
   4  Prefactor     .10006E-03    166.49        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.046        48.098        .19991E-02   -1.4707    
   6  Prefactor     .10174E-03    619.08        .10690E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10700E-03    121.90        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10995E-03    252.75        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10002E-03    30.121        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     46.893        59.091        .14639E-02   -1.4337    
  11  Prefactor     18.956        37.873        .22996E-02   -1.4837    
  12  Prefactor     .10679E-03    113.85        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10411E-03    192.98        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    12.485        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.5414        6.1310        .64042E-02   -1.5389    
  16  norm          86.365        57.631        .10808E-02   -1.3847    
  17  Prefactor     .10000E-03    11.882        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10614E-03    76.463        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.787        22.351        .26040E-02   -1.4939    
  20  Prefactor     13.333        265.39        .27347E-02   -1.4978    
  21  Prefactor     4.0242        9.0692        .50261E-02   -1.5307    
  22  norm          .10076E-03    342.58        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10835E-03    213.65        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.8617        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10050E-03    53.396        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    1.0392        .32259       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .93486        .11803        .27807E-01   -.94933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50035e-06
Minuit parameter uncertainties:
  1  0.0013367
  2  0.000227248
  3  27.5962
  4  0.0060733
  5  48.1723
  6  0.0662749
  7  0.0585365
  8  0.100708
  9  0.00140536
  10  59.1645
  11  37.9209
  12  0.0556938
  13  0.0565407
  14  7.13155e-05
  15  6.13256
  16  57.6683
  17  0.000128881
  18  0.0433956
  19  22.3641
  20  119.582
  21  9.0723
  22  0.0323771
  23  0.0847946
  24  9.07962e-06
  25  0.0103329
  26  1.6671e-05
  27  0.118066
Done.

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

Extracting fit parameters...

4FGL J0634.9-2335
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  1.289e-04  1.000e-04  1.000e+04 ( 1.000e-12)
278        Index:  2.612e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  7.320e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.349e-01  1.181e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.000e-02  1.667e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 98.731 -23.595
Photon Flux Upper Limit: 5.80e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.54e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/508726/likelihoodResults_370224001_370483201_4FGL_J0634.9-2335_daily_bin505.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) = 1679.86260779
delta logL = -0.000401072961722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1679.86220767
delta logL = -9.46451109485e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5936       1.0000          .0000       10.000    
     3 'Normalizat'    .10013E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93487       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+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=   1679.862     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      273 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.638        .13989E-01** at limit **
   2  Index         2.0620        8.3040        .50000        .92558E-07
   3  Normalizat    .10000E-01    .53997E-01    .19594E-01** at limit **
   4  Prefactor     .93486        .81390E-02    .12291E-03   -.15027E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06198
  Normalizat = 0.01
  Prefactor  = 0.934862
 **********
 **   18 **HESSE 
 **********

 FCN=   1679.862     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    538.00        .15505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0620        5.8795        .50000       -.62809    
   3  Normalizat    .10000E-01    .52498        .78378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .93486        .25055E-01    .24582E-04   -.94933    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.1804e-10
Minuit parameter uncertainties:
  1  5.56657e-05
  2  1250.82
  3  2.36206e-06
  4  0.0250557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/508726': 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) = 1679.86220585
delta logL = 8.74845454746e-07

Extracting fit parameters...

4FGL J0634.9-2335
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  5.567e-05  1.000e-04  1.000e+04 ( 1.000e-12)
278        Index:  2.062e+00  1.251e+03  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  7.320e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.349e-01  2.506e-02  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.000e-02  2.362e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 98.731 -23.595

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/508726/cmap_HighResolution_370224001_370483201_4FGL_J0634.9-2335_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-02', job_status='DONE', photon_flux_upper_limit='5.80e-07', time_completed='2021-08-25 09:26:49.973739', job_id='508726', GAL2='0.93', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629908809.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='8.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='505' AND source_name='4FGL J0634.9-2335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 09:26:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 508726: <4FGL_J0634.9-2335_daily_bin505> in cluster <slac> Done

Job <4FGL_J0634.9-2335_daily_bin505> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Aug 25 09:10:34 2021
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 09:10:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 25 09:10:36 2021
Terminated at Wed Aug 25 09:26:51 2021
Results reported at Wed Aug 25 09:26:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0634.9-2335_daily_bin505 98.7305 -23.5949 370224001 370483201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0634.9-2335 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   722.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

