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 75 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 = 74146
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2007.2+6607_monthly_bin168
RA = 301.815, Dec = 66.1178
tmin = 672451201, tmax = 675043201
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='648499', job_status='RUN', time_executed='2022-05-24 04:02:01.232909', time_epoch_executed='1653390121.23' WHERE source_name='4FGL J2007.2+6607' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648499

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648499/ft1_4FGL_J2007.2+6607_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648499/ft2_4FGL_J2007.2+6607_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648499/ft1_4FGL_J2007.2+6607_monthly_bin168.fits outfile=/scratch/kocevski/648499/ft1_filteredMKT_4FGL_J2007.2+6607_monthly_bin168.fits ra=301.815 dec=66.1178 rad=12.0 tmin=672451201.0 tmax=675043201.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 29.34
user 28.32
sys 0.87

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/648499/ft2_4FGL_J2007.2+6607_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/648499/ft2_4FGL_J2007.2+6607_monthly_bin168.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/648499/ft1_filteredMKT_4FGL_J2007.2+6607_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/648499/ft1_filtered_4FGL_J2007.2+6607_monthly_bin168.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.89
user 0.69
sys 0.19

Number of photons that the gtmktime cut: 26617

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/648499/ft1_filtered_4FGL_J2007.2+6607_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/648499/ft2_4FGL_J2007.2+6607_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/648499/ltcube_672451201_675043201_4FGL_J2007.2+6607_monthly_bin168.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/648499/ft2_4FGL_J2007.2+6607_monthly_bin168.fits
.....................!
real 156.47
user 155.62
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648499/ft1_filtered_4FGL_J2007.2+6607_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/648499/ft2_4FGL_J2007.2+6607_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/648499/ltcube_672451201_675043201_4FGL_J2007.2+6607_monthly_bin168.fits outfile=/scratch/kocevski/648499/expmap_672451201_675043201_4FGL_J2007.2+6607_monthly_bin168.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/648499/ltcube_672451201_675043201_4FGL_J2007.2+6607_monthly_bin168.fits
.....................!
real 194.05
user 187.98
sys 5.63

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 FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 193 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 J2007.2+6607 @ 301.815 66.1178

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/648499/ft1_filtered_4FGL_J2007.2+6607_monthly_bin168.fits scfile=/scratch/kocevski/648499/ft2_4FGL_J2007.2+6607_monthly_bin168.fits outfile=/scratch/kocevski/648499/cmap_672451201_675043201_4FGL_J2007.2+6607_monthly_bin168.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=301.815 yref=66.1178 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.83
user 0.65
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648499/ft1_filtered_4FGL_J2007.2+6607_monthly_bin168.fits scfile=/scratch/kocevski/648499/ft2_4FGL_J2007.2+6607_monthly_bin168.fits outfile=/scratch/kocevski/648499/cmap_HighResolution_672451201_675043201_4FGL_J2007.2+6607_monthly_bin168.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=301.815 yref=66.1178 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.85
user 0.67
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/648499/ft1_filtered_4FGL_J2007.2+6607_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/648499/ft2_4FGL_J2007.2+6607_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/648499/Model_4FGL_J2007.2+6607_monthly_bin168.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 CTB 109
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
adding source HB 21
Working on...
/scratch/kocevski/648499/ft1_filtered_4FGL_J2007.2+6607_monthly_bin168.fits.....................!
real 3359.27
user 3348.63
sys 2.03

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/648499/ft1_filtered_4FGL_J2007.2+6607_monthly_bin168.fits', '/scratch/kocevski/648499/ft2_4FGL_J2007.2+6607_monthly_bin168.fits', expMap='/scratch/kocevski/648499/expmap_672451201_675043201_4FGL_J2007.2+6607_monthly_bin168.fits', expCube='/scratch/kocevski/648499/ltcube_672451201_675043201_4FGL_J2007.2+6607_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/648499/Model_4FGL_J2007.2+6607_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2007.2+6607'

4FGL J2007.2+6607
   Spectrum: PowerLaw
332    Prefactor:  5.915e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.581e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  1.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/648499/ft1_filtered_4FGL_J2007.2+6607_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/648499/ft2_4FGL_J2007.2+6607_monthly_bin168.fits
Exposure map: /scratch/kocevski/648499/expmap_672451201_675043201_4FGL_J2007.2+6607_monthly_bin168.fits
Exposure cube: /scratch/kocevski/648499/ltcube_672451201_675043201_4FGL_J2007.2+6607_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/648499/Model_4FGL_J2007.2+6607_monthly_bin168.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) = 262287.833208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7618       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10559E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5377       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1724       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.9894       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.395       1.0000         .10000E-03   10000.    
     8 'norm      '    .16247       1.0000         .10000E-03   10000.    
     9 'norm      '    1.0948       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3198       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9309       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3248       1.0000         .10000E-03   10000.    
    13 'norm      '    3.5053       1.0000         .10000E-03   10000.    
    14 'norm      '    9.4219       1.0000         .10000E-03   10000.    
    15 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .55425       1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.724       1.0000         .10000E-03   10000.    
    18 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.859       1.0000         .10000E-03   10000.    
    20 'norm      '    1.0393       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12352E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .74536       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1783       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97851       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   262287.8     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2908 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7618        1.0334         .0000        .68510E-04
   2  Prefactor     .10000E-03    38.420         .0000    ** at limit **
   3  Prefactor     3.5375        1.4745         .0000        .79078E-02
   4  Prefactor     .10000E-03    2.8642         .0000    ** at limit **
   5  Prefactor     3.1722        3.7364         .0000        .40426E-01
   6  Prefactor     9.9886        13.481         .0000        .12771E-02
   7  Prefactor     23.394        12.531         .0000       -.23089E-03
   8  norm          .16252        .23773         .0000        .43948E-01
   9  norm          1.0949        .75518         .0000        .19367E-01
  10  norm          2.3199        1.7346         .0000        .44528E-02
  11  Prefactor     2.9315        3.3868         .0000        .49706E-01
  12  Prefactor     1.3249        1.1404         .0000        .74834E-02
  13  norm          3.5054        .41042         .0000        .44089E-03
  14  norm          9.4220        4.8494         .0000        .10678E-03
  15  norm          .10000E-03    .11213         .0000    ** at limit **
  16  norm          .55526        1.9632         .0000        .21507    
  17  Prefactor     36.724        5.7010         .0000       -.23333E-02
  18  norm          .10000E-03    .93939E-01     .0000    ** at limit **
  19  Prefactor     14.859        3.2175         .0000        .10394E-01
  20  norm          1.0395        .95568         .0000        .10114E-01
  21  Prefactor     .10000E-03    .56377         .0000    ** at limit **
  22  Prefactor     .74545        .49972         .0000        .19798E-01
  23  Normalizat    1.1783        .53553E-01     .0000        .77557E-03
  24  Prefactor     .97851        .11518E-01     .0000       -.47941E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.76183
  Prefactor  = 0.0001
  Prefactor  = 3.5375
  Prefactor  = 0.0001
  Prefactor  = 3.17217
  Prefactor  = 9.98862
  Prefactor  = 23.3943
  norm       = 0.162518
  norm       = 1.09493
  norm       = 2.31992
  Prefactor  = 2.93149
  Prefactor  = 1.32492
  norm       = 3.50535
  norm       = 9.42198
  norm       = 0.0001
  norm       = 0.555264
  Prefactor  = 36.7237
  norm       = 0.0001
  Prefactor  = 14.859
  norm       = 1.03952
  Prefactor  = 0.0001
  Prefactor  = 0.745447
  Normalizat = 1.17833
  Prefactor  = 0.978511
 **********
 **   18 **HESSE 
 **********

 FCN=   262287.8     FROM HESSE     STATUS=OK           429 CALLS     3337 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7618        1.0322        .20816E-04   -1.5320    
   2  Prefactor     .10000E-03    39.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5375        1.4614        .21491E-03   -1.5332    
   4  Prefactor     .10000E-03    2.9931        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1722        3.5989        .11377E-02   -1.5352    
   6  Prefactor     9.9886        13.484        .63391E-03   -1.5076    
   7  Prefactor     23.394        12.506        .82815E-04   -1.4740    
   8  norm          .16252        .32200        .27208E-02   -1.5627    
   9  norm          1.0949        .73062        .34306E-03   -1.5499    
  10  norm          2.3199        1.7108        .26932E-03   -1.5403    
  11  Prefactor     2.9315        3.3879        .11864E-02   -1.5366    
  12  Prefactor     1.3249        1.1429        .19099E-03   -1.5478    
  13  norm          3.5054        .40799        .10384E-03   -1.5333    
  14  norm          9.4220        4.8493        .13056E-03   -1.5094    
  15  norm          .10000E-03    .11620        .62650E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .55526        1.9672        .22981E-02   -1.5559    
  17  Prefactor     36.724        5.6883        .66134E-04   -1.4495    
  18  norm          .10000E-03    .94611E-01    .52395E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.859        3.2156        .51953E-03   -1.4937    
  20  norm          1.0395        .94897        .46805E-03   -1.5504    
  21  Prefactor     .10000E-03    4.3909        .73898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .74545        .56313        .28315E-02   -1.5535    
  23  Normalizat    1.1783        .56393E-01    .52374E-03   -.87275    
  24  Prefactor     .97851        .11984E-01    .13349E-03   -.93449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20603e-09
Minuit parameter uncertainties:
  1  1.03222
  2  1.53297e-05
  3  1.46137
  4  4.4992e-06
  5  3.59911
  6  13.4883
  7  12.5078
  8  0.322006
  9  0.730626
  10  1.71081
  11  3.38811
  12  1.14289
  13  0.407992
  14  4.84946
  15  3.56343e-07
  16  1.96746
  17  5.68841
  18  1.23693e-06
  19  3.21569
  20  0.94898
  21  1.26002e-06
  22  0.563133
  23  0.0563963
  24  0.0119844
Done.

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

Extracting fit parameters...

4FGL J2007.2+6607
   Spectrum: PowerLaw
332    Prefactor:  3.672e+01  5.688e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.581e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  1.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  9.785e-01  1.198e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.178e+00  5.640e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 72.54
Ra Dec: 301.815 66.118
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 8.87e-08 +/- 1.37e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 3.67e-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) = 262286.666494
delta logL = 1.09037881275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 262286.666085
delta logL = 1.09078763763

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.861       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3610       1.0000          .0000       10.000    
     3 'Normalizat'    1.1910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97728       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   262286.7     FROM MIGRAD    STATUS=FAILED       109 CALLS      314 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.855        8.7138        .59859E-04   -.42543E-03
   2  Index         2.3608        .15343        .98025E-02    .13656E-01
   3  Normalizat    1.1911        .50534E-01    .52140E-03   -.34049E-03
   4  Prefactor     .97727        .11649E-01    .13357E-03    .43033E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   262286.7     FROM SIMPLEX   STATUS=UNCHANGED     67 CALLS      381 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.855        8.7138        .59505E-04   -1.4367    
   2  Index         2.3608        .15343        .16390E-03   -.55606    
   3  Normalizat    1.1911        .50534E-01    .73015E-04   -.86878    
   4  Prefactor     .97727        .11649E-01    .14613E-04   -.93491    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   262286.7     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      410 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.855        8.2533        .23944E-05   -.42543E-03
   2  Index         2.3608        .14533        .19605E-02    .54207E-03
   3  Normalizat    1.1911        .50471E-01    .20856E-04   -.34189E-03
   4  Prefactor     .97727        .11647E-01    .53429E-05    .40854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.8549
  Index      = 2.36077
  Normalizat = 1.19112
  Prefactor  = 0.977271
 **********
 **   18 **HESSE 
 **********

 FCN=   262286.7     FROM HESSE     STATUS=OK            25 CALLS      435 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.855        7.9196        .47887E-06   -1.4367    
   2  Index         2.3608        .14276        .39210E-03   -.55606    
   3  Normalizat    1.1911        .50465E-01    .41712E-05   -.86878    
   4  Prefactor     .97727        .11645E-01    .10686E-05   -.93491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.41011e-11
Minuit parameter uncertainties:
  1  7.9198
  2  0.142789
  3  0.0504673
  4  0.0116454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648499': 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) = 262286.666078
delta logL = 1.09079458396

Extracting fit parameters...

4FGL J2007.2+6607
   Spectrum: PowerLaw
332    Prefactor:  4.485e+01  7.920e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.361e+00  1.428e-01  0.000e+00  1.000e+01 (-1.000e+00)
334        Scale:  1.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  9.773e-01  1.165e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.191e+00  5.047e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 74.61
Ra Dec: 301.815 66.118
Photon Index (Free Index): 2.36 +/- 0.14
Photon Flux (Free Index): 7.58e-08 +/- 1.52e-08
Energy Flux (Free Index): 2.62e-05 +/- 4.35e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/648499/cmap_HighResolution_672451201_675043201_4FGL_J2007.2+6607_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.87e-08', energy_flux2='2.62e-05', photon_flux_error='1.37e-08', dlogl='1.09e+00', energy_flux='2.37e-05', photon_flux2='7.58e-08', job_status='DONE', time_completed='2022-05-24 09:28:00.359404', photon_index_error2='0.14', photon_index2='2.36', ts='72.54', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='4.35e-06', EG='1.18', time_epoch_completed='1653409680.36', return_code='0', job_id='648499', GAL2='0.98', EG2='1.19', return_code2='0', energy_flux_error='3.67e-06', photon_flux_error2='1.52e-08', ts2='74.61', photon_index='2.58' WHERE bin_id='168' AND source_name='4FGL J2007.2+6607' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 09:28:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 648499: <4FGL_J2007.2+6607_monthly_bin168> in cluster <slac> Done

Job <4FGL_J2007.2+6607_monthly_bin168> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue May 24 04:00:34 2022
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 04:00:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 04:00:36 2022
Terminated at Tue May 24 09:28:02 2022
Results reported at Tue May 24 09:28:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2007.2+6607_monthly_bin168 301.815 66.1178 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2007.2+6607 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   19500.00 sec.
    Max Memory :                                 809 MB
    Average Memory :                             714.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   19645 sec.
    Turnaround time :                            19648 sec.

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

