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


Performing analysis on: 4FGL_J1635.3+4258_daily_bin170
RA = 248.846, Dec = 42.9756
tmin = 283392001, tmax = 283651201
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='697270', job_status='RUN', time_executed='2021-09-14 22:11:08.165741', time_epoch_executed='1631682668.17' WHERE source_name='4FGL J1635.3+4258' and cadence='daily' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/697270

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/697270/ft1_4FGL_J1635.3+4258_daily_bin170.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/697270/ft2_4FGL_J1635.3+4258_daily_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/697270/ft1_4FGL_J1635.3+4258_daily_bin170.fits outfile=/scratch/kocevski/697270/ft1_filteredMKT_4FGL_J1635.3+4258_daily_bin170.fits ra=248.846 dec=42.9756 rad=12.0 tmin=283392001.0 tmax=283651201.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 2.95
user 2.73
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/697270/ft1_filtered_4FGL_J1635.3+4258_daily_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/697270/ft2_4FGL_J1635.3+4258_daily_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/697270/ltcube_283392001_283651201_4FGL_J1635.3+4258_daily_bin170.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/697270/ft2_4FGL_J1635.3+4258_daily_bin170.fits
.....................!
real 11.46
user 11.13
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/697270/ft1_filtered_4FGL_J1635.3+4258_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/697270/ft2_4FGL_J1635.3+4258_daily_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/697270/ltcube_283392001_283651201_4FGL_J1635.3+4258_daily_bin170.fits outfile=/scratch/kocevski/697270/expmap_283392001_283651201_4FGL_J1635.3+4258_daily_bin170.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/697270/ltcube_283392001_283651201_4FGL_J1635.3+4258_daily_bin170.fits
.....................!
real 156.19
user 151.44
sys 4.48

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/697270/ft1_filtered_4FGL_J1635.3+4258_daily_bin170.fits scfile=/scratch/kocevski/697270/ft2_4FGL_J1635.3+4258_daily_bin170.fits outfile=/scratch/kocevski/697270/cmap_283392001_283651201_4FGL_J1635.3+4258_daily_bin170.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.47
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/697270/ft1_filtered_4FGL_J1635.3+4258_daily_bin170.fits scfile=/scratch/kocevski/697270/ft2_4FGL_J1635.3+4258_daily_bin170.fits outfile=/scratch/kocevski/697270/cmap_HighResolution_283392001_283651201_4FGL_J1635.3+4258_daily_bin170.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.47
user 0.34
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5157       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26567       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.188       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .36195E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.8781       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3645       1.0000         .10000E-03   10000.    
    10 'norm      '    5.2844       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.738       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4095       1.0000         .10000E-03   10000.    
    13 'norm      '    56.786       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.9047       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1987       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.1028       1.0000         .10000E-03   10000.    
    20 'norm      '    .23513       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.3954       1.0000         .10000E-03   10000.    
    22 'norm      '    .88563       1.0000         .10000E-03   10000.    
    23 'norm      '    4.6919       1.0000         .10000E-03   10000.    
    24 'norm      '    .78634       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.5542       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4373       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .75252       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=   8093.671     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     3541 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5152        18.967        .92990E-06   -.15408E-04
   2  Prefactor     .10000E-03    52.540        .10454E-05** at limit **
   3  Prefactor     .26417        1.6834        .22514E-06    .78128E-04
   4  Prefactor     .10000E-03    3.9259        .28296E-06** at limit **
   5  Prefactor     14.197        25.046        .31982E-05    .10084E-03
   6  Prefactor     .10004E-03    5.1260        .54955E-06** at limit **
   7  Prefactor     .10000E-03    2.0659        .70307E-07** at limit **
   8  norm          8.9038        24.625        .80139E-05    .31341E-03
   9  norm          1.3644        .28403        .51997E-07   -.22397E-02
  10  norm          5.2839        8.2808        .31164E-07   -.52000E-05
  11  Prefactor     23.732        24.596       -.11570E-05   -.17105E-03
  12  Prefactor     6.4096        4.0612        .50512E-06   -.85239E-03
  13  norm          56.802        40.868        .41942E-05    .27119E-03
  14  Prefactor     .10000E-03    1.0529        .14037E-06** at limit **
  15  Prefactor     7.9029        2.3446       -.55277E-07   -.67023E-03
  16  Prefactor     .10000E-03    1.3052        .32523E-07** at limit **
  17  Prefactor     2.1987        1.9210       -.44394E-07   -.12816E-03
  18  Prefactor     .10000E-03    5.5711        .20437E-06** at limit **
  19  norm          6.1028        2.2463        .13729E-07   -.18523E-03
  20  norm          .23570        .54594        .41223E-06    .91786E-03
  21  Prefactor     7.3922        9.0644        .56243E-06   -.13396E-03
  22  norm          .88579        1.0031        .63931E-07   -.73576E-03
  23  norm          4.6908        6.8101        .38701E-05   -.93810E-03
  24  norm          .78634        1.7611        .63708E-06   -.32790E-03
  25  Prefactor     .10000E-03    1.1338       -.70965E-08** at limit **
  26  norm          5.5541        5.0336       -.57480E-06    .15415E-03
  27  Normalizat    1.4371        .20591       -.35477E-05   -.90163E-04
  28  Prefactor     .75266        .16119       -.28419E-06   -.31910E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.5152
  Prefactor  = 0.0001
  Prefactor  = 0.264174
  Prefactor  = 0.0001
  Prefactor  = 14.1966
  Prefactor  = 0.000100043
  Prefactor  = 0.0001
  norm       = 8.90378
  norm       = 1.36443
  norm       = 5.2839
  Prefactor  = 23.7318
  Prefactor  = 6.40958
  norm       = 56.8016
  Prefactor  = 0.0001
  Prefactor  = 7.90291
  Prefactor  = 0.0001
  Prefactor  = 2.19868
  Prefactor  = 0.0001
  norm       = 6.10277
  norm       = 0.235696
  Prefactor  = 7.39223
  norm       = 0.885794
  norm       = 4.69077
  norm       = 0.786339
  Prefactor  = 0.0001
  norm       = 5.5541
  Normalizat = 1.43709
  Prefactor  = 0.752659
 **********
 **   18 **HESSE 
 **********

 FCN=   8093.671     FROM HESSE     STATUS=OK           535 CALLS     4076 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5152        18.962        .14629E-03   -1.5160    
   2  Prefactor     .10000E-03    52.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .26417        9.0161        .22355E-02   -1.5605    
   4  Prefactor     .10000E-03    3.9326        .17333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.197        25.170        .10634E-03   -1.4954    
   6  Prefactor     .10004E-03    14.929        .37598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.1087        .12617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.9038        25.371        .13452E-03   -1.5111    
   9  norm          1.3644        .28572        .18488E-04   -1.5474    
  10  norm          5.2839        8.2738        .17484E-03   -1.5248    
  11  Prefactor     23.732        24.855        .82215E-04   -1.4733    
  12  Prefactor     6.4096        4.0812        .69191E-03   -1.5202    
  13  norm          56.802        41.292        .26617E-03   -1.4199    
  14  Prefactor     .10000E-03    1.2770        .15566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.9029        2.1374        .59554E-04   -1.5146    
  16  Prefactor     .10000E-03    1.3198        .10027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.1987        1.9193        .11248E-03   -1.5411    
  18  Prefactor     .10000E-03    5.5915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.1028        2.2462        .78166E-04   -1.5214    
  20  norm          .23570        .44568        .96850E-03   -1.5611    
  21  Prefactor     7.3922        8.6847        .14748E-03   -1.5164    
  22  norm          .88579        .92116        .85142E-03   -1.5520    
  23  norm          4.6908        7.2047        .92891E-03   -1.5275    
  24  norm          .78634        1.7292        .16413E-03   -1.5531    
  25  Prefactor     .10000E-03    1.1366        .93549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.5541        5.0538        .85236E-03   -1.5237    
  27  Normalizat    1.4371        .24590        .27154E-03   -.79562    
  28  Prefactor     .75266        .19513        .30324E-03   -1.0150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77078e-09
Minuit parameter uncertainties:
  1  18.9776
  2  0.000178939
  3  3.08656
  4  3.4688e-05
  5  25.1892
  6  0.00159757
  7  3.01658e-06
  8  25.4018
  9  0.285722
  10  8.27563
  11  24.8657
  12  4.08139
  13  41.3129
  14  2.13339e-06
  15  2.13745
  16  3.83786e-06
  17  1.91933
  18  4.00322e-06
  19  2.24626
  20  0.445682
  21  8.68614
  22  0.921173
  23  7.20598
  24  1.72932
  25  1.16207e-06
  26  5.05422
  27  0.246099
  28  0.195305
Done.

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

Extracting fit parameters...

4FGL J1635.3+4258
   Spectrum: LogParabola
311         norm:  5.284e+00  8.276e+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

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  7.527e-01  1.953e-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.437e+00  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/697270/likelihoodResults_283392001_283651201_4FGL_J1635.3+4258_daily_bin170.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) = 8093.59397541
delta logL = 0.0771535010526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8093.58994816
delta logL = 0.0811807530663

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0595       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2530       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75213       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8093.590     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      246 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0613        8.9027        .16311E-03    .40566E-04
   2  alpha         1.2531        1.2811        .53020E-01   -.25491E-05
   3  Normalizat    1.4378        .22707        .27148E-03    .23609E-03
   4  Prefactor     .75212        .19117        .30331E-03    .16942E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.06131
  alpha      = 1.25306
  Normalizat = 1.43778
  Prefactor  = 0.752124
 **********
 **   18 **HESSE 
 **********

 FCN=   8093.590     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0613        8.9288        .65242E-05   -1.5216    
   2  alpha         1.2531        1.2849        .21208E-02   -.52219    
   3  Normalizat    1.4378        .22728        .54296E-04   -.79542    
   4  Prefactor     .75212        .19134        .12132E-04   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30062e-11
Minuit parameter uncertainties:
  1  8.93077
  2  1.37548
  3  0.22744
  4  0.191513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/697270': 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) = 8093.58994814
delta logL = 0.081180773449

Extracting fit parameters...

4FGL J1635.3+4258
   Spectrum: LogParabola
311         norm:  6.061e+00  8.931e+00  1.000e-04  1.000e+04 ( 1.000e-13)
312        alpha:  1.253e+00  1.375e+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.521e-01  1.915e-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.438e+00  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.75
Ra Dec: 248.846 42.976

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/697270/cmap_HighResolution_283392001_283651201_4FGL_J1635.3+4258_daily_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-05', job_status='DONE', photon_flux_upper_limit='2.11e-08', time_completed='2021-09-14 22:25:54.270905', job_id='697270', GAL2='0.75', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1631683554.27', return_code2='0', ts='0.75', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='8.12e-02', ts2='0.92', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='170' AND source_name='4FGL J1635.3+4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 22:25:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 697270: <4FGL_J1635.3+4258_daily_bin170> in cluster <slac> Done

Job <4FGL_J1635.3+4258_daily_bin170> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 14 22:10:31 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 22:10:58 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:10:58 2021
Terminated at Tue Sep 14 22:25:55 2021
Results reported at Tue Sep 14 22:25:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.3+4258_daily_bin170 248.846 42.9756 283392001 283651201 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 :                                   881.31 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             331.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            924 sec.

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

