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


Performing analysis on: 4FGL_J2200.1+2138_daily_bin1753
RA = 330.031, Dec = 21.6382
tmin = 693705601, tmax = 693964801
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='465961', job_status='RUN', time_executed='2022-12-29 01:37:39.915838', time_epoch_executed='1672306659.92' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/465961

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/465961/ft1_4FGL_J2200.1+2138_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/465961/ft2_4FGL_J2200.1+2138_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/465961/ft1_4FGL_J2200.1+2138_daily_bin1753.fits outfile=/scratch/kocevski/465961/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1753.fits ra=330.031 dec=21.6382 rad=12.0 tmin=693705601.0 tmax=693964801.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.61
user 4.36
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/465961/ft2_4FGL_J2200.1+2138_daily_bin1753.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/465961/ft2_4FGL_J2200.1+2138_daily_bin1753.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/465961/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1753.fits evtable="EVENTS" outfile="/scratch/kocevski/465961/ft1_filtered_4FGL_J2200.1+2138_daily_bin1753.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.17

Number of photons that the gtmktime cut: 714

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/465961/ft1_filtered_4FGL_J2200.1+2138_daily_bin1753.fits" evtable="EVENTS" scfile=/scratch/kocevski/465961/ft2_4FGL_J2200.1+2138_daily_bin1753.fits sctable="SC_DATA" outfile=/scratch/kocevski/465961/ltcube_693705601_693964801_4FGL_J2200.1+2138_daily_bin1753.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/465961/ft2_4FGL_J2200.1+2138_daily_bin1753.fits
.....................!
real 15.51
user 15.09
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/465961/ft1_filtered_4FGL_J2200.1+2138_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/465961/ft2_4FGL_J2200.1+2138_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/465961/ltcube_693705601_693964801_4FGL_J2200.1+2138_daily_bin1753.fits outfile=/scratch/kocevski/465961/expmap_693705601_693964801_4FGL_J2200.1+2138_daily_bin1753.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/465961/ltcube_693705601_693964801_4FGL_J2200.1+2138_daily_bin1753.fits
.....................!
real 192.58
user 186.49
sys 5.66

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 167 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 J2200.1+2138 @ 330.031 21.6382

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/465961/ft1_filtered_4FGL_J2200.1+2138_daily_bin1753.fits scfile=/scratch/kocevski/465961/ft2_4FGL_J2200.1+2138_daily_bin1753.fits outfile=/scratch/kocevski/465961/cmap_693705601_693964801_4FGL_J2200.1+2138_daily_bin1753.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.031 yref=21.6382 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.59
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/465961/ft1_filtered_4FGL_J2200.1+2138_daily_bin1753.fits scfile=/scratch/kocevski/465961/ft2_4FGL_J2200.1+2138_daily_bin1753.fits outfile=/scratch/kocevski/465961/cmap_HighResolution_693705601_693964801_4FGL_J2200.1+2138_daily_bin1753.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.031 yref=21.6382 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/465961/ft1_filtered_4FGL_J2200.1+2138_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/465961/ft2_4FGL_J2200.1+2138_daily_bin1753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/465961/Model_4FGL_J2200.1+2138_daily_bin1753.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/465961/ft1_filtered_4FGL_J2200.1+2138_daily_bin1753.fits.....................!
real 111.72
user 110.18
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/465961/ft1_filtered_4FGL_J2200.1+2138_daily_bin1753.fits', '/scratch/kocevski/465961/ft2_4FGL_J2200.1+2138_daily_bin1753.fits', expMap='/scratch/kocevski/465961/expmap_693705601_693964801_4FGL_J2200.1+2138_daily_bin1753.fits', expCube='/scratch/kocevski/465961/ltcube_693705601_693964801_4FGL_J2200.1+2138_daily_bin1753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/465961/Model_4FGL_J2200.1+2138_daily_bin1753.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2200.1+2138'

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  7.461e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
269        Index:  2.044e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/465961/ft1_filtered_4FGL_J2200.1+2138_daily_bin1753.fits
Spacecraft file(s): /scratch/kocevski/465961/ft2_4FGL_J2200.1+2138_daily_bin1753.fits
Exposure map: /scratch/kocevski/465961/expmap_693705601_693964801_4FGL_J2200.1+2138_daily_bin1753.fits
Exposure cube: /scratch/kocevski/465961/ltcube_693705601_693964801_4FGL_J2200.1+2138_daily_bin1753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/465961/Model_4FGL_J2200.1+2138_daily_bin1753.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) = 8021.02957804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7318       1.0000          .0000       .10000E+07
     2 'norm      '    3.5435       1.0000          .0000       .10000E+07
     3 'Prefactor '    .60754E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .47736       1.0000          .0000       .10000E+07
     5 'norm      '    3.2810       1.0000          .0000       .10000E+07
     6 'Prefactor '    12.153       1.0000          .0000       .10000E+07
     7 'Prefactor '    .20245E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .84710E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    44.551       1.0000          .0000       .10000E+07
    10 'norm      '    1.3380       1.0000          .0000       .10000E+07
    11 'Prefactor '    28.729       1.0000          .0000       .10000E+07
    12 'norm      '    .35285E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .61782E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    17.665       1.0000          .0000       .10000E+07
    15 'norm      '    2.2854       1.0000          .0000       .10000E+07
    16 'norm      '    .13806E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10399E-02   1.0000          .0000       .10000E+07
    18 'Normalizat'    .72802       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0076       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8020.889     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1398 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6738        15.686       -.18991E-05   -.38444E-01
   2  norm          3.5306        4.3870        .81448E-06    .32379E-02
   3  Prefactor      .0000        5.7700        .20254E-05** at limit **
   4  Prefactor     .11870E-04    99.088       -.13439E-04** at limit **
   5  norm          3.2843        2.6703        .12988E-05    .99773E-03
   6  Prefactor     12.248        9.9306        .12817E-05   -.48480E-03
   7  Prefactor     .16653E-09    18.788       -.89418E-05** at limit **
   8  norm          .55511E-10    .46551        .35288E-06** at limit **
   9  Prefactor     45.243        45.062        .18376E-04   -.14505E-01
  10  norm          1.3388        .97808        .20383E-06    .22420E-01
  11  Prefactor     28.844        1.9644       -.70509E-06   -.28359E-01
  12  norm          .49960E-09    2.6935        .99596E-06** at limit **
  13  Prefactor     .11657E-08    11.498        .14041E-06** at limit **
  14  Prefactor     17.560        1.4031       -.49313E-06   -.29769E-01
  15  norm          2.2869        1.3328        .10043E-05   -.10898E-01
  16  norm          .55511E-09    1.2445        .22474E-06** at limit **
  17  Prefactor     .55511E-10    4.9317        .17124E-05** at limit **
  18  Normalizat    .72801        .27947       -.16680E-03    .21069E-03
  19  Prefactor     1.0072        .12292        .44342E-04    .55536E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.67379
  norm       = 3.53065
  Prefactor  = 0
  Prefactor  = 1.18698e-05
  norm       = 3.28429
  Prefactor  = 12.248
  Prefactor  = 1.66533e-10
  norm       = 5.55112e-11
  Prefactor  = 45.2431
  norm       = 1.33885
  Prefactor  = 28.8443
  norm       = 4.996e-10
  Prefactor  = 1.16573e-09
  Prefactor  = 17.5599
  norm       = 2.28689
  norm       = 5.55112e-10
  Prefactor  = 5.55112e-11
  Normalizat = 0.728011
  Prefactor  = 1.00716
 **********
 **   18 **HESSE 
 **********

 FCN=   8020.889     FROM HESSE     STATUS=OK           304 CALLS     1702 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6738        39.339        .46233E-03   -1.5660    
   2  norm          3.5306        4.4224        .53672E-03   -1.5670    
   3  Prefactor      .0000        5.7639        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11870E-04    132.46        .81020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.2843        2.6899        .55876E-03   -1.5672    
   6  Prefactor     12.248        9.9304        .28710E-03   -1.5638    
   7  Prefactor     .16653E-09    18.790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .55511E-10    .45593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     45.243        45.755        .14983E-03   -1.5573    
  10  norm          1.3388        .99345        .94768E-03   -1.5685    
  11  Prefactor     28.844        22.374        .18660E-03   -1.5601    
  12  norm          .49960E-09    2.6897        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11657E-08    11.475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.560        19.182        .23803E-03   -1.5624    
  15  norm          2.2869        1.3377        .67881E-03   -1.5678    
  16  norm          .55511E-09    1.2282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    4.9356        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .72801        .26042        .10219       -1.0280    
  19  Prefactor     1.0072        .10813        .43701E-01   -.92491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70306e-07
Minuit parameter uncertainties:
  1  29.8801
  2  4.42243
  3  2.12386e-05
  4  0.0793061
  5  2.68987
  6  9.93041
  7  0.000103075
  8  1.06593e-05
  9  45.7555
  10  0.993455
  11  22.374
  12  7.32385e-05
  13  0.000233531
  14  19.1818
  15  1.33766
  16  5.34437e-05
  17  2.49405e-05
  18  0.260869
  19  0.10815
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  4.524e+01  4.576e+01  0.000e+00  1.000e+06 ( 1.000e-14)
269        Index:  2.044e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  1.007e+00  1.082e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  7.280e-01  2.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.10
Ra Dec: 330.031 21.638
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 2.94e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.85e-05

TS (Fixed Index): 3.10
Ra Dec: 330.031 21.638
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/465961/likelihoodResults_693705601_693964801_4FGL_J2200.1+2138_daily_bin1753.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) = 8020.888809
delta logL = 2.40981371462e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8020.88868879
delta logL = 0.000144312205521

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.758       1.0000          .0000       .10000E+07
     2 'Index     '    2.0097       1.0000          .0000       10.000    
     3 'Normalizat'    .73016       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0067       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+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=   8020.889     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      275 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.750        63.943        .29569E-04    .83625E-03
   2  Index         2.0098        2.2423        .22347E-01    .13017E-04
   3  Normalizat    .73031        .32436        .45223E-03    .61062E-04
   4  Prefactor     1.0067        .12605        .17048E-03    .29961E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.7497
  Index      = 2.00977
  Normalizat = 0.730308
  Prefactor  = 1.00669
 **********
 **   18 **HESSE 
 **********

 FCN=   8020.889     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.750        53.872        .59137E-05   -1.5573    
   2  Index         2.0098        1.8737        .89388E-03   -.64106    
   3  Normalizat    .73031        .30259        .18089E-04   -1.0271    
   4  Prefactor     1.0067        .12352        .34097E-04   -.92507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.94432e-11
Minuit parameter uncertainties:
  1  53.8724
  2  1.94974
  3  0.303282
  4  0.123559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/465961': 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) = 8020.88868863
delta logL = 0.000144467006066

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  4.575e+01  5.387e+01  0.000e+00  1.000e+06 ( 1.000e-14)
269        Index:  2.010e+00  1.950e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  1.007e+00  1.236e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  7.303e-01  3.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.10
Ra Dec: 330.031 21.638
Photon Index (Free Index): 2.01 +/- 1.95
Photon Flux (Free Index): 2.76e-08 +/- 1.06e-07
Energy Flux (Free Index): 1.86e-05 +/- 2.70e-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/465961/cmap_HighResolution_693705601_693964801_4FGL_J2200.1+2138_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.48e-03', comment='SUCCESS', photon_flux='2.94e-08', energy_flux2='1.86e-05', photon_flux_error='2.97e-08', dlogl='1.44e-04', energy_flux='1.83e-05', photon_flux2='2.76e-08', job_status='DONE', time_completed='2022-12-29 01:48:25.377631', photon_index_error2='1.95', photon_index2='2.01', ts='3.10', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='2.70e-05', EG='0.73', time_epoch_completed='1672307305.38', return_code='0', job_id='465961', GAL2='1.01', EG2='0.73', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='1.06e-07', ts2='3.10', photon_index='2.04' WHERE bin_id='1753' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 01:48:25 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 465961: <4FGL_J2200.1+2138_daily_bin1753> in cluster <slac> Done

Job <4FGL_J2200.1+2138_daily_bin1753> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Dec 29 01:35:18 2022
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 01:35:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 01:35:54 2022
Terminated at Thu Dec 29 01:48:25 2022
Results reported at Thu Dec 29 01:48:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin1753 330.031 21.6382 693705601 693964801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2200.1+2138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   644.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            787 sec.

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

