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


Performing analysis on: 4FGL_J2200.1+2138_daily_bin1779
RA = 330.031, Dec = 21.6382
tmin = 700444801, tmax = 700704001
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='39066', job_status='RUN', time_executed='2023-03-17 02:33:54.959350', time_epoch_executed='1679045634.96' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='1779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/39066

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/39066/ft1_4FGL_J2200.1+2138_daily_bin1779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/39066/ft2_4FGL_J2200.1+2138_daily_bin1779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/39066/ft1_4FGL_J2200.1+2138_daily_bin1779.fits outfile=/scratch/kocevski/39066/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1779.fits ra=330.031 dec=21.6382 rad=12.0 tmin=700444801.0 tmax=700704001.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 5.33
user 5.08
sys 0.22

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

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

Number of photons that the gtmktime cut: 823

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/39066/ft1_filtered_4FGL_J2200.1+2138_daily_bin1779.fits" evtable="EVENTS" scfile=/scratch/kocevski/39066/ft2_4FGL_J2200.1+2138_daily_bin1779.fits sctable="SC_DATA" outfile=/scratch/kocevski/39066/ltcube_700444801_700704001_4FGL_J2200.1+2138_daily_bin1779.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/39066/ft2_4FGL_J2200.1+2138_daily_bin1779.fits
.....................!
real 12.35
user 11.99
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/39066/ft1_filtered_4FGL_J2200.1+2138_daily_bin1779.fits evtable="EVENTS" scfile=/scratch/kocevski/39066/ft2_4FGL_J2200.1+2138_daily_bin1779.fits sctable="SC_DATA" expcube=/scratch/kocevski/39066/ltcube_700444801_700704001_4FGL_J2200.1+2138_daily_bin1779.fits outfile=/scratch/kocevski/39066/expmap_700444801_700704001_4FGL_J2200.1+2138_daily_bin1779.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/39066/ltcube_700444801_700704001_4FGL_J2200.1+2138_daily_bin1779.fits
.....................!
real 190.47
user 185.71
sys 4.12

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/39066/ft1_filtered_4FGL_J2200.1+2138_daily_bin1779.fits scfile=/scratch/kocevski/39066/ft2_4FGL_J2200.1+2138_daily_bin1779.fits outfile=/scratch/kocevski/39066/cmap_700444801_700704001_4FGL_J2200.1+2138_daily_bin1779.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/39066/ft1_filtered_4FGL_J2200.1+2138_daily_bin1779.fits scfile=/scratch/kocevski/39066/ft2_4FGL_J2200.1+2138_daily_bin1779.fits outfile=/scratch/kocevski/39066/cmap_HighResolution_700444801_700704001_4FGL_J2200.1+2138_daily_bin1779.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.41
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/39066/ft1_filtered_4FGL_J2200.1+2138_daily_bin1779.fits', '/scratch/kocevski/39066/ft2_4FGL_J2200.1+2138_daily_bin1779.fits', expMap='/scratch/kocevski/39066/expmap_700444801_700704001_4FGL_J2200.1+2138_daily_bin1779.fits', expCube='/scratch/kocevski/39066/ltcube_700444801_700704001_4FGL_J2200.1+2138_daily_bin1779.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/39066/Model_4FGL_J2200.1+2138_daily_bin1779.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/39066/ft1_filtered_4FGL_J2200.1+2138_daily_bin1779.fits
Spacecraft file(s): /scratch/kocevski/39066/ft2_4FGL_J2200.1+2138_daily_bin1779.fits
Exposure map: /scratch/kocevski/39066/expmap_700444801_700704001_4FGL_J2200.1+2138_daily_bin1779.fits
Exposure cube: /scratch/kocevski/39066/ltcube_700444801_700704001_4FGL_J2200.1+2138_daily_bin1779.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/39066/Model_4FGL_J2200.1+2138_daily_bin1779.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) = 8793.29741118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64528E-02   1.0000          .0000       .10000E+07
     2 'norm      '    3.1450       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10567E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .15242       1.0000          .0000       .10000E+07
     5 'norm      '    1.0162       1.0000          .0000       .10000E+07
     6 'Prefactor '    .25458E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    6.0879       1.0000          .0000       .10000E+07
     8 'norm      '    .34417E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    7.3061       1.0000          .0000       .10000E+07
    10 'norm      '    .23315E-08   1.0000          .0000       .10000E+07
    11 'Prefactor '    .24574E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .34439E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .76973E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.9018       1.0000          .0000       .10000E+07
    15 'norm      '    4.9772       1.0000          .0000       .10000E+07
    16 'norm      '    3.7161       1.0000          .0000       .10000E+07
    17 'Prefactor '    .17659E-02   1.0000          .0000       .10000E+07
    18 'Normalizat'    .80767       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97304       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=   8793.228     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     1142 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    9.7326        .36990E-06** at limit **
   2  norm          3.1057        5.4728       -.98669E-06    .12178E-02
   3  Prefactor     .55511E-10    6.5420       -.51667E-05** at limit **
   4  Prefactor     .15543E-08    38.652       -.20658E-04** at limit **
   5  norm          1.0008        2.7509        .84953E-06   -.39511E-02
   6  Prefactor     .11102E-09    2.2917       -.66953E-06** at limit **
   7  Prefactor     6.5502        41.044       -.86215E-05    .47097E-03
   8  norm           .0000        .20058       -.22146E-06** at limit **
   9  Prefactor     6.7817        155.50       -.46992E-04    .34966E-03
  10  norm           .0000        .42585        .40025E-07** at limit **
  11  Prefactor     .61062E-09    3.7703        .43478E-06** at limit **
  12  norm          .88818E-09    7.1562        .72080E-05** at limit **
  13  Prefactor      .0000        3.3462        .56620E-06** at limit **
  14  Prefactor     3.8899        1.7507       -.10929E-05    .12616E-01
  15  norm          4.9771        1.4954       -.48259E-06   -.32413E-01
  16  norm          3.7168        1.7637        .44103E-06    .62407E-02
  17  Prefactor     .11102E-09    4.8739        .16898E-05** at limit **
  18  Normalizat    .80737        .25734        .34504E-05   -.24924E-03
  19  Prefactor     .97328        .11341        .18217E-04   -.13457E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  norm       = 3.10567
  Prefactor  = 5.55112e-11
  Prefactor  = 1.55431e-09
  norm       = 1.00079
  Prefactor  = 1.11022e-10
  Prefactor  = 6.55025
  norm       = 0
  Prefactor  = 6.78173
  norm       = 0
  Prefactor  = 6.10623e-10
  norm       = 8.88178e-10
  Prefactor  = 0
  Prefactor  = 3.88994
  norm       = 4.97705
  norm       = 3.71678
  Prefactor  = 1.11022e-10
  Normalizat = 0.807369
  Prefactor  = 0.973282
 **********
 **   18 **HESSE 
 **********

 FCN=   8793.228     FROM HESSE     STATUS=OK           302 CALLS     1444 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    9.7381        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.1057        5.5018        .57134E-03   -1.5673    
   3  Prefactor     .55511E-10    6.5420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .15543E-08    39.378        .12692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0008        2.9786        .12928E-02   -1.5688    
   6  Prefactor     .11102E-09    2.2893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.5502        47.236        .40668E-03   -1.5657    
   8  norm           .0000        .19895        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.7817        161.83        .37084E-03   -1.5656    
  10  norm           .0000        .42077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .61062E-09    3.7680        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .88818E-09    7.1041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        3.3472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8899        10.353        .51054E-03   -1.5669    
  15  norm          4.9771        1.4968        .45054E-03   -1.5663    
  16  norm          3.7168        1.7630        .52360E-03   -1.5669    
  17  Prefactor     .11102E-09    4.8507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .80737        .22316        .88631E-01   -.99796    
  19  Prefactor     .97328        .94969E-01    .45929E-01   -.93625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00671e-08
Minuit parameter uncertainties:
  1  7.58034e-05
  2  5.5018
  3  4.61205e-05
  4  0.000492816
  5  2.97863
  6  3.22421e-05
  7  35.1805
  8  3.65285e-06
  9  66.2579
  10  1.06679e-06
  11  9.71516e-05
  12  0.000159386
  13  1.87307e-06
  14  10.3529
  15  1.4968
  16  1.76303
  17  4.34507e-05
  18  0.223411
  19  0.0949854
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  6.782e+00  6.626e+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:  9.733e-01  9.499e-02  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:  8.074e-01  2.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 330.031 21.638
Photon Flux Upper Limit: 9.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/39066/likelihoodResults_700444801_700704001_4FGL_J2200.1+2138_daily_bin1779.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) = 8793.03381474
delta logL = 0.194632069542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8793.03339521
delta logL = 0.195051599127

Fit tolerance = 1e-08

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

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

 FCN=   8793.033     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      342 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0031        262.87        .44935E-03    .62980E-02
   2  Index         3.0188        3.3635        .10034        .24069E-03
   3  Normalizat    .76363        .58358E-01    .90983E-01   -.43331E-03
   4  Prefactor     .98273        .25498E-01    .46051E-01   -.13109E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.00312
  Index      = 3.01883
  Normalizat = 0.763631
  Prefactor  = 0.982734
 **********
 **   18 **HESSE 
 **********

 FCN=   8793.033     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      373 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0031        560.59        .17974E-04   -1.5663    
   2  Index         3.0188        6.2103        .79241E-02   -.40741    
   3  Normalizat    .76363        .20918        .40302E-03   -1.0143    
   4  Prefactor     .98273        .96116E-01    .16200E-03   -.93307    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.18694e-06
Minuit parameter uncertainties:
  1  105.929
  2  7.60951
  3  0.209404
  4  0.0961332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/39066': 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) = 8793.03339521
delta logL = 0.19505160472

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  5.003e+00  1.059e+02  0.000e+00  1.000e+06 ( 1.000e-14)
269        Index:  3.019e+00  7.610e+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:  9.827e-01  9.613e-02  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.636e-01  2.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 330.031 21.638

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/39066/cmap_HighResolution_700444801_700704001_4FGL_J2200.1+2138_daily_bin1779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.32e-03', job_status='DONE', photon_flux_upper_limit='9.73e-08', time_completed='2023-03-17 02:44:51.946111', job_id='39066', GAL2='0.98', fit_tolerance='1e-08', EG2='0.76', EG='0.81', time_epoch_completed='1679046291.95', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.95e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='1779' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 17 02:44:51 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 39066: <4FGL_J2200.1+2138_daily_bin1779> in cluster <slac> Done

Job <4FGL_J2200.1+2138_daily_bin1779> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Mar 17 02:30:13 2023
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 17 02:30:14 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 17 02:30:14 2023
Terminated at Fri Mar 17 02:44:52 2023
Results reported at Fri Mar 17 02:44:52 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin1779 330.031 21.6382 700444801 700704001 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 :                                   658.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            879 sec.

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

