aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 102 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 = 74112
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2015.5+3710_monthly_bin169
RA = 303.892, Dec = 37.176
tmin = 675043201, tmax = 677635201
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='187840', job_status='RUN', time_executed='2022-06-23 03:05:17.096928', time_epoch_executed='1655978717.1' WHERE source_name='4FGL J2015.5+3710' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/187840

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/187840/ft1_4FGL_J2015.5+3710_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/187840/ft2_4FGL_J2015.5+3710_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/187840/ft1_4FGL_J2015.5+3710_monthly_bin169.fits outfile=/scratch/kocevski/187840/ft1_filteredMKT_4FGL_J2015.5+3710_monthly_bin169.fits ra=303.892 dec=37.176 rad=12.0 tmin=675043201.0 tmax=677635201.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 23.08
user 22.17
sys 0.74

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/187840/ft2_4FGL_J2015.5+3710_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/187840/ft2_4FGL_J2015.5+3710_monthly_bin169.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/187840/ft1_filteredMKT_4FGL_J2015.5+3710_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/187840/ft1_filtered_4FGL_J2015.5+3710_monthly_bin169.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.80
user 0.59
sys 0.20

Number of photons that the gtmktime cut: 73150

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/187840/ft1_filtered_4FGL_J2015.5+3710_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/187840/ft2_4FGL_J2015.5+3710_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/187840/ltcube_675043201_677635201_4FGL_J2015.5+3710_monthly_bin169.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/187840/ft2_4FGL_J2015.5+3710_monthly_bin169.fits
.....................!
real 119.93
user 119.17
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/187840/ft1_filtered_4FGL_J2015.5+3710_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/187840/ft2_4FGL_J2015.5+3710_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/187840/ltcube_675043201_677635201_4FGL_J2015.5+3710_monthly_bin169.fits outfile=/scratch/kocevski/187840/expmap_675043201_677635201_4FGL_J2015.5+3710_monthly_bin169.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/187840/ltcube_675043201_677635201_4FGL_J2015.5+3710_monthly_bin169.fits
.....................!
real 158.76
user 153.80
sys 4.62

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
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 212 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2015.5+3710 @ 303.892 37.176

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/187840/ft1_filtered_4FGL_J2015.5+3710_monthly_bin169.fits scfile=/scratch/kocevski/187840/ft2_4FGL_J2015.5+3710_monthly_bin169.fits outfile=/scratch/kocevski/187840/cmap_675043201_677635201_4FGL_J2015.5+3710_monthly_bin169.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=303.892 yref=37.176 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.81
user 0.63
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/187840/ft1_filtered_4FGL_J2015.5+3710_monthly_bin169.fits scfile=/scratch/kocevski/187840/ft2_4FGL_J2015.5+3710_monthly_bin169.fits outfile=/scratch/kocevski/187840/cmap_HighResolution_675043201_677635201_4FGL_J2015.5+3710_monthly_bin169.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=303.892 yref=37.176 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.81
user 0.64
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/187840/ft1_filtered_4FGL_J2015.5+3710_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/187840/ft2_4FGL_J2015.5+3710_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/187840/Model_4FGL_J2015.5+3710_monthly_bin169.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 Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/187840/ft1_filtered_4FGL_J2015.5+3710_monthly_bin169.fits.....................!
real 12564.04
user 12531.21
sys 8.54

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/187840/ft1_filtered_4FGL_J2015.5+3710_monthly_bin169.fits', '/scratch/kocevski/187840/ft2_4FGL_J2015.5+3710_monthly_bin169.fits', expMap='/scratch/kocevski/187840/expmap_675043201_677635201_4FGL_J2015.5+3710_monthly_bin169.fits', expCube='/scratch/kocevski/187840/ltcube_675043201_677635201_4FGL_J2015.5+3710_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/187840/Model_4FGL_J2015.5+3710_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2015.5+3710'

4FGL J2015.5+3710
   Spectrum: LogParabola
375         norm:  7.199e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
376        alpha:  2.705e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
377         beta:  1.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
378           Eb:  3.095e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/187840/ft1_filtered_4FGL_J2015.5+3710_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/187840/ft2_4FGL_J2015.5+3710_monthly_bin169.fits
Exposure map: /scratch/kocevski/187840/expmap_675043201_677635201_4FGL_J2015.5+3710_monthly_bin169.fits
Exposure cube: /scratch/kocevski/187840/ltcube_675043201_677635201_4FGL_J2015.5+3710_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/187840/Model_4FGL_J2015.5+3710_monthly_bin169.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) = 653018.923878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4248       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11768E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32125       1.0000         .10000E-03   10000.    
     4 'norm      '    5.4812       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.4977       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.6405       1.0000         .10000E-03   10000.    
    10 'norm      '    3.0930       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0224       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .50665       1.0000         .10000E-03   10000.    
    14 'norm      '    .78742       1.0000         .10000E-03   10000.    
    15 'norm      '    7.9222       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0955       1.0000         .10000E-03   10000.    
    17 'norm      '    2.9811       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.3560       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3215       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99091       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   653018.4     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     1857 TOTAL
                     EDM=   .15E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4245        2.1506         .0000       -.23289E-02
   2  Prefactor     .10000E-03    19.767         .0000    ** at limit **
   3  Prefactor     .32138        .44161         .0000        .30522E-01
   4  norm          5.4803        3.2933         .0000       -.16463E-02
   5  norm          .10000E-03    .31999         .0000    ** at limit **
   6  Prefactor     .10000E-03    .37866         .0000    ** at limit **
   7  norm          3.4977        2.0040         .0000        .43632E-01
   8  Prefactor     .10000E-03    .87424         .0000    ** at limit **
   9  norm          2.6405        .43450         .0000        .10554E-01
  10  norm          3.0930        1.1734         .0000        .28030    
  11  Prefactor     2.0224        .61850E-01     .0000        .17306E-01
  12  Prefactor     .10000E-03    2.5836         .0000    ** at limit **
  13  norm          .50672        .55200         .0000        2.2260    
  14  norm          .78721        .60090         .0000        .43694E-01
  15  norm          7.9226        1.4425         .0000        .16898E-01
  16  Prefactor     2.0954        .90026         .0000        .15616E-01
  17  norm          2.9800        3.6531         .0000        .51712E-03
  18  Prefactor     7.3521        6.5965         .0000       -.65108E-02
  19  Normalizat    1.3215        .87420E-01     .0000        .21625E-02
  20  Prefactor     .99091        .71339E-02     .0000       -.44106E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.4245
  Prefactor  = 0.000100001
  Prefactor  = 0.32138
  norm       = 5.48033
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.49769
  Prefactor  = 0.0001
  norm       = 2.64052
  norm       = 3.09295
  Prefactor  = 2.02238
  Prefactor  = 0.0001
  norm       = 0.506717
  norm       = 0.787206
  norm       = 7.92255
  Prefactor  = 2.09542
  norm       = 2.98004
  Prefactor  = 7.35209
  Normalizat = 1.32151
  Prefactor  = 0.990914
 **********
 **   18 **HESSE 
 **********

 FCN=   653018.4     FROM HESSE     STATUS=OK           313 CALLS     2170 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4245        2.1580        .26283E-03   -1.5397    
   2  Prefactor     .10000E-03    19.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .32138        1.2409        .59675E-02   -1.5595    
   4  norm          5.4803        3.2918        .17162E-03   -1.5240    
   5  norm          .10000E-03    .33275        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .37053        .14840       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.4977        2.0008        .10809E-02   -1.5334    
   8  Prefactor     .10000E-03    .87608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6405        .43416        .21026E-03   -1.5383    
  10  norm          3.0930        1.1717        .11530E-02   -1.5356    
  11  Prefactor     2.0224        .61556E-01    .32780E-04   -1.5424    
  12  Prefactor     .10000E-03    2.6201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .50672        .54656        .22596E-02   -1.5566    
  14  norm          .78721        .80261        .53312E-02   -1.5531    
  15  norm          7.9226        1.4420        .14246E-03   -1.5145    
  16  Prefactor     2.0954        .89535        .28513E-03   -1.5418    
  17  norm          2.9800        3.6470        .23514E-03   -1.5363    
  18  Prefactor     7.3521        6.5821        .14788E-03   -1.5166    
  19  Normalizat    1.3215        .82626E-01    .13629E-02   -.82927    
  20  Prefactor     .99091        .70370E-02    .12631E-03   -.93033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0676e-08
Minuit parameter uncertainties:
  1  2.15805
  2  0.000205022
  3  1.24097
  4  3.29194
  5  1.53287e-06
  6  5.37763e-06
  7  2.00087
  8  2.89058e-06
  9  0.434156
  10  1.17173
  11  0.0615558
  12  1.29658e-05
  13  0.546569
  14  0.802618
  15  1.44196
  16  0.895354
  17  3.64729
  18  6.58271
  19  0.0826346
  20  0.00703699
Done.

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

Extracting fit parameters...

4FGL J2015.5+3710
   Spectrum: LogParabola
375         norm:  3.093e+00  1.172e+00  1.000e-04  1.000e+04 ( 1.000e-13)
376        alpha:  2.705e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
377         beta:  1.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
378           Eb:  3.095e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
771    Prefactor:  9.909e-01  7.037e-03  0.000e+00  1.000e+01 ( 1.000e+00)
772        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
773        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
770   Normalization:  1.322e+00  8.263e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.06
Ra Dec: 303.892 37.176
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 5.00e-08 +/- 1.89e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 7.65e-06

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) = 653018.138106
delta logL = 0.234802369028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 653018.136464
delta logL = 0.236444511451

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0517       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4420       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99132       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7820E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   653018.1     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      290 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0517        2.6785        .10016E-02    .43334E-02
   2  alpha         2.4420        .51402        .41612E-01    .35421E-03
   3  Normalizat    1.3233        .79570E-01    .13623E-02    .46038E-03
   4  Prefactor     .99132        .67291E-02    .12630E-03    .11027E-01
                               ERR DEF=  .500    
Final values: 
  norm       = 4.05166
  alpha      = 2.44201
  Normalizat = 1.32326
  Prefactor  = 0.99132
 **********
 **   18 **HESSE 
 **********

 FCN=   653018.1     FROM HESSE     STATUS=OK            27 CALLS      317 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0517        1.9543        .20032E-03   -1.5305    
   2  alpha         2.4420        .37796        .16645E-02   -.23199E-01
   3  Normalizat    1.3233        .79514E-01    .54493E-04   -.82875    
   4  Prefactor     .99132        .67113E-02    .50519E-05   -.93019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95252e-10
Minuit parameter uncertainties:
  1  1.95433
  2  0.379417
  3  0.0795219
  4  0.00671131
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/187840': 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) = 653018.136464
delta logL = 0.236444511451

Extracting fit parameters...

4FGL J2015.5+3710
   Spectrum: LogParabola
375         norm:  4.052e+00  1.954e+00  1.000e-04  1.000e+04 ( 1.000e-13)
376        alpha:  2.442e+00  3.794e-01  0.000e+00  5.000e+00 ( 1.000e+00)
377         beta:  1.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
378           Eb:  3.095e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
771    Prefactor:  9.913e-01  6.711e-03  0.000e+00  1.000e+01 ( 1.000e+00)
772        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
773        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
770   Normalization:  1.323e+00  7.952e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.55
Ra Dec: 303.892 37.176
Photon Index (Free Index): 2.44 +/- 0.38
Photon Flux (Free Index): 3.49e-08 +/- 2.43e-08
Energy Flux (Free Index): 1.94e-05 +/- 7.58e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -7.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  7.770e+00 [aplpy.core]
Saving /scratch/kocevski/187840/cmap_HighResolution_675043201_677635201_4FGL_J2015.5+3710_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.00e-08', energy_flux2='1.94e-05', photon_flux_error='1.89e-08', dlogl='2.36e-01', energy_flux='2.02e-05', photon_flux2='3.49e-08', job_status='DONE', time_completed='2022-06-23 13:49:48.459832', photon_index_error2='0.38', photon_index2='2.44', ts='9.06', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='7.58e-06', EG='1.32', time_epoch_completed='1656017388.46', return_code='0', job_id='187840', GAL2='0.99', EG2='1.32', return_code2='0', energy_flux_error='7.65e-06', photon_flux_error2='2.43e-08', ts2='9.55', photon_index='2.71' WHERE bin_id='169' AND source_name='4FGL J2015.5+3710' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 13:49:48 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0247>
Subject: Job 187840: <4FGL_J2015.5+3710_monthly_bin169> in cluster <slac> Done

Job <4FGL_J2015.5+3710_monthly_bin169> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jun 23 03:00:27 2022
Job was executed on host(s) <bullet0247>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 03:03:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 03:03:27 2022
Terminated at Thu Jun 23 13:49:52 2022
Results reported at Thu Jun 23 13:49:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2015.5+3710_monthly_bin169 303.892 37.176 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2015.5+3710 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   38567.61 sec.
    Max Memory :                                 1715 MB
    Average Memory :                             1346.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3139 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   38785 sec.
    Turnaround time :                            38965 sec.

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

