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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1669
RA = 334.238, Dec = 24.3575
tmin = 671932801, tmax = 672192001
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='692192', job_status='RUN', time_executed='2022-04-21 00:37:25.149630', time_epoch_executed='1650526645.15' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1669'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692192

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692192/ft1_4FGL_J2216.9+2421_daily_bin1669.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692192/ft2_4FGL_J2216.9+2421_daily_bin1669.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692192/ft1_4FGL_J2216.9+2421_daily_bin1669.fits outfile=/scratch/kocevski/692192/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1669.fits ra=334.238 dec=24.3575 rad=12.0 tmin=671932801.0 tmax=672192001.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.77
user 3.50
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/692192/ft2_4FGL_J2216.9+2421_daily_bin1669.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/692192/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1669.fits evtable="EVENTS" outfile="/scratch/kocevski/692192/ft1_filtered_4FGL_J2216.9+2421_daily_bin1669.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.50
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 945

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692192/ft1_filtered_4FGL_J2216.9+2421_daily_bin1669.fits" evtable="EVENTS" scfile=/scratch/kocevski/692192/ft2_4FGL_J2216.9+2421_daily_bin1669.fits sctable="SC_DATA" outfile=/scratch/kocevski/692192/ltcube_671932801_672192001_4FGL_J2216.9+2421_daily_bin1669.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/692192/ft2_4FGL_J2216.9+2421_daily_bin1669.fits
.....................!
real 11.96
user 11.56
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692192/ft1_filtered_4FGL_J2216.9+2421_daily_bin1669.fits evtable="EVENTS" scfile=/scratch/kocevski/692192/ft2_4FGL_J2216.9+2421_daily_bin1669.fits sctable="SC_DATA" expcube=/scratch/kocevski/692192/ltcube_671932801_672192001_4FGL_J2216.9+2421_daily_bin1669.fits outfile=/scratch/kocevski/692192/expmap_671932801_672192001_4FGL_J2216.9+2421_daily_bin1669.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/692192/ltcube_671932801_672192001_4FGL_J2216.9+2421_daily_bin1669.fits
.....................!
real 190.14
user 184.43
sys 5.28

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/692192/ft1_filtered_4FGL_J2216.9+2421_daily_bin1669.fits scfile=/scratch/kocevski/692192/ft2_4FGL_J2216.9+2421_daily_bin1669.fits outfile=/scratch/kocevski/692192/cmap_671932801_672192001_4FGL_J2216.9+2421_daily_bin1669.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692192/ft1_filtered_4FGL_J2216.9+2421_daily_bin1669.fits scfile=/scratch/kocevski/692192/ft2_4FGL_J2216.9+2421_daily_bin1669.fits outfile=/scratch/kocevski/692192/cmap_HighResolution_671932801_672192001_4FGL_J2216.9+2421_daily_bin1669.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/692192/ft1_filtered_4FGL_J2216.9+2421_daily_bin1669.fits evtable="EVENTS" scfile=/scratch/kocevski/692192/ft2_4FGL_J2216.9+2421_daily_bin1669.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692192/Model_4FGL_J2216.9+2421_daily_bin1669.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/692192/ft1_filtered_4FGL_J2216.9+2421_daily_bin1669.fits.....................!
real 164.04
user 162.43
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/692192/ft1_filtered_4FGL_J2216.9+2421_daily_bin1669.fits', '/scratch/kocevski/692192/ft2_4FGL_J2216.9+2421_daily_bin1669.fits', expMap='/scratch/kocevski/692192/expmap_671932801_672192001_4FGL_J2216.9+2421_daily_bin1669.fits', expCube='/scratch/kocevski/692192/ltcube_671932801_672192001_4FGL_J2216.9+2421_daily_bin1669.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/692192/Model_4FGL_J2216.9+2421_daily_bin1669.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/692192/ft1_filtered_4FGL_J2216.9+2421_daily_bin1669.fits
Spacecraft file(s): /scratch/kocevski/692192/ft2_4FGL_J2216.9+2421_daily_bin1669.fits
Exposure map: /scratch/kocevski/692192/expmap_671932801_672192001_4FGL_J2216.9+2421_daily_bin1669.fits
Exposure cube: /scratch/kocevski/692192/ltcube_671932801_672192001_4FGL_J2216.9+2421_daily_bin1669.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/692192/Model_4FGL_J2216.9+2421_daily_bin1669.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) = 10432.560153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11703E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.544       1.0000         .10000E-03   10000.    
     5 'norm      '    .43219       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .22607E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .46056E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.7054       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.338       1.0000         .10000E-03   10000.    
    14 'norm      '    1.9814       1.0000         .10000E-03   10000.    
    15 'Prefactor '    51.954       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.570       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .43704       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0717       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0015       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=   10432.55     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2085 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.475       -.14811E-05** at limit **
   2  norm          .10000E-03    .84443        .10529E-05** at limit **
   3  Prefactor     .10000E-03    2.3330       -.12781E-07** at limit **
   4  Prefactor     16.508        26.295       -.16844E-04    .99954E-04
   5  norm          .43181        .62705       -.11937E-06   -.12761E-02
   6  Prefactor     .10000E-03    17.169        .11394E-07** at limit **
   7  norm          .10000E-03    .21487        .39284E-07** at limit **
   8  Prefactor     .10000E-03    26.271        .77186E-06** at limit **
   9  norm          .10000E-03    4.2176       -.29676E-07** at limit **
  10  Prefactor     .10000E-03    83.364        .60641E-05** at limit **
  11  Prefactor     .10000E-03    4.6081       -.32605E-06** at limit **
  12  norm          2.7053        1.3460       -.73195E-07   -.38241E-03
  13  Prefactor     10.338        21.541       -.11310E-05   -.32485E-05
  14  norm          1.9814        1.3508       -.44927E-08    .10223E-03
  15  Prefactor     51.952        36.580       -.12890E-05    .39092E-04
  16  Prefactor     26.572        12.703       -.25792E-06    .24098E-04
  17  Prefactor     .43705        .22023       -.49634E-08   -.88153E-03
  18  Prefactor     .10000E-03    8.2234       -.70256E-07** at limit **
  19  Normalizat    1.0717        .20582        .19115E-05   -.16564E-03
  20  Prefactor     1.0015        .91227E-01    .31292E-06   -.24577E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 16.5084
  norm       = 0.431809
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.70531
  Prefactor  = 10.3384
  norm       = 1.98141
  Prefactor  = 51.9523
  Prefactor  = 26.5717
  Prefactor  = 0.437054
  Prefactor  = 0.0001
  Normalizat = 1.07173
  Prefactor  = 1.00153
 **********
 **   18 **HESSE 
 **********

 FCN=   10432.55     FROM HESSE     STATUS=OK           293 CALLS     2378 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.4534        .18362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3386        .15234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.508        26.495        .98468E-04   -1.4895    
   5  norm          .43181        .49635        .93269E-03   -1.5577    
   6  Prefactor     .10000E-03    17.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .22493        .92434E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.4090        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    83.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.359        .41845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.7053        1.3402        .75773E-04   -1.5379    
  13  Prefactor     10.338        21.484        .12462E-03   -1.5065    
  14  norm          1.9814        1.3513        .94355E-04   -1.5426    
  15  Prefactor     51.952        36.555        .55642E-04   -1.4265    
  16  Prefactor     26.572        12.692        .77718E-04   -1.4677    
  17  Prefactor     .43705        .21591        .31176E-04   -1.5576    
  18  Prefactor     .10000E-03    8.3447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0717        .23752        .37512E-03   -.90665    
  20  Prefactor     1.0015        .10728        .17742E-03   -.92679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14323e-09
Minuit parameter uncertainties:
  1  0.000159687
  2  0.000126786
  3  2.879e-06
  4  26.5134
  5  0.496359
  6  3.57557e-05
  7  1.95113e-06
  8  0.000103224
  9  8.58348e-06
  10  0.00055798
  11  0.000212054
  12  1.34024
  13  21.4997
  14  1.35132
  15  36.5704
  16  12.6931
  17  0.215914
  18  1.59632e-05
  19  0.237761
  20  0.107304
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.032e-04  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:  1.002e+00  1.073e-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:  1.072e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 334.238 24.358
Photon Flux Upper Limit: 9.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/692192/likelihoodResults_671932801_672192001_4FGL_J2216.9+2421_daily_bin1669.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): 102
logL (Free Index) = 10432.550162
delta logL = -0.00017909935741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10432.5499826
delta logL = 3.33924617735e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15452E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4022       1.0000          .0000       10.000    
     3 'Normalizat'    1.0720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0014       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.

 FCN=   10432.23     FROM MIGRAD    STATUS=CONVERGED    149 CALLS      320 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5369        41.618        .90712E-02    .14666E-02
   2  Index         3.5987        2.9892        .13937        .22203E-03
   3  Normalizat    1.0112        .47092E-01    .86955E-01   -.59955E-04
   4  Prefactor     1.0162        .21672E-01    .45186E-01   -.10077E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.53685
  Index      = 3.59874
  Normalizat = 1.0112
  Prefactor  = 1.01616
 **********
 **   18 **HESSE 
 **********

 FCN=   10432.23     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      351 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5369        121.86        .15498E-03   -1.5460    
   2  Index         3.5987        6.6543        .80684E-02   -.28406    
   3  Normalizat    1.0112        .21395        .38508E-03   -.92656    
   4  Prefactor     1.0162        .96461E-01    .17627E-03   -.92193    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.89488e-09
Minuit parameter uncertainties:
  1  27.4273
  2  7.81922
  3  0.214136
  4  0.0964773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692192': 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): 102
logL (Free Index) = 10432.2276764
delta logL = 0.322306516366

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.537e+00  2.743e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  3.599e+00  7.819e+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:  1.016e+00  9.648e-02  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:  1.011e+00  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 334.238 24.358

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/692192/cmap_HighResolution_671932801_672192001_4FGL_J2216.9+2421_daily_bin1669.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.01e-03', job_status='DONE', photon_flux_upper_limit='9.15e-08', time_completed='2022-04-21 00:51:17.719894', job_id='692192', GAL2='1.02', fit_tolerance='1e-08', EG2='1.01', EG='1.07', time_epoch_completed='1650527477.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.22e-01', ts2='0.75', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1669' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Apr 21 00:51:17 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 692192: <4FGL_J2216.9+2421_daily_bin1669> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1669> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Apr 21 00:35:36 2022
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Apr 21 00:35:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Apr 21 00:35:37 2022
Terminated at Thu Apr 21 00:51:18 2022
Results reported at Thu Apr 21 00:51:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1669 334.238 24.3575 671932801 672192001 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 :                                   834.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            942 sec.

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

