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


Performing analysis on: 4FGL_J0634.9-2335_daily_bin666
RA = 98.7305, Dec = -23.5949
tmin = 411955201, tmax = 412214401
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='510164', job_status='RUN', time_executed='2021-08-25 09:15:50.768816', time_epoch_executed='1629908150.77' WHERE source_name='4FGL J0634.9-2335' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510164

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510164/ft1_4FGL_J0634.9-2335_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510164/ft2_4FGL_J0634.9-2335_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510164/ft1_4FGL_J0634.9-2335_daily_bin666.fits outfile=/scratch/kocevski/510164/ft1_filteredMKT_4FGL_J0634.9-2335_daily_bin666.fits ra=98.7305 dec=-23.5949 rad=12.0 tmin=411955201.0 tmax=412214401.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 5.76
user 5.48
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/510164/ft2_4FGL_J0634.9-2335_daily_bin666.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/510164/ft1_filteredMKT_4FGL_J0634.9-2335_daily_bin666.fits evtable="EVENTS" outfile="/scratch/kocevski/510164/ft1_filtered_4FGL_J0634.9-2335_daily_bin666.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510164/ft1_filtered_4FGL_J0634.9-2335_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/510164/ft2_4FGL_J0634.9-2335_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/510164/ltcube_411955201_412214401_4FGL_J0634.9-2335_daily_bin666.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/510164/ft2_4FGL_J0634.9-2335_daily_bin666.fits
.....................!
real 12.16
user 11.84
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510164/ft1_filtered_4FGL_J0634.9-2335_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/510164/ft2_4FGL_J0634.9-2335_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/510164/ltcube_411955201_412214401_4FGL_J0634.9-2335_daily_bin666.fits outfile=/scratch/kocevski/510164/expmap_411955201_412214401_4FGL_J0634.9-2335_daily_bin666.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/510164/ltcube_411955201_412214401_4FGL_J0634.9-2335_daily_bin666.fits
.....................!
real 189.25
user 184.94
sys 3.99

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/510164/ft1_filtered_4FGL_J0634.9-2335_daily_bin666.fits scfile=/scratch/kocevski/510164/ft2_4FGL_J0634.9-2335_daily_bin666.fits outfile=/scratch/kocevski/510164/cmap_411955201_412214401_4FGL_J0634.9-2335_daily_bin666.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 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510164/ft1_filtered_4FGL_J0634.9-2335_daily_bin666.fits scfile=/scratch/kocevski/510164/ft2_4FGL_J0634.9-2335_daily_bin666.fits outfile=/scratch/kocevski/510164/cmap_HighResolution_411955201_412214401_4FGL_J0634.9-2335_daily_bin666.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 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/510164/ft1_filtered_4FGL_J0634.9-2335_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/510164/ft2_4FGL_J0634.9-2335_daily_bin666.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/510164/Model_4FGL_J0634.9-2335_daily_bin666.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/510164/ft1_filtered_4FGL_J0634.9-2335_daily_bin666.fits.....................!
real 122.70
user 121.27
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/510164/ft1_filtered_4FGL_J0634.9-2335_daily_bin666.fits', '/scratch/kocevski/510164/ft2_4FGL_J0634.9-2335_daily_bin666.fits', expMap='/scratch/kocevski/510164/expmap_411955201_412214401_4FGL_J0634.9-2335_daily_bin666.fits', expCube='/scratch/kocevski/510164/ltcube_411955201_412214401_4FGL_J0634.9-2335_daily_bin666.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/510164/Model_4FGL_J0634.9-2335_daily_bin666.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/510164/ft1_filtered_4FGL_J0634.9-2335_daily_bin666.fits
Spacecraft file(s): /scratch/kocevski/510164/ft2_4FGL_J0634.9-2335_daily_bin666.fits
Exposure map: /scratch/kocevski/510164/expmap_411955201_412214401_4FGL_J0634.9-2335_daily_bin666.fits
Exposure cube: /scratch/kocevski/510164/ltcube_411955201_412214401_4FGL_J0634.9-2335_daily_bin666.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/510164/Model_4FGL_J0634.9-2335_daily_bin666.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) = 9017.10808619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.2196       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8347       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    80.636       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23234E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.334       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12354E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    59.899       1.0000         .10000E-03   10000.    
    14 'norm      '    14.199       1.0000         .10000E-03   10000.    
    15 'norm      '    .33394       1.0000         .10000E-03   10000.    
    16 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.7782       1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.2994       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .38556E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10867E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    136.53       1.0000         .10000E-03   10000.    
    24 'norm      '    9.7539       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .82604       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98436       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.

 FCN=   9017.099     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     3305 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2180        11.810       -.18953E-05   -.91164E-03
   2  Prefactor     .10000E-03    8.6771        .57043E-05** at limit **
   3  Prefactor     6.8327        10.775       -.13575E-05   -.14385E-03
   4  Prefactor     .10000E-03    86.179        .27037E-05** at limit **
   5  Prefactor     .10000E-03    9.1177       -.36179E-05** at limit **
   6  Prefactor     .10000E-03    61.934        .48174E-04** at limit **
   7  Prefactor     80.615        52.428       -.16973E-04    .35351E-03
   8  Prefactor     .10001E-03    97.849       -.47356E-04** at limit **
   9  norm          .10000E-03    10.010        .47975E-05** at limit **
  10  Prefactor     .10000E-03    9.6429       -.74082E-05** at limit **
  11  Prefactor     14.333        8.6819       -.66507E-06   -.10307E-03
  12  Prefactor     .10000E-03    43.690       -.41264E-04** at limit **
  13  norm          59.907        46.493        .70709E-05    .90112E-04
  14  norm          14.200        9.0726       -.18088E-05    .31033E-04
  15  norm          .33419        1.0362       -.90115E-06   -.14787E-02
  16  norm          .10000E-03    21.479        .29201E-05** at limit **
  17  Prefactor     .10000E-03    5.9599       -.29392E-06** at limit **
  18  norm          5.7196        27.273       -.52244E-04   -.16477E-03
  19  norm          .10000E-03    3.1150       -.45472E-07** at limit **
  20  Prefactor     9.3243        20.041        .25254E-04    .17260E-03
  21  Prefactor     .10000E-03    1.6233       -.86130E-06** at limit **
  22  norm          .10000E-03    57.305        .38599E-04** at limit **
  23  norm          136.56        78.345        .18867E-04   -.53841E-05
  24  norm          9.7528        4.1956        .20488E-07   -.14251E-05
  25  Prefactor     .10000E-03    5.2555        .55522E-06** at limit **
  26  Normalizat    .82585        .26234        .16431E-04    .66928E-04
  27  Prefactor     .98440        .64043E-01   -.17588E-05    .10362E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 9.21803
  Prefactor  = 0.000100001
  Prefactor  = 6.83267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 80.6145
  Prefactor  = 0.000100014
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3328
  Prefactor  = 0.000100004
  norm       = 59.9067
  norm       = 14.1997
  norm       = 0.334193
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.71958
  norm       = 0.0001
  Prefactor  = 9.32428
  Prefactor  = 0.000100002
  norm       = 0.000100001
  norm       = 136.559
  norm       = 9.75275
  Prefactor  = 0.0001
  Normalizat = 0.825852
  Prefactor  = 0.984398
 **********
 **   18 **HESSE 
 **********

 FCN=   9017.099     FROM HESSE     STATUS=OK           482 CALLS     3787 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2180        11.839        .65996E-03   -1.5101    
   2  Prefactor     .10000E-03    8.8010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.8327        10.761        .15347E-03   -1.5185    
   4  Prefactor     .10000E-03    86.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.1500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    62.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     80.615        52.187        .44726E-04   -1.3910    
   8  Prefactor     .10001E-03    97.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    10.322        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.6641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.333        8.6611        .10579E-03   -1.4951    
  12  Prefactor     .10000E-03    43.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          59.907        46.482        .51841E-04   -1.4158    
  14  norm          14.200        9.0562        .10629E-03   -1.4954    
  15  norm          .33419        1.1674        .16482E-02   -1.5592    
  16  norm          .10000E-03    22.074        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.1434        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.7196        27.172        .16709E-03   -1.5230    
  19  norm          .10000E-03    3.1195        .16362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.3243        19.926        .13142E-03   -1.5097    
  21  Prefactor     .10000E-03    6.8065        .22835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    57.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          136.56        78.232        .17234E-03   -1.3365    
  24  norm          9.7528        4.2024        .12220E-03   -1.5083    
  25  Prefactor     .10000E-03    5.2563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .82585        .26576        .56875E-03   -.99117    
  27  Prefactor     .98440        .65783E-01    .13896E-03   -.93251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01871e-09
Minuit parameter uncertainties:
  1  11.8415
  2  0.000139568
  3  10.764
  4  0.000329487
  5  3.64778e-05
  6  0.0001179
  7  52.2169
  8  0.00232258
  9  6.94083e-05
  10  1.19024e-05
  11  8.6619
  12  0.000868671
  13  46.5102
  14  9.05707
  15  1.1675
  16  1.94986e-05
  17  1.13046e-05
  18  24.9511
  19  2.02453e-06
  20  19.9402
  21  0.000242141
  22  0.000478178
  23  78.2917
  24  4.20254
  25  1.8388e-07
  26  0.266181
  27  0.0657884
Done.

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

Extracting fit parameters...

4FGL J0634.9-2335
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  1.130e-05  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.844e-01  6.579e-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:  8.259e-01  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/510164/likelihoodResults_411955201_412214401_4FGL_J0634.9-2335_daily_bin666.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) = 9017.09933701
delta logL = -0.000777204239057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9017.09856372
delta logL = -3.91036883229e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15282E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5400       1.0000          .0000       10.000    
     3 'Normalizat'    .82637       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98431       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=   9017.043     FROM MIGRAD    STATUS=CONVERGED    213 CALLS      377 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9128        929.84        .34436E-02   -.31857E-03
   2  Index         1.6201        5.8811        .41458       -.88667E-04
   3  Normalizat    .82181        .16200        .56873E-03   -.10319E-03
   4  Prefactor     .98356        .50627E-01    .13896E-03   -.71553E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.91279
  Index      = 1.62015
  Normalizat = 0.821809
  Prefactor  = 0.983563
 **********
 **   18 **HESSE 
 **********

 FCN=   9017.043     FROM HESSE     STATUS=OK            29 CALLS      406 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9128        6.1579        .13774E-03   -1.5431    
   2  Index         1.6201        1.0683        .13591E-01   -.74228    
   3  Normalizat    .82181        .23687        .22749E-04   -.99265    
   4  Prefactor     .98356        .63382E-01    .27792E-04   -.93279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.79075e-10
Minuit parameter uncertainties:
  1  6.15992
  2  1.08389
  3  0.237165
  4  0.0633867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510164': 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) = 9017.04316242
delta logL = 0.0553973897604

Extracting fit parameters...

4FGL J0634.9-2335
   Spectrum: PowerLaw
277    Prefactor:  1.913e+00  6.160e+00  1.000e-04  1.000e+04 ( 1.000e-12)
278        Index:  1.620e+00  1.084e+00  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.836e-01  6.339e-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:  8.218e-01  2.372e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/510164/cmap_HighResolution_411955201_412214401_4FGL_J0634.9-2335_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-08-25 09:31:13.510337', job_id='510164', GAL2='0.98', fit_tolerance='1e-08', EG2='0.82', EG='0.83', time_epoch_completed='1629909073.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.54e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='666' AND source_name='4FGL J0634.9-2335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 09:31:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 510164: <4FGL_J0634.9-2335_daily_bin666> in cluster <slac> Done

Job <4FGL_J0634.9-2335_daily_bin666> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Aug 25 09:15:35 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 09:15:42 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:15:42 2021
Terminated at Wed Aug 25 09:31:14 2021
Results reported at Wed Aug 25 09:31:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0634.9-2335_daily_bin666 98.7305 -23.5949 411955201 412214401 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 :                                   920.26 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             347.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            939 sec.

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

