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


Performing analysis on: 4FGL_J1635.3+4258_daily_bin1157
RA = 248.846, Dec = 42.9756
tmin = 539222401, tmax = 539481601
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='702274', job_status='RUN', time_executed='2021-09-14 22:29:30.774286', time_epoch_executed='1631683770.77' WHERE source_name='4FGL J1635.3+4258' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/702274

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/702274/ft1_4FGL_J1635.3+4258_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/702274/ft2_4FGL_J1635.3+4258_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/702274/ft1_4FGL_J1635.3+4258_daily_bin1157.fits outfile=/scratch/kocevski/702274/ft1_filteredMKT_4FGL_J1635.3+4258_daily_bin1157.fits ra=248.846 dec=42.9756 rad=12.0 tmin=539222401.0 tmax=539481601.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.57
user 5.29
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/702274/ft2_4FGL_J1635.3+4258_daily_bin1157.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/702274/ft1_filteredMKT_4FGL_J1635.3+4258_daily_bin1157.fits evtable="EVENTS" outfile="/scratch/kocevski/702274/ft1_filtered_4FGL_J1635.3+4258_daily_bin1157.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.49
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/702274/ft1_filtered_4FGL_J1635.3+4258_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/702274/ft2_4FGL_J1635.3+4258_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/702274/ltcube_539222401_539481601_4FGL_J1635.3+4258_daily_bin1157.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/702274/ft2_4FGL_J1635.3+4258_daily_bin1157.fits
.....................!
real 15.70
user 15.29
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/702274/ft1_filtered_4FGL_J1635.3+4258_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/702274/ft2_4FGL_J1635.3+4258_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/702274/ltcube_539222401_539481601_4FGL_J1635.3+4258_daily_bin1157.fits outfile=/scratch/kocevski/702274/expmap_539222401_539481601_4FGL_J1635.3+4258_daily_bin1157.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/702274/ltcube_539222401_539481601_4FGL_J1635.3+4258_daily_bin1157.fits
.....................!
real 190.97
user 185.88
sys 4.73

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/702274/ft1_filtered_4FGL_J1635.3+4258_daily_bin1157.fits scfile=/scratch/kocevski/702274/ft2_4FGL_J1635.3+4258_daily_bin1157.fits outfile=/scratch/kocevski/702274/cmap_539222401_539481601_4FGL_J1635.3+4258_daily_bin1157.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/702274/ft1_filtered_4FGL_J1635.3+4258_daily_bin1157.fits scfile=/scratch/kocevski/702274/ft2_4FGL_J1635.3+4258_daily_bin1157.fits outfile=/scratch/kocevski/702274/cmap_HighResolution_539222401_539481601_4FGL_J1635.3+4258_daily_bin1157.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/702274/ft1_filtered_4FGL_J1635.3+4258_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/702274/ft2_4FGL_J1635.3+4258_daily_bin1157.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/702274/Model_4FGL_J1635.3+4258_daily_bin1157.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/702274/ft1_filtered_4FGL_J1635.3+4258_daily_bin1157.fits.....................!
real 38.94
user 37.67
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/702274/ft1_filtered_4FGL_J1635.3+4258_daily_bin1157.fits', '/scratch/kocevski/702274/ft2_4FGL_J1635.3+4258_daily_bin1157.fits', expMap='/scratch/kocevski/702274/expmap_539222401_539481601_4FGL_J1635.3+4258_daily_bin1157.fits', expCube='/scratch/kocevski/702274/ltcube_539222401_539481601_4FGL_J1635.3+4258_daily_bin1157.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/702274/Model_4FGL_J1635.3+4258_daily_bin1157.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/702274/ft1_filtered_4FGL_J1635.3+4258_daily_bin1157.fits
Spacecraft file(s): /scratch/kocevski/702274/ft2_4FGL_J1635.3+4258_daily_bin1157.fits
Exposure map: /scratch/kocevski/702274/expmap_539222401_539481601_4FGL_J1635.3+4258_daily_bin1157.fits
Exposure cube: /scratch/kocevski/702274/ltcube_539222401_539481601_4FGL_J1635.3+4258_daily_bin1157.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/702274/Model_4FGL_J1635.3+4258_daily_bin1157.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) = 3902.46215065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11247E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5482       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.854       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    19.600       1.0000         .10000E-03   10000.    
     9 'norm      '    .18966       1.0000         .10000E-03   10000.    
    10 'norm      '    11.038       1.0000         .10000E-03   10000.    
    11 'Prefactor '    67.255       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10778E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11394E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3777       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .29462E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .74710E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.9386       1.0000         .10000E-03   10000.    
    20 'norm      '    2.7518       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.793       1.0000         .10000E-03   10000.    
    22 'norm      '    .42890E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .12028E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    91.453       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4306       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .79031       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=   3899.855     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     2660 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    25.266        .90712E-02** at limit **
   2  Prefactor     .10001E-03    223.45        .90712E-02** at limit **
   3  Prefactor     4.5473        4.5077        .47191E-02   -.25810E-03
   4  Prefactor     .10000E-03    2.6410        .90712E-02** at limit **
   5  Prefactor     .10000E-03    13.756        .90712E-02** at limit **
   6  Prefactor     10.847        10.366        .30402E-02    .14651E-02
   7  Prefactor     .10000E-03    1.8358        .90712E-02** at limit **
   8  norm          19.598        19.811        .22618E-02    .16220E-03
   9  norm          .18960        .25266        .65825E-02    .10859E-02
  10  norm          11.030        20.143        .30147E-02    .58191E-03
  11  Prefactor     67.241        35.925        .12235E-02    .37766E-03
  12  Prefactor     .10000E-03    6.4476        .48304E-01** at limit **
  13  norm          .10001E-03    107.07        .90712E-02** at limit **
  14  Prefactor     2.3767        2.4341        .66420E-02    .24508E-03
  15  Prefactor     .10013E-03    1.2960        .53836E-01** at limit **
  16  Prefactor     .10000E-03    1.4393        .90712E-02** at limit **
  17  Prefactor     .10006E-03    3.3533        .73427E-01** at limit **
  18  Prefactor     .10000E-03    4.9524        .90712E-02** at limit **
  19  norm          6.9390        3.4238        .38076E-02   -.18156E-05
  20  norm          2.7510        1.7297        .61349E-02    .16274E-03
  21  Prefactor     13.822        14.519        .26962E-02   -.95259E-03
  22  norm          .10000E-03    .87713        .32817E-01** at limit **
  23  norm          .10000E-03    5.2303        .90712E-02** at limit **
  24  norm          .10000E-03    2.2834        .29250E-01** at limit **
  25  Prefactor     .10000E-03    2.4977        .90712E-02** at limit **
  26  norm          91.456        21.493        .10505E-02   -.32485E-03
  27  Normalizat    1.4311        .28675        .61097E-01    .34644E-05
  28  Prefactor     .79021        .23440        .67938E-01    .13092E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100053
  Prefactor  = 0.000100011
  Prefactor  = 4.54726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8469
  Prefactor  = 0.0001
  norm       = 19.5982
  norm       = 0.189601
  norm       = 11.0304
  Prefactor  = 67.2414
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 2.37669
  Prefactor  = 0.000100126
  Prefactor  = 0.0001
  Prefactor  = 0.00010006
  Prefactor  = 0.0001
  norm       = 6.93899
  norm       = 2.75102
  Prefactor  = 13.8224
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 91.4557
  Normalizat = 1.4311
  Prefactor  = 0.790212
 **********
 **   18 **HESSE 
 **********

 FCN=   3899.855     FROM HESSE     STATUS=OK           517 CALLS     3177 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    25.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    223.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.5473        4.5080        .12807E-03   -1.5281    
   4  Prefactor     .10000E-03    2.6424        .99111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.847        10.446        .12161E-03   -1.5049    
   7  Prefactor     .10000E-03    1.8420        .82603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.598        19.811        .90470E-04   -1.4822    
   9  norm          .18960        .23331        .30222E-03   -1.5621    
  10  norm          11.030        20.099        .12059E-03   -1.5044    
  11  Prefactor     67.241        35.358        .48941E-04   -1.4066    
  12  Prefactor     .10000E-03    17.767        .30128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    107.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.3767        2.0509        .74004E-04   -1.5400    
  15  Prefactor     .10013E-03    29.475        .11000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.4432        .73142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10006E-03    32.296        .20662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.9560        .13573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.9390        3.3940        .77017E-04   -1.5181    
  20  norm          2.7510        1.7127        .58901E-04   -1.5376    
  21  Prefactor     13.822        14.007        .10785E-03   -1.4964    
  22  norm          .10000E-03    4.6444        .10832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.2367        .13948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.6815        .17921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.5056        .96383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          91.456        21.485        .42021E-04   -1.3792    
  27  Normalizat    1.4311        .34036        .27021E-03   -.79733    
  28  Prefactor     .79021        .27757        .30058E-03   -1.0009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3063e-08
Minuit parameter uncertainties:
  1  0.00231739
  2  0.0031015
  3  4.50838
  4  5.84963e-07
  5  6.62528e-06
  6  10.4476
  7  3.99653e-07
  8  19.8177
  9  0.23331
  10  20.1108
  11  35.3694
  12  7.43514e-05
  13  0.00163687
  14  2.05101
  15  0.00385558
  16  3.11447e-07
  17  0.00277719
  18  1.1586e-06
  19  3.39413
  20  1.71269
  21  14.01
  22  1.0859e-06
  23  2.23649e-06
  24  1.81338e-06
  25  3.39889e-07
  26  21.4866
  27  0.340901
  28  0.278062
Done.

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

Extracting fit parameters...

4FGL J1635.3+4258
   Spectrum: LogParabola
311         norm:  1.103e+01  2.011e+01  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:  7.902e-01  2.781e-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.431e+00  3.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/702274/likelihoodResults_539222401_539481601_4FGL_J1635.3+4258_daily_bin1157.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) = 3899.71908343
delta logL = 0.136151746809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3899.71830708
delta logL = 0.136928100749

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4197       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6109       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4294       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78791       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=   3899.718     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      235 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4350        683.80        .34539E-02   -.32225E-03
   2  alpha         2.6095        3.6951        .41203       -.26019E-04
   3  Normalizat    1.4295        .12558        .61111E-01    .24473E-05
   4  Prefactor     .78784        .93007E-01    .67997E-01   -.48983E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.43497
  alpha      = 2.60947
  Normalizat = 1.42951
  Prefactor  = 0.787838
 **********
 **   18 **HESSE 
 **********

 FCN=   3899.718     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4350        17.681        .13815E-03   -1.5127    
   2  alpha         2.6095        1.4809        .23920E-01    .43804E-01
   3  Normalizat    1.4295        .31896        .27027E-03   -.79779    
   4  Prefactor     .78784        .27405        .30084E-03   -1.0018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77622e-10
Minuit parameter uncertainties:
  1  17.6917
  2  1.58522
  3  0.319407
  4  0.274528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/702274': 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) = 3899.71830652
delta logL = 0.136928661129

Extracting fit parameters...

4FGL J1635.3+4258
   Spectrum: LogParabola
311         norm:  8.435e+00  1.769e+01  1.000e-04  1.000e+04 ( 1.000e-13)
312        alpha:  2.609e+00  1.585e+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:  7.878e-01  2.745e-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.430e+00  3.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.47
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/702274/cmap_HighResolution_539222401_539481601_4FGL_J1635.3+4258_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-05', job_status='DONE', photon_flux_upper_limit='4.73e-08', time_completed='2021-09-14 22:40:47.304363', job_id='702274', GAL2='0.79', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1631684447.3', return_code2='0', ts='0.47', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.37e-01', ts2='0.75', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1157' AND source_name='4FGL J1635.3+4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 22:40:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 702274: <4FGL_J1635.3+4258_daily_bin1157> in cluster <slac> Done

Job <4FGL_J1635.3+4258_daily_bin1157> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep 14 22:25:39 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 22:27:24 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:24 2021
Terminated at Tue Sep 14 22:40:48 2021
Results reported at Tue Sep 14 22:40:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.3+4258_daily_bin1157 248.846 42.9756 539222401 539481601 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 :                                   650.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            909 sec.

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

