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


Performing analysis on: 4FGL_J1635.3+4258_daily_bin1170
RA = 248.846, Dec = 42.9756
tmin = 542592001, tmax = 542851201
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='702292', job_status='RUN', time_executed='2021-09-14 22:27:41.065219', time_epoch_executed='1631683661.07' WHERE source_name='4FGL J1635.3+4258' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/702292

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/702292/ft1_4FGL_J1635.3+4258_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/702292/ft2_4FGL_J1635.3+4258_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/702292/ft1_4FGL_J1635.3+4258_daily_bin1170.fits outfile=/scratch/kocevski/702292/ft1_filteredMKT_4FGL_J1635.3+4258_daily_bin1170.fits ra=248.846 dec=42.9756 rad=12.0 tmin=542592001.0 tmax=542851201.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.71
user 6.43
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/702292/ft2_4FGL_J1635.3+4258_daily_bin1170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/702292/ft2_4FGL_J1635.3+4258_daily_bin1170.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/702292/ft1_filteredMKT_4FGL_J1635.3+4258_daily_bin1170.fits evtable="EVENTS" outfile="/scratch/kocevski/702292/ft1_filtered_4FGL_J1635.3+4258_daily_bin1170.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/702292/ft1_filtered_4FGL_J1635.3+4258_daily_bin1170.fits" evtable="EVENTS" scfile=/scratch/kocevski/702292/ft2_4FGL_J1635.3+4258_daily_bin1170.fits sctable="SC_DATA" outfile=/scratch/kocevski/702292/ltcube_542592001_542851201_4FGL_J1635.3+4258_daily_bin1170.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/702292/ft2_4FGL_J1635.3+4258_daily_bin1170.fits
.....................!
real 13.37
user 13.00
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/702292/ft1_filtered_4FGL_J1635.3+4258_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/702292/ft2_4FGL_J1635.3+4258_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/702292/ltcube_542592001_542851201_4FGL_J1635.3+4258_daily_bin1170.fits outfile=/scratch/kocevski/702292/expmap_542592001_542851201_4FGL_J1635.3+4258_daily_bin1170.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/702292/ltcube_542592001_542851201_4FGL_J1635.3+4258_daily_bin1170.fits
.....................!
real 191.22
user 186.10
sys 4.76

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

Setting source of interest to:
4FGL J1635.3+4258 @ 248.846 42.9756

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/702292/ft1_filtered_4FGL_J1635.3+4258_daily_bin1170.fits scfile=/scratch/kocevski/702292/ft2_4FGL_J1635.3+4258_daily_bin1170.fits outfile=/scratch/kocevski/702292/cmap_542592001_542851201_4FGL_J1635.3+4258_daily_bin1170.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.846 yref=42.9756 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/702292/ft1_filtered_4FGL_J1635.3+4258_daily_bin1170.fits scfile=/scratch/kocevski/702292/ft2_4FGL_J1635.3+4258_daily_bin1170.fits outfile=/scratch/kocevski/702292/cmap_HighResolution_542592001_542851201_4FGL_J1635.3+4258_daily_bin1170.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.846 yref=42.9756 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/702292/ft1_filtered_4FGL_J1635.3+4258_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/702292/ft2_4FGL_J1635.3+4258_daily_bin1170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/702292/Model_4FGL_J1635.3+4258_daily_bin1170.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/702292/ft1_filtered_4FGL_J1635.3+4258_daily_bin1170.fits.....................!
real 43.95
user 41.98
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/702292/ft1_filtered_4FGL_J1635.3+4258_daily_bin1170.fits', '/scratch/kocevski/702292/ft2_4FGL_J1635.3+4258_daily_bin1170.fits', expMap='/scratch/kocevski/702292/expmap_542592001_542851201_4FGL_J1635.3+4258_daily_bin1170.fits', expCube='/scratch/kocevski/702292/ltcube_542592001_542851201_4FGL_J1635.3+4258_daily_bin1170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/702292/Model_4FGL_J1635.3+4258_daily_bin1170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1635.3+4258'

4FGL J1635.3+4258
   Spectrum: LogParabola
311         norm:  1.168e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
312        alpha:  1.825e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
313         beta:  4.797e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  1.661e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/702292/ft1_filtered_4FGL_J1635.3+4258_daily_bin1170.fits
Spacecraft file(s): /scratch/kocevski/702292/ft2_4FGL_J1635.3+4258_daily_bin1170.fits
Exposure map: /scratch/kocevski/702292/expmap_542592001_542851201_4FGL_J1635.3+4258_daily_bin1170.fits
Exposure cube: /scratch/kocevski/702292/ltcube_542592001_542851201_4FGL_J1635.3+4258_daily_bin1170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/702292/Model_4FGL_J1635.3+4258_daily_bin1170.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) = 4729.41458501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2578       1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.605       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .67490E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13987E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    23.547       1.0000         .10000E-03   10000.    
     9 'norm      '    .49195       1.0000         .10000E-03   10000.    
    10 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    85.770       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    54.893       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3421       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1236       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3281       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13416E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.4099       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15310E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.8262       1.0000         .10000E-03   10000.    
    24 'norm      '    1.9478       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    70.785       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4333       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .63399       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4729.359     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     4139 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2155        210.85       -.44272E-05   -.32346E-05
   2  Prefactor     59.448        84.995        .47057E-05    .15883E-03
   3  Prefactor     .10000E-03    1.4877        .11657E-06** at limit **
   4  Prefactor     .10000E-03    5.7164       -.10053E-05** at limit **
   5  Prefactor     .10073E-03    30.707       -.61524E-07** at limit **
   6  Prefactor     .10001E-03    5.0573       -.40512E-05** at limit **
   7  Prefactor     .10000E-03    3.5630        .64392E-06** at limit **
   8  norm          23.509        23.630        .76063E-06    .28969E-03
   9  norm          .49197        .23793       -.55922E-08   -.32054E-03
  10  norm          .10000E-03    9.6265        .35604E-06** at limit **
  11  Prefactor     85.762        36.554       -.10647E-05   -.35535E-04
  12  Prefactor     .10000E-03    4.1130        .18356E-06** at limit **
  13  norm          54.920        73.429       -.21495E-05   -.11308E-04
  14  Prefactor     1.3430        1.2738       -.24115E-07   -.16787E-03
  15  Prefactor     .10000E-03    .77221        .30644E-06** at limit **
  16  Prefactor     1.1220        3.3879        .11520E-05    .47131E-03
  17  Prefactor     1.3282        2.5813        .68417E-06    .35017E-03
  18  Prefactor     .10000E-03    34.268        .14362E-05** at limit **
  19  norm          3.4105        2.0180       -.10174E-06   -.18213E-03
  20  norm          .10000E-03    .35078        .36560E-07** at limit **
  21  Prefactor     .10001E-03    5.8096        .30540E-06** at limit **
  22  norm          .10000E-03    .28763        .77908E-07** at limit **
  23  norm          2.8264        7.7319        .81377E-06    .80455E-04
  24  norm          1.9487        2.0245       -.13864E-06   -.13229E-03
  25  Prefactor     .10000E-03    2.0704        .94843E-07** at limit **
  26  norm          70.780        16.632       -.24223E-06   -.28039E-05
  27  Normalizat    1.4339        .26462        .85408E-05    .41760E-03
  28  Prefactor     .63361        .21492       -.82758E-05    .44242E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.2155
  Prefactor  = 59.448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100727
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 23.5093
  norm       = 0.491972
  norm       = 0.0001
  Prefactor  = 85.7619
  Prefactor  = 0.0001
  norm       = 54.9203
  Prefactor  = 1.34302
  Prefactor  = 0.0001
  Prefactor  = 1.12203
  Prefactor  = 1.32817
  Prefactor  = 0.0001
  norm       = 3.41049
  norm       = 0.0001
  Prefactor  = 0.000100013
  norm       = 0.0001
  norm       = 2.82637
  norm       = 1.9487
  Prefactor  = 0.0001
  norm       = 70.7796
  Normalizat = 1.43389
  Prefactor  = 0.633613
 **********
 **   18 **HESSE 
 **********

 FCN=   4729.359     FROM HESSE     STATUS=OK           517 CALLS     4656 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2155        213.31        .27340E-03   -1.5410    
   2  Prefactor     59.448        86.331        .25984E-03   -1.4164    
   3  Prefactor     .10000E-03    1.4955        .81883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.7603        .16061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10073E-03    194.19        .70813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    8.8745        .26713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6588        .25257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          23.509        23.621        .82548E-04   -1.4738    
   9  norm          .49197        .23621        .19537E-04   -1.5568    
  10  norm          .10000E-03    9.6306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     85.762        36.607        .43378E-04   -1.3853    
  12  Prefactor     .10000E-03    4.2020        .27174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          54.920        72.523        .54140E-04   -1.4224    
  14  Prefactor     1.3430        1.2499        .66892E-04   -1.5476    
  15  Prefactor     .10000E-03    .78946        .11649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1220        3.3703        .20768E-03   -1.5496    
  17  Prefactor     1.3282        2.5138        .14271E-03   -1.5477    
  18  Prefactor     .10000E-03    35.348        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.4105        2.0165        .72520E-04   -1.5339    
  20  norm          .10000E-03    .35694        .39648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    14.465        .31295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .29415        .71820E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.8264        7.6930        .24192E-03   -1.5372    
  24  norm          1.9487        2.0002        .94348E-04   -1.5429    
  25  Prefactor     .10000E-03    2.0754        .96630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          70.780        16.609        .47714E-04   -1.4023    
  27  Normalizat    1.4339        .28253        .24263E-03   -.79653    
  28  Prefactor     .63361        .22905        .29795E-03   -1.0619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39324e-09
Minuit parameter uncertainties:
  1  43.6379
  2  86.5137
  3  9.03864e-08
  4  8.21287e-05
  5  0.0238406
  6  0.000493017
  7  8.63021e-07
  8  23.6305
  9  0.236208
  10  2.47768e-05
  11  36.6166
  12  2.72963e-05
  13  72.6404
  14  1.24996
  15  2.78945e-06
  16  3.37091
  17  2.51404
  18  2.64482e-05
  19  2.0165
  20  2.80983e-06
  21  0.000854878
  22  9.39357e-07
  23  7.69564
  24  2.00025
  25  1.21308e-06
  26  16.6105
  27  0.282839
  28  0.229393
Done.

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

Extracting fit parameters...

4FGL J1635.3+4258
   Spectrum: LogParabola
311         norm:  1.000e-04  2.478e-05  1.000e-04  1.000e+04 ( 1.000e-13)
312        alpha:  1.825e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
313         beta:  4.797e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  1.661e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  6.336e-01  2.294e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.434e+00  2.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 248.846 42.976
Photon Flux Upper Limit: 2.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/702292/likelihoodResults_542592001_542851201_4FGL_J1635.3+4258_daily_bin1170.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): 0
logL (Free Index) = 4729.3594088
delta logL = -0.000489852134706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4729.35891895
delta logL = -9.98625182547e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8262       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63360       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4729.359     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.6355        .90712E-02** at limit **
   2  alpha         1.8277        3.3594        .43221       -.75881E-06
   3  Normalizat    1.4339        .22225        .54874E-01    .16381E-05
   4  Prefactor     .63361        .19025        .67330E-01    .19780E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.82771
  Normalizat = 1.43389
  Prefactor  = 0.63361
 **********
 **   18 **HESSE 
 **********

 FCN=   4729.359     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .58E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.5994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8277        3.3586        .50000       -.27227    
   3  Normalizat    1.4339        .26207        .24263E-03   -.79653    
   4  Prefactor     .63361        .22399        .29795E-03   -1.0619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7943e-13
Minuit parameter uncertainties:
  1  1.38528e-07
  2  2.40841
  3  0.262317
  4  0.224307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/702292': 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) = 4729.35891895
delta logL = 1.15960574476e-09

Extracting fit parameters...

4FGL J1635.3+4258
   Spectrum: LogParabola
311         norm:  1.000e-04  1.385e-07  1.000e-04  1.000e+04 ( 1.000e-13)
312        alpha:  1.828e+00  2.408e+00  0.000e+00  5.000e+00 ( 1.000e+00)
313         beta:  4.797e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  1.661e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  6.336e-01  2.243e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.434e+00  2.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 248.846 42.976

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/702292/cmap_HighResolution_542592001_542851201_4FGL_J1635.3+4258_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-05', job_status='DONE', photon_flux_upper_limit='2.94e-08', time_completed='2021-09-14 22:41:40.289362', job_id='702292', GAL2='0.63', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1631684500.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='1.16e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1170' AND source_name='4FGL J1635.3+4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 22:41:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 702292: <4FGL_J1635.3+4258_daily_bin1170> in cluster <slac> Done

Job <4FGL_J1635.3+4258_daily_bin1170> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep 14 22:25:40 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 22:27:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 22:27:28 2021
Terminated at Tue Sep 14 22:41:41 2021
Results reported at Tue Sep 14 22:41:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.3+4258_daily_bin1170 248.846 42.9756 542592001 542851201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1635.3+4258 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   830.14 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             295.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            961 sec.

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

