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


Performing analysis on: 4FGL_J2201.8+5048_daily_bin1668
RA = 330.453, Dec = 50.8053
tmin = 671673601, tmax = 671932801
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='579708', job_status='RUN', time_executed='2022-04-18 03:14:52.368243', time_epoch_executed='1650276892.37' WHERE source_name='4FGL J2201.8+5048' and cadence='daily' and bin_id='1668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579708

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579708/ft1_4FGL_J2201.8+5048_daily_bin1668.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579708/ft2_4FGL_J2201.8+5048_daily_bin1668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579708/ft1_4FGL_J2201.8+5048_daily_bin1668.fits outfile=/scratch/kocevski/579708/ft1_filteredMKT_4FGL_J2201.8+5048_daily_bin1668.fits ra=330.453 dec=50.8053 rad=12.0 tmin=671673601.0 tmax=671932801.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 2.96
user 2.73
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/579708/ft2_4FGL_J2201.8+5048_daily_bin1668.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/579708/ft2_4FGL_J2201.8+5048_daily_bin1668.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/579708/ft1_filteredMKT_4FGL_J2201.8+5048_daily_bin1668.fits evtable="EVENTS" outfile="/scratch/kocevski/579708/ft1_filtered_4FGL_J2201.8+5048_daily_bin1668.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.44
user 0.27
sys 0.15

Number of photons that the gtmktime cut: 3999

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579708/ft1_filtered_4FGL_J2201.8+5048_daily_bin1668.fits" evtable="EVENTS" scfile=/scratch/kocevski/579708/ft2_4FGL_J2201.8+5048_daily_bin1668.fits sctable="SC_DATA" outfile=/scratch/kocevski/579708/ltcube_671673601_671932801_4FGL_J2201.8+5048_daily_bin1668.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/579708/ft2_4FGL_J2201.8+5048_daily_bin1668.fits
.....................!
real 9.80
user 9.46
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579708/ft1_filtered_4FGL_J2201.8+5048_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/579708/ft2_4FGL_J2201.8+5048_daily_bin1668.fits sctable="SC_DATA" expcube=/scratch/kocevski/579708/ltcube_671673601_671932801_4FGL_J2201.8+5048_daily_bin1668.fits outfile=/scratch/kocevski/579708/expmap_671673601_671932801_4FGL_J2201.8+5048_daily_bin1668.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/579708/ltcube_671673601_671932801_4FGL_J2201.8+5048_daily_bin1668.fits
.....................!
real 155.28
user 150.36
sys 4.64

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 HB 21 in ROI with RadialDisk spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Added 185 point sources and 7 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 J2201.8+5048 @ 330.453 50.8053

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/579708/ft1_filtered_4FGL_J2201.8+5048_daily_bin1668.fits scfile=/scratch/kocevski/579708/ft2_4FGL_J2201.8+5048_daily_bin1668.fits outfile=/scratch/kocevski/579708/cmap_671673601_671932801_4FGL_J2201.8+5048_daily_bin1668.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=330.453 yref=50.8053 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.49
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579708/ft1_filtered_4FGL_J2201.8+5048_daily_bin1668.fits scfile=/scratch/kocevski/579708/ft2_4FGL_J2201.8+5048_daily_bin1668.fits outfile=/scratch/kocevski/579708/cmap_HighResolution_671673601_671932801_4FGL_J2201.8+5048_daily_bin1668.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=330.453 yref=50.8053 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.49
user 0.32
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/579708/ft1_filtered_4FGL_J2201.8+5048_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/579708/ft2_4FGL_J2201.8+5048_daily_bin1668.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/579708/Model_4FGL_J2201.8+5048_daily_bin1668.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 Cygnus Cocoon
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/579708/ft1_filtered_4FGL_J2201.8+5048_daily_bin1668.fits.....................!
real 451.26
user 449.26
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/579708/ft1_filtered_4FGL_J2201.8+5048_daily_bin1668.fits', '/scratch/kocevski/579708/ft2_4FGL_J2201.8+5048_daily_bin1668.fits', expMap='/scratch/kocevski/579708/expmap_671673601_671932801_4FGL_J2201.8+5048_daily_bin1668.fits', expCube='/scratch/kocevski/579708/ltcube_671673601_671932801_4FGL_J2201.8+5048_daily_bin1668.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/579708/Model_4FGL_J2201.8+5048_daily_bin1668.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2201.8+5048'

4FGL J2201.8+5048
   Spectrum: LogParabola
363         norm:  4.033e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
364        alpha:  2.563e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
365         beta:  1.422e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
366           Eb:  4.823e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/579708/ft1_filtered_4FGL_J2201.8+5048_daily_bin1668.fits
Spacecraft file(s): /scratch/kocevski/579708/ft2_4FGL_J2201.8+5048_daily_bin1668.fits
Exposure map: /scratch/kocevski/579708/expmap_671673601_671932801_4FGL_J2201.8+5048_daily_bin1668.fits
Exposure cube: /scratch/kocevski/579708/ltcube_671673601_671932801_4FGL_J2201.8+5048_daily_bin1668.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/579708/Model_4FGL_J2201.8+5048_daily_bin1668.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) = 37305.3374936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.139       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .53757E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5331       1.0000         .10000E-03   10000.    
     4 'norm      '    .10730E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.374       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5277       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.096       1.0000         .10000E-03   10000.    
    11 'Normalizat'    1.5186       1.0000         .10000E-01   10.000    
    12 'Prefactor '    .91002       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   37305.33     FROM MIGRAD    STATUS=CONVERGED    239 CALLS     1057 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.139        20.762       -.19018E-04    .72487E-05
   2  Prefactor     .13879        5.3298       -.48184E-06   -.38302E-03
   3  Prefactor     4.5336        6.0338       -.45864E-06   -.42591E-03
   4  norm          .10669E-03    4.0901        .45063E-06** at limit **
   5  norm          .10000E-03    .74308       -.53800E-07** at limit **
   6  norm          13.374        1.5029       -.31790E-06   -.25965E-03
   7  Prefactor     .10000E-03    12.866       -.45368E-06** at limit **
   8  Prefactor     6.5315        20.756        .14958E-04   -.30530E-04
   9  Prefactor     .10000E-03    3.5071        .12967E-06** at limit **
  10  Prefactor     18.097        22.219       -.15735E-04   -.15228E-05
  11  Normalizat    1.5185        .27422       -.31825E-05   -.76025E-04
  12  Prefactor     .91001        .25551E-01    .70437E-06   -.75135E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.1393
  Prefactor  = 0.13879
  Prefactor  = 4.53355
  norm       = 0.000106693
  norm       = 0.0001
  norm       = 13.3741
  Prefactor  = 0.000100001
  Prefactor  = 6.53153
  Prefactor  = 0.0001
  Prefactor  = 18.0968
  Normalizat = 1.51855
  Prefactor  = 0.910006
 **********
 **   18 **HESSE 
 **********

 FCN=   37305.33     FROM HESSE     STATUS=OK           147 CALLS     1204 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.139        20.795        .94042E-04   -1.4856    
   2  Prefactor     .13879        5.5874        .12806       -1.5633    
   3  Prefactor     4.5336        6.0228        .18908E-03   -1.5282    
   4  norm          .10669E-03    4.7619        .10215       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .77436        .32490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.374        1.4984        .69286E-04   -1.4976    
   7  Prefactor     .10000E-03    12.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.5315        20.618        .15708E-03   -1.5197    
   9  Prefactor     .10000E-03    3.5592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.097        22.226        .94151E-04   -1.4857    
  11  Normalizat    1.5185        .27508        .96443E-03   -.77258    
  12  Prefactor     .91001        .26188E-01    .11719E-03   -.95792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12184e-10
Minuit parameter uncertainties:
  1  20.803
  2  1.76076
  3  6.02365
  4  0.0112919
  5  1.821e-06
  6  1.49842
  7  0.000164206
  8  20.6408
  9  3.52583e-06
  10  22.2362
  11  0.275347
  12  0.0261881
Done.

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

Extracting fit parameters...

4FGL J2201.8+5048
   Spectrum: LogParabola
363         norm:  1.000e-04  1.821e-06  1.000e-04  1.000e+04 ( 1.000e-11)
364        alpha:  2.563e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
365         beta:  1.422e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
366           Eb:  4.823e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
664    Prefactor:  9.100e-01  2.619e-02  0.000e+00  1.000e+01 ( 1.000e+00)
665        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
666        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
652   Normalization:  1.519e+00  2.753e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 330.453 50.805
Photon Flux Upper Limit: 8.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/579708/likelihoodResults_671673601_671932801_4FGL_J2201.8+5048_daily_bin1668.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) = 37305.338378
delta logL = -0.00616898034059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 37305.3322033
delta logL = 5.74321165914e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11067E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1225       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5186       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91001       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6750E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   37305.33     FROM MIGRAD    STATUS=FAILED       105 CALLS      284 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    169.54        .25910E-02** at limit **
   2  alpha         1.8720        2.5022        .16704       -.54393E-06
   3  Normalizat    1.5186        .14319        .96443E-03    .39042E-04
   4  Prefactor     .91001        .14142E-01    .11719E-03    .33915E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   37305.33     FROM SIMPLEX   STATUS=UNCHANGED    224 CALLS      508 TOTAL
                     EDM=   .83E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    169.54        .15342E-03** at limit **
   2  alpha         1.8720        2.5022        .86164E-07   -.54393E-06
   3  Normalizat    1.5186        .14319        .16658E-07    .39042E-04
   4  Prefactor     .91001        .14142E-01    .25802E-09    .33915E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   37305.33     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      536 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .98402        .51820E-03** at limit **
   2  alpha         1.8736        3.2055        .66817E-02   -.23957E-06
   3  Normalizat    1.5186        .25780        .38577E-04    .40079E-04
   4  Prefactor     .91001        .25471E-01    .46876E-05    .34924E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.87358
  Normalizat = 1.51855
  Prefactor  = 0.910006
 **********
 **   18 **HESSE 
 **********

 FCN=   37305.33     FROM HESSE     STATUS=OK            23 CALLS      559 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .98406        .10364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8736        3.2606        .13363E-02   -.25327    
   3  Normalizat    1.5186        .25776        .77154E-05   -.77258    
   4  Prefactor     .91001        .25470E-01    .93752E-06   -.95792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52727e-10
Minuit parameter uncertainties:
  1  2.22721e-05
  2  114.324
  3  0.257984
  4  0.0254701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579708': 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) = 37305.3321953
delta logL = 1.3756682165e-05

Extracting fit parameters...

4FGL J2201.8+5048
   Spectrum: LogParabola
363         norm:  1.000e-04  2.227e-05  1.000e-04  1.000e+04 ( 1.000e-11)
364        alpha:  1.874e+00  1.143e+02  0.000e+00  5.000e+00 ( 1.000e+00)
365         beta:  1.422e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
366           Eb:  4.823e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
664    Prefactor:  9.100e-01  2.547e-02  0.000e+00  1.000e+01 ( 1.000e+00)
665        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
666        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
652   Normalization:  1.519e+00  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 330.453 50.805

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/579708/cmap_HighResolution_671673601_671932801_4FGL_J2201.8+5048_daily_bin1668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.20e-05', job_status='DONE', photon_flux_upper_limit='8.44e-08', time_completed='2022-04-18 03:43:11.979196', job_id='579708', GAL2='0.91', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1650278591.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.38e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1668' AND source_name='4FGL J2201.8+5048' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Apr 18 03:43:12 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0247>
Subject: Job 579708: <4FGL_J2201.8+5048_daily_bin1668> in cluster <slac> Done

Job <4FGL_J2201.8+5048_daily_bin1668> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Apr 18 01:45:13 2022
Job was executed on host(s) <bullet0247>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 03:13:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 03:13:48 2022
Terminated at Mon Apr 18 03:43:12 2022
Results reported at Mon Apr 18 03:43:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2201.8+5048_daily_bin1668 330.453 50.8053 671673601 671932801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2201.8+5048 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1699.02 sec.
    Max Memory :                                 1264 MB
    Average Memory :                             427.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3029 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1764 sec.
    Turnaround time :                            7079 sec.

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

