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 43 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1712
RA = 334.238, Dec = 24.3575
tmin = 683078401, tmax = 683337601
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='242161', job_status='RUN', time_executed='2022-09-16 23:47:00.192221', time_epoch_executed='1663397220.19' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242161

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242161/ft1_4FGL_J2216.9+2421_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242161/ft2_4FGL_J2216.9+2421_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242161/ft1_4FGL_J2216.9+2421_daily_bin1712.fits outfile=/scratch/kocevski/242161/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1712.fits ra=334.238 dec=24.3575 rad=12.0 tmin=683078401.0 tmax=683337601.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 4.77
user 4.52
sys 0.23

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

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

Number of photons that the gtmktime cut: 736

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242161/ft1_filtered_4FGL_J2216.9+2421_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/242161/ft2_4FGL_J2216.9+2421_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/242161/ltcube_683078401_683337601_4FGL_J2216.9+2421_daily_bin1712.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/242161/ft2_4FGL_J2216.9+2421_daily_bin1712.fits
.....................!
real 14.99
user 14.58
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242161/ft1_filtered_4FGL_J2216.9+2421_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/242161/ft2_4FGL_J2216.9+2421_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/242161/ltcube_683078401_683337601_4FGL_J2216.9+2421_daily_bin1712.fits outfile=/scratch/kocevski/242161/expmap_683078401_683337601_4FGL_J2216.9+2421_daily_bin1712.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/242161/ltcube_683078401_683337601_4FGL_J2216.9+2421_daily_bin1712.fits
.....................!
real 191.50
user 186.50
sys 4.54

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_8years/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/242161/ft1_filtered_4FGL_J2216.9+2421_daily_bin1712.fits scfile=/scratch/kocevski/242161/ft2_4FGL_J2216.9+2421_daily_bin1712.fits outfile=/scratch/kocevski/242161/cmap_683078401_683337601_4FGL_J2216.9+2421_daily_bin1712.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242161/ft1_filtered_4FGL_J2216.9+2421_daily_bin1712.fits scfile=/scratch/kocevski/242161/ft2_4FGL_J2216.9+2421_daily_bin1712.fits outfile=/scratch/kocevski/242161/cmap_HighResolution_683078401_683337601_4FGL_J2216.9+2421_daily_bin1712.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/242161/ft1_filtered_4FGL_J2216.9+2421_daily_bin1712.fits', '/scratch/kocevski/242161/ft2_4FGL_J2216.9+2421_daily_bin1712.fits', expMap='/scratch/kocevski/242161/expmap_683078401_683337601_4FGL_J2216.9+2421_daily_bin1712.fits', expCube='/scratch/kocevski/242161/ltcube_683078401_683337601_4FGL_J2216.9+2421_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/242161/Model_4FGL_J2216.9+2421_daily_bin1712.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  0.000e+00  1.000e+06 ( 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/242161/ft1_filtered_4FGL_J2216.9+2421_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/242161/ft2_4FGL_J2216.9+2421_daily_bin1712.fits
Exposure map: /scratch/kocevski/242161/expmap_683078401_683337601_4FGL_J2216.9+2421_daily_bin1712.fits
Exposure cube: /scratch/kocevski/242161/ltcube_683078401_683337601_4FGL_J2216.9+2421_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/242161/Model_4FGL_J2216.9+2421_daily_bin1712.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) = 7762.04051042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.878       1.0000          .0000       .10000E+07
     2 'norm      '    .45519E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    .17529E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    41.743       1.0000          .0000       .10000E+07
     5 'norm      '    .35194E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .55394E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .57898E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    5.1201       1.0000          .0000       .10000E+07
     9 'norm      '    1.8074       1.0000          .0000       .10000E+07
    10 'Prefactor '    .43953E-05   1.0000          .0000       .10000E+07
    11 'norm      '    3.8177       1.0000          .0000       .10000E+07
    12 'norm      '    .15399       1.0000          .0000       .10000E+07
    13 'Prefactor '    41.569       1.0000          .0000       .10000E+07
    14 'Prefactor '    16.055       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.3622       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .78722       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .92130       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7762.030     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1218 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.285        103.60        .19232E-04   -.64812E-03
   2  norm          .55511E-10    .57042        .85065E-06** at limit **
   3  Prefactor     .11102E-09    2.6427        .10705E-05** at limit **
   4  Prefactor     41.774        24.445       -.51666E-05   -.29562E-02
   5  norm          .55511E-10    .26814       -.16840E-05** at limit **
   6  Prefactor     .66058E-08    18.198       -.16491E-04** at limit **
   7  norm          .11102E-09    .94678       -.27422E-05** at limit **
   8  Prefactor     5.1213        8.0933        .13397E-05    .37630E-05
   9  norm          1.8168        3.8113       -.29651E-05   -.14505E-02
  10  Prefactor     .22204E-09    3.3803        .38979E-05** at limit **
  11  norm          3.8170        1.3556       -.45037E-06    .55158E-03
  12  norm          .15145        2.8126       -.18184E-06** at limit **
  13  Prefactor     41.558        1.8624       -.46052E-07   -.74847E-01
  14  Prefactor     15.985        11.293       -.11091E-05    .31729E-03
  15  Prefactor     1.3622        .29986       -.23381E-05    .80215E-02
  16  Normalizat    .78750        .24131       -.28370E-04    .34894E-04
  17  Prefactor     .92115        .11394        .41402E-04    .10015E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.2852
  norm       = 5.55112e-11
  Prefactor  = 1.11022e-10
  Prefactor  = 41.7741
  norm       = 5.55112e-11
  Prefactor  = 6.60583e-09
  norm       = 1.11022e-10
  Prefactor  = 5.12132
  norm       = 1.81677
  Prefactor  = 2.22045e-10
  norm       = 3.81696
  norm       = 0.151452
  Prefactor  = 41.5576
  Prefactor  = 15.9853
  Prefactor  = 1.36222
  Normalizat = 0.787504
  Prefactor  = 0.921149
 **********
 **   18 **HESSE 
 **********

 FCN=   7762.030     FROM HESSE     STATUS=OK           269 CALLS     1487 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.285        103.20        .13625E-03   -1.5559    
   2  norm          .55511E-10    .57453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .11102E-09    2.6428        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     41.774        24.459        .15479E-03   -1.5579    
   5  norm          .55511E-10    .26669        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .66058E-08    18.243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .11102E-09    .36992        .18377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.1213        8.1002        .44408E-03   -1.5663    
   9  norm          1.8168        3.8342        .77699E-03   -1.5681    
  10  Prefactor     .22204E-09    3.3793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.8170        1.3564        .51633E-03   -1.5669    
  12  norm          .15145        1.1221        .31214E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.558        34.908        .15512E-03   -1.5579    
  14  Prefactor     15.985        11.301        .24970E-03   -1.5628    
  15  Prefactor     1.3622        .30823        .49583E-02   -1.5475    
  16  Normalizat    .78750        .20560        .83077E-01   -1.0053    
  17  Prefactor     .92115        .96273E-01    .45276E-01   -.95406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71746e-07
Minuit parameter uncertainties:
  1  103.2
  2  9.55387e-06
  3  3.10312e-05
  4  24.4592
  5  8.36614e-06
  6  0.000693778
  7  1.22985e-05
  8  8.10022
  9  3.83417
  10  5.14107e-05
  11  1.35638
  12  0.824487
  13  34.9083
  14  11.3012
  15  0.308231
  16  0.205799
  17  0.0962905
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  5.121e+00  8.100e+00  0.000e+00  1.000e+06 ( 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.211e-01  9.629e-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:  7.875e-01  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/242161/likelihoodResults_683078401_683337601_4FGL_J2216.9+2421_daily_bin1712.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) = 7761.6697469
delta logL = 0.359992870392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7761.63767379
delta logL = 0.392065980531

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6024       1.0000          .0000       .10000E+07
     2 'Index     '    1.5613       1.0000          .0000       10.000    
     3 'Normalizat'    .79645       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91786       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7761.638     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      281 TOTAL
                     EDM=   .84E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6054        11.169        .13661E-04    .10735E-03
   2  Index         1.5617        .70808        .12923E-01   -.63954E-05
   3  Normalizat    .79657        .23401        .36587E-03   -.39525E-04
   4  Prefactor     .91784        .11294        .16405E-03   -.24020E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.60537
  Index      = 1.56168
  Normalizat = 0.796574
  Prefactor  = 0.917845
 **********
 **   18 **HESSE 
 **********

 FCN=   7761.638     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6054        11.282        .54645E-06   -1.5649    
   2  Index         1.5617        .71552        .51694E-03   -.75827    
   3  Normalizat    .79657        .23416        .14635E-04   -1.0020    
   4  Prefactor     .91784        .11301        .32809E-04   -.95520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32921e-12
Minuit parameter uncertainties:
  1  11.2823
  2  0.720238
  3  0.234456
  4  0.11304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242161': 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) = 7761.63767331
delta logL = 0.392066456676

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  8.605e+00  1.128e+01  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  1.562e+00  7.202e-01  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.178e-01  1.130e-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:  7.966e-01  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 334.238 24.358
Photon Index (Free Index): 1.56 +/- 0.72
Photon Flux (Free Index): 7.49e-09 +/- 1.19e-08
Energy Flux (Free Index): 1.93e-05 +/- 3.72e-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/242161/cmap_HighResolution_683078401_683337601_4FGL_J2216.9+2421_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-03', comment='SUCCESS', energy_flux2='1.93e-05', dlogl='3.92e-01', photon_flux2='7.49e-09', job_status='DONE', time_completed='2022-09-16 23:57:09.283488', photon_index_error2='0.72', photon_index2='1.56', ts='0.64', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='6.95e-08', energy_flux_error2='3.72e-05', EG='0.79', time_epoch_completed='1663397829.28', return_code='0', job_id='242161', GAL2='0.92', EG2='0.80', return_code2='0', photon_flux_error2='1.19e-08', ts2='1.42', photon_index='2.28' WHERE bin_id='1712' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:57:09 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 242161: <4FGL_J2216.9+2421_daily_bin1712> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1712> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 23:45:25 2022
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:46:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 23:46:07 2022
Terminated at Fri Sep 16 23:57:10 2022
Results reported at Fri Sep 16 23:57:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1712 334.238 24.3575 683078401 683337601 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 :                                   610.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             343.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            705 sec.

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

