/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 3 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 = 7673
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0634.9-2335_daily_bin362
RA = 98.7305, Dec = -23.5949
tmin = 333158401, tmax = 333417601
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='508514', job_status='RUN', time_executed='2021-08-25 09:10:34.322592', time_epoch_executed='1629907834.32' WHERE source_name='4FGL J0634.9-2335' and cadence='daily' and bin_id='362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/508514

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/508514/ft1_4FGL_J0634.9-2335_daily_bin362.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/508514/ft2_4FGL_J0634.9-2335_daily_bin362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/508514/ft1_4FGL_J0634.9-2335_daily_bin362.fits outfile=/scratch/kocevski/508514/ft1_filteredMKT_4FGL_J0634.9-2335_daily_bin362.fits ra=98.7305 dec=-23.5949 rad=12.0 tmin=333158401.0 tmax=333417601.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 6.07
user 5.79
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/508514/ft1_filtered_4FGL_J0634.9-2335_daily_bin362.fits" evtable="EVENTS" scfile=/scratch/kocevski/508514/ft2_4FGL_J0634.9-2335_daily_bin362.fits sctable="SC_DATA" outfile=/scratch/kocevski/508514/ltcube_333158401_333417601_4FGL_J0634.9-2335_daily_bin362.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/508514/ft2_4FGL_J0634.9-2335_daily_bin362.fits
.....................!
real 11.80
user 11.47
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/508514/ft1_filtered_4FGL_J0634.9-2335_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/508514/ft2_4FGL_J0634.9-2335_daily_bin362.fits sctable="SC_DATA" expcube=/scratch/kocevski/508514/ltcube_333158401_333417601_4FGL_J0634.9-2335_daily_bin362.fits outfile=/scratch/kocevski/508514/expmap_333158401_333417601_4FGL_J0634.9-2335_daily_bin362.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/508514/ltcube_333158401_333417601_4FGL_J0634.9-2335_daily_bin362.fits
.....................!
real 190.21
user 185.58
sys 4.29

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/508514/ft1_filtered_4FGL_J0634.9-2335_daily_bin362.fits scfile=/scratch/kocevski/508514/ft2_4FGL_J0634.9-2335_daily_bin362.fits outfile=/scratch/kocevski/508514/cmap_333158401_333417601_4FGL_J0634.9-2335_daily_bin362.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/508514/ft1_filtered_4FGL_J0634.9-2335_daily_bin362.fits scfile=/scratch/kocevski/508514/ft2_4FGL_J0634.9-2335_daily_bin362.fits outfile=/scratch/kocevski/508514/cmap_HighResolution_333158401_333417601_4FGL_J0634.9-2335_daily_bin362.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/508514/ft1_filtered_4FGL_J0634.9-2335_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/508514/ft2_4FGL_J0634.9-2335_daily_bin362.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/508514/Model_4FGL_J0634.9-2335_daily_bin362.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/508514/ft1_filtered_4FGL_J0634.9-2335_daily_bin362.fits.....................!
real 144.59
user 143.09
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.4609       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.392       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3743       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10823E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.5156       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1094       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.955       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    24.481       1.0000         .10000E-03   10000.    
    15 'norm      '    2.6325       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7313       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.0702       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5433       1.0000         .10000E-03   10000.    
    22 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.1539       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.8516       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .84024       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=   9654.136     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3279 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.2822       -.70787E-07** at limit **
   2  Prefactor     .10000E-03    2.6519       -.58090E-07** at limit **
   3  Prefactor     8.4611        9.4868       -.71663E-06   -.82984E-04
   4  Prefactor     .10000E-03    59.524       -.82326E-05** at limit **
   5  Prefactor     .10000E-03    12.523        .50665E-05** at limit **
   6  Prefactor     27.419        54.696        .33181E-04    .66292E-04
   7  Prefactor     5.3086        70.926       -.11129E-03   -.10031E-04
   8  Prefactor     .10001E-03    30.301        .50015E-05** at limit **
   9  norm          8.5168        7.8857       -.18286E-05   -.28636E-04
  10  Prefactor     9.1093        14.575       -.82426E-06   -.44586E-05
  11  Prefactor     .10000E-03    7.5367       -.30356E-07** at limit **
  12  Prefactor     20.964        21.211        .43254E-05    .12237E-03
  13  norm          .10000E-03    9.1491       -.42205E-06** at limit **
  14  norm          24.481        9.1795       -.20859E-06    .99433E-04
  15  norm          2.6326        1.7250        .29715E-07    .20260E-03
  16  norm          1.7312        7.5793       -.21369E-05   -.48022E-03
  17  Prefactor     .10000E-03    3.9645       -.83764E-07** at limit **
  18  norm          .10000E-03    6.7780       -.69383E-07** at limit **
  19  norm          .10000E-03    13.037       -.51507E-05** at limit **
  20  Prefactor     8.0703        8.0274       -.29975E-08    .61622E-04
  21  Prefactor     1.5425        3.6350       -.13088E-05   -.11834E-02
  22  norm          .10000E-03    92.597        .26854E-04** at limit **
  23  norm          .10000E-03    29.595        .11691E-04** at limit **
  24  norm          3.1535        3.1955       -.20721E-06   -.44547E-03
  25  Prefactor     .10000E-03    32.030       -.15858E-04** at limit **
  26  Normalizat    1.8514        .26173        .53573E-05    .36338E-04
  27  Prefactor     .84028        .61031E-01   -.42138E-06    .79279E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.4611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.4187
  Prefactor  = 5.30863
  Prefactor  = 0.000100006
  norm       = 8.51682
  Prefactor  = 9.10933
  Prefactor  = 0.0001
  Prefactor  = 20.9637
  norm       = 0.0001
  norm       = 24.4814
  norm       = 2.63263
  norm       = 1.73123
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.07034
  Prefactor  = 1.54254
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.1535
  Prefactor  = 0.0001
  Normalizat = 1.85139
  Prefactor  = 0.840284
 **********
 **   18 **HESSE 
 **********

 FCN=   9654.136     FROM HESSE     STATUS=OK           482 CALLS     3761 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2829        .17385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6613        .15624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.4611        9.4946        .13782E-03   -1.5126    
   4  Prefactor     .10000E-03    59.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.419        55.261        .76544E-04   -1.4660    
   7  Prefactor     5.3086        71.905        .17335E-03   -1.5247    
   8  Prefactor     .10001E-03    30.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.5168        7.8701        .13737E-03   -1.5124    
  10  Prefactor     9.1093        14.571        .13279E-03   -1.5104    
  11  Prefactor     .10000E-03    7.6525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.964        21.226        .87497E-04   -1.4792    
  13  norm          .10000E-03    9.1500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          24.481        9.1760        .80960E-04   -1.4718    
  15  norm          2.6326        1.7258        .10096E-03   -1.5383    
  16  norm          1.7312        7.5094        .31903E-03   -1.5445    
  17  Prefactor     .10000E-03    4.0161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.7925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    13.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.0703        8.0313        .14113E-03   -1.5140    
  21  Prefactor     1.5425        3.6081        .26962E-03   -1.5460    
  22  norm          .10000E-03    92.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    29.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.1535        3.1943        .16990E-03   -1.5353    
  25  Prefactor     .10000E-03    32.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.8514        .28578        .44024E-03   -.68330    
  27  Prefactor     .84028        .66324E-01    .15328E-03   -.98260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87577e-09
Minuit parameter uncertainties:
  1  2.32552e-06
  2  1.09683e-05
  3  9.49631
  4  0.000149711
  5  4.16213e-05
  6  55.3645
  7  39.1322
  8  0.000836244
  9  7.87109
  10  14.5763
  11  5.69564e-05
  12  21.2339
  13  3.7326e-05
  14  9.17649
  15  1.72587
  16  7.21257
  17  4.55831e-06
  18  1.12356e-05
  19  0.000110052
  20  8.03235
  21  3.60863
  22  0.000183817
  23  3.06937e-05
  24  3.19443
  25  9.34126e-05
  26  0.286045
  27  0.0663301
Done.

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

Extracting fit parameters...

4FGL J0634.9-2335
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  4.558e-06  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:  8.403e-01  6.633e-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.851e+00  2.860e-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.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/508514/likelihoodResults_333158401_333417601_4FGL_J0634.9-2335_daily_bin362.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) = 9654.13721701
delta logL = -0.00118705213026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9654.13602985
delta logL = 1.05284925667e-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.5971       1.0000          .0000       10.000    
     3 'Normalizat'    1.8514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84028       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=   9654.136     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      238 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10105E-03    60.029        .18142E-02** at limit **
   2  Index         2.5352        8.0687        .50000        .23633E-04
   3  Normalizat    1.8514        .30491E-01    .44024E-03   -.40689E-03
   4  Prefactor     .84028        .76174E-02    .15328E-03   -.34774E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101049
  Index      = 2.53521
  Normalizat = 1.85139
  Prefactor  = 0.840283
 **********
 **   18 **HESSE 
 **********

 FCN=   9654.136     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10105E-03    251.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5352        8.2919        .50000       -.51549    
   3  Normalizat    1.8514        .66106E-01    .88047E-04   -.68330    
   4  Prefactor     .84028        .16515E-01    .30655E-04   -.98260    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.87756e-08
Minuit parameter uncertainties:
  1  0.032622
  2  704.217
  3  0.0661093
  4  0.0165148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/508514': 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) = 9654.13602958
delta logL = 3.74791852664e-07

Extracting fit parameters...

4FGL J0634.9-2335
   Spectrum: PowerLaw
277    Prefactor:  1.010e-04  3.262e-02  1.000e-04  1.000e+04 ( 1.000e-12)
278        Index:  2.535e+00  7.042e+02  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:  8.403e-01  1.651e-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.851e+00  6.611e-02  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/508514/cmap_HighResolution_333158401_333417601_4FGL_J0634.9-2335_daily_bin362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-08-25 09:26:38.872850', job_id='508514', GAL2='0.84', fit_tolerance='1e-08', EG2='1.85', EG='1.85', time_epoch_completed='1629908798.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='3.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='362' AND source_name='4FGL J0634.9-2335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 09:26:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 508514: <4FGL_J0634.9-2335_daily_bin362> in cluster <slac> Done

Job <4FGL_J0634.9-2335_daily_bin362> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Aug 25 09:10:19 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 09:10:22 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:22 2021
Terminated at Wed Aug 25 09:26:39 2021
Results reported at Wed Aug 25 09:26:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0634.9-2335_daily_bin362 98.7305 -23.5949 333158401 333417601 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 :                                   962.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             378.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            980 sec.

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

