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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1695
RA = 334.238, Dec = 24.3575
tmin = 678672001, tmax = 678931201
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='731204', job_status='RUN', time_executed='2022-07-08 00:38:02.973211', time_epoch_executed='1657265882.97' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1695'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731204

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731204/ft1_4FGL_J2216.9+2421_daily_bin1695.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731204/ft2_4FGL_J2216.9+2421_daily_bin1695.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731204/ft1_4FGL_J2216.9+2421_daily_bin1695.fits outfile=/scratch/kocevski/731204/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1695.fits ra=334.238 dec=24.3575 rad=12.0 tmin=678672001.0 tmax=678931201.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 3.60
user 3.39
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/731204/ft2_4FGL_J2216.9+2421_daily_bin1695.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/731204/ft2_4FGL_J2216.9+2421_daily_bin1695.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/731204/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1695.fits evtable="EVENTS" outfile="/scratch/kocevski/731204/ft1_filtered_4FGL_J2216.9+2421_daily_bin1695.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.48
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 832

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731204/ft1_filtered_4FGL_J2216.9+2421_daily_bin1695.fits" evtable="EVENTS" scfile=/scratch/kocevski/731204/ft2_4FGL_J2216.9+2421_daily_bin1695.fits sctable="SC_DATA" outfile=/scratch/kocevski/731204/ltcube_678672001_678931201_4FGL_J2216.9+2421_daily_bin1695.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/731204/ft2_4FGL_J2216.9+2421_daily_bin1695.fits
.....................!
real 11.73
user 11.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731204/ft1_filtered_4FGL_J2216.9+2421_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/731204/ft2_4FGL_J2216.9+2421_daily_bin1695.fits sctable="SC_DATA" expcube=/scratch/kocevski/731204/ltcube_678672001_678931201_4FGL_J2216.9+2421_daily_bin1695.fits outfile=/scratch/kocevski/731204/expmap_678672001_678931201_4FGL_J2216.9+2421_daily_bin1695.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/731204/ltcube_678672001_678931201_4FGL_J2216.9+2421_daily_bin1695.fits
.....................!
real 192.30
user 187.59
sys 4.39

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 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.
Added 159 point sources and 1 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 J2216.9+2421 @ 334.238 24.3575

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/731204/ft1_filtered_4FGL_J2216.9+2421_daily_bin1695.fits scfile=/scratch/kocevski/731204/ft2_4FGL_J2216.9+2421_daily_bin1695.fits outfile=/scratch/kocevski/731204/cmap_678672001_678931201_4FGL_J2216.9+2421_daily_bin1695.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=334.238 yref=24.3575 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731204/ft1_filtered_4FGL_J2216.9+2421_daily_bin1695.fits scfile=/scratch/kocevski/731204/ft2_4FGL_J2216.9+2421_daily_bin1695.fits outfile=/scratch/kocevski/731204/cmap_HighResolution_678672001_678931201_4FGL_J2216.9+2421_daily_bin1695.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=334.238 yref=24.3575 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731204/ft1_filtered_4FGL_J2216.9+2421_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/731204/ft2_4FGL_J2216.9+2421_daily_bin1695.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731204/Model_4FGL_J2216.9+2421_daily_bin1695.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 Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/731204/ft1_filtered_4FGL_J2216.9+2421_daily_bin1695.fits.....................!
real 138.76
user 137.34
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/731204/ft1_filtered_4FGL_J2216.9+2421_daily_bin1695.fits', '/scratch/kocevski/731204/ft2_4FGL_J2216.9+2421_daily_bin1695.fits', expMap='/scratch/kocevski/731204/expmap_678672001_678931201_4FGL_J2216.9+2421_daily_bin1695.fits', expCube='/scratch/kocevski/731204/ltcube_678672001_678931201_4FGL_J2216.9+2421_daily_bin1695.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/731204/Model_4FGL_J2216.9+2421_daily_bin1695.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2216.9+2421'

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  5.564e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/731204/ft1_filtered_4FGL_J2216.9+2421_daily_bin1695.fits
Spacecraft file(s): /scratch/kocevski/731204/ft2_4FGL_J2216.9+2421_daily_bin1695.fits
Exposure map: /scratch/kocevski/731204/expmap_678672001_678931201_4FGL_J2216.9+2421_daily_bin1695.fits
Exposure cube: /scratch/kocevski/731204/ltcube_678672001_678931201_4FGL_J2216.9+2421_daily_bin1695.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/731204/Model_4FGL_J2216.9+2421_daily_bin1695.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) = 8678.68846258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.231       1.0000         .10000E-03   10000.    
     2 'norm      '    .23905       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.734       1.0000         .10000E-03   10000.    
     5 'norm      '    .58576E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18592E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.955       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.920       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8638       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.8735       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.399       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .94426       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6807       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .91559       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97310       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8678.677     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     1864 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.380        151.53       -.73267E-06    .16376E-04
   2  norm          .22282        1.3144        .48554E-06   -.10365E-02
   3  Prefactor     .10000E-03    1.8180       -.38646E-07** at limit **
   4  Prefactor     10.770        25.711        .11544E-05    .67602E-04
   5  norm          .57893E-01    .39500        .21369E-06   -.69894E-03
   6  Prefactor     .10001E-03    333.22       -.41365E-05** at limit **
   7  norm          .10000E-03    .30379       -.43785E-06** at limit **
   8  Prefactor     11.951        14.474       -.38046E-06    .19909E-04
   9  norm          .10000E-03    1.6010       -.46486E-07** at limit **
  10  Prefactor     .10000E-03    92.913       -.23634E-06** at limit **
  11  Prefactor     33.915        14.420       -.52891E-06    .10013E-03
  12  norm          1.8634        1.1200       -.10898E-06    .34976E-04
  13  Prefactor     .10000E-03    10.660       -.89703E-07** at limit **
  14  norm          3.8734        2.1869        .41579E-08    .40180E-04
  15  Prefactor     .10000E-03    11.519       -.21719E-07** at limit **
  16  Prefactor     38.397        13.435       -.21282E-06    .29081E-04
  17  Prefactor     .94423        .25061       -.29999E-07    .29151E-03
  18  Prefactor     4.6806        5.2668       -.69238E-06   -.26474E-03
  19  Normalizat    .91587        .25458        .80931E-05    .27073E-03
  20  Prefactor     .97301        .11556       -.27299E-05    .74095E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3804
  norm       = 0.222817
  Prefactor  = 0.0001
  Prefactor  = 10.7704
  norm       = 0.0578932
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 11.9508
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.9148
  norm       = 1.86338
  Prefactor  = 0.0001
  norm       = 3.87341
  Prefactor  = 0.0001
  Prefactor  = 38.3971
  Prefactor  = 0.944228
  Prefactor  = 4.68062
  Normalizat = 0.915873
  Prefactor  = 0.973012
 **********
 **   18 **HESSE 
 **********

 FCN=   8678.677     FROM HESSE     STATUS=OK           301 CALLS     2165 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.380        148.94        .11454E-03   -1.5004    
   2  norm          .22282        8.4554        .17801E-02   -1.5614    
   3  Prefactor     .10000E-03    1.8216        .12267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.770        26.499        .12229E-03   -1.5051    
   5  norm          .57893E-01    .90310        .10984E-02   -1.5660    
   6  Prefactor     .10001E-03    345.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .43760        .99457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.951        14.482        .11586E-03   -1.5016    
   9  norm          .10000E-03    1.6109        .11511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    93.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     33.915        14.450        .68804E-04   -1.4543    
  12  norm          1.8634        1.1165        .72614E-04   -1.5435    
  13  Prefactor     .10000E-03    10.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.8734        2.1840        .98424E-04   -1.5314    
  15  Prefactor     .10000E-03    11.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.397        13.440        .64680E-04   -1.4468    
  17  Prefactor     .94423        .25058        .23099E-04   -1.5514    
  18  Prefactor     4.6806        5.2969        .93004E-03   -1.5275    
  19  Normalizat    .91587        .26579        .18819E-02   -.95905    
  20  Prefactor     .97301        .11856        .17220E-03   -.93635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14247e-08
Minuit parameter uncertainties:
  1  86.1491
  2  2.74499
  3  2.53309e-06
  4  26.5276
  5  0.456923
  6  0.00271693
  7  7.3078e-06
  8  14.4866
  9  3.77831e-06
  10  0.000185618
  11  14.451
  12  1.11652
  13  2.20715e-05
  14  2.18401
  15  5.78896e-06
  16  13.4415
  17  0.250578
  18  5.29738
  19  0.266171
  20  0.118595
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.195e+01  1.449e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  9.730e-01  1.186e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  9.159e-01  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.00
Ra Dec: 334.238 24.358
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 2.84e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 1.34e-05

TS (Fixed Index): 1.00
Ra Dec: 334.238 24.358
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731204/likelihoodResults_678672001_678931201_4FGL_J2216.9+2421_daily_bin1695.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) = 8678.61893919
delta logL = 0.0582244735015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8678.59854592
delta logL = 0.0786177388309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6671       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0674       1.0000          .0000       10.000    
     3 'Normalizat'    .87988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98518       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+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=   8678.599     FROM MIGRAD    STATUS=FAILED       101 CALLS      313 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6671        235.61        .93142E-03   -.37201E-03
   2  Index         3.0677        6.0648        .78981E-02    .28210E-04
   3  Normalizat    .88007        .26110        .38324E-03   -.59330E-07
   4  Prefactor     .98504        .10619        .17127E-03   -.19913E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8678.599     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      404 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6671        235.61        .22290E-03   -.37201E-03
   2  Index         3.0677        6.0648        .11304E-02    .28210E-04
   3  Normalizat    .88007        .26110        .17538E-03   -.59330E-07
   4  Prefactor     .98504        .10619        .25987E-04   -.19913E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8678.599     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      435 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6677        19.258        .37257E-04   -.16539E-03
   2  Index         3.0676        2.2756        .31592E-03   -.29364E-04
   3  Normalizat    .88007        .26566        .15330E-04   -.56363E-05
   4  Prefactor     .98504        .12117        .68510E-05    .74342E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.66769
  Index      = 3.06759
  Normalizat = 0.880071
  Prefactor  = 0.98504
 **********
 **   18 **HESSE 
 **********

 FCN=   8678.599     FROM HESSE     STATUS=OK            23 CALLS      458 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6677        17.468        .14903E-05   -1.5276    
   2  Index         3.0676        2.1119        .12637E-04   -.39681    
   3  Normalizat    .88007        .26256        .30659E-05   -.97164    
   4  Prefactor     .98504        .12002        .13702E-05   -.93230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19562e-11
Minuit parameter uncertainties:
  1  17.4873
  2  2.19368
  3  0.262941
  4  0.120048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731204': 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) = 8678.59854493
delta logL = 0.078618729689

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  4.668e+00  1.749e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  3.068e+00  2.194e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  9.850e-01  1.200e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  8.801e-01  2.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.20
Ra Dec: 334.238 24.358
Photon Index (Free Index): 3.07 +/- 2.19
Photon Flux (Free Index): 4.90e-08 +/- 6.61e-08
Energy Flux (Free Index): 9.48e-06 +/- 1.01e-05

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/731204/cmap_HighResolution_678672001_678931201_4FGL_J2216.9+2421_daily_bin1695.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.29e-03', comment='SUCCESS', photon_flux='2.84e-08', energy_flux2='9.48e-06', photon_flux_error='3.44e-08', dlogl='7.86e-02', energy_flux='1.10e-05', photon_flux2='4.90e-08', job_status='DONE', time_completed='2022-07-08 00:50:32.899846', photon_index_error2='2.19', photon_index2='3.07', ts='1.00', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.01e-05', EG='0.92', time_epoch_completed='1657266632.9', return_code='0', job_id='731204', GAL2='0.99', EG2='0.88', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='6.61e-08', ts2='1.20', photon_index='2.28' WHERE bin_id='1695' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul  8 00:50:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 731204: <4FGL_J2216.9+2421_daily_bin1695> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1695> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Jul  8 00:35:19 2022
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul  8 00:35:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul  8 00:35:20 2022
Terminated at Fri Jul  8 00:50:33 2022
Results reported at Fri Jul  8 00:50:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1695 334.238 24.3575 678672001 678931201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2216.9+2421 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   752.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            914 sec.

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

