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


Performing analysis on: 4FGL_J2200.1+2138_daily_bin1710
RA = 330.031, Dec = 21.6382
tmin = 682560001, tmax = 682819201
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='238641', job_status='RUN', time_executed='2022-09-16 23:39:59.878122', time_epoch_executed='1663396799.88' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/238641

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/238641/ft1_4FGL_J2200.1+2138_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/238641/ft2_4FGL_J2200.1+2138_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/238641/ft1_4FGL_J2200.1+2138_daily_bin1710.fits outfile=/scratch/kocevski/238641/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1710.fits ra=330.031 dec=21.6382 rad=12.0 tmin=682560001.0 tmax=682819201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.75
user 3.45
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/238641/ft2_4FGL_J2200.1+2138_daily_bin1710.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/238641/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1710.fits evtable="EVENTS" outfile="/scratch/kocevski/238641/ft1_filtered_4FGL_J2200.1+2138_daily_bin1710.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.52
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 814

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/238641/ft1_filtered_4FGL_J2200.1+2138_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/238641/ft2_4FGL_J2200.1+2138_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/238641/ltcube_682560001_682819201_4FGL_J2200.1+2138_daily_bin1710.fits outfile=/scratch/kocevski/238641/expmap_682560001_682819201_4FGL_J2200.1+2138_daily_bin1710.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/238641/ltcube_682560001_682819201_4FGL_J2200.1+2138_daily_bin1710.fits
.....................!
real 191.52
user 186.26
sys 4.67

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/238641/ft1_filtered_4FGL_J2200.1+2138_daily_bin1710.fits scfile=/scratch/kocevski/238641/ft2_4FGL_J2200.1+2138_daily_bin1710.fits outfile=/scratch/kocevski/238641/cmap_682560001_682819201_4FGL_J2200.1+2138_daily_bin1710.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/238641/ft1_filtered_4FGL_J2200.1+2138_daily_bin1710.fits scfile=/scratch/kocevski/238641/ft2_4FGL_J2200.1+2138_daily_bin1710.fits outfile=/scratch/kocevski/238641/cmap_HighResolution_682560001_682819201_4FGL_J2200.1+2138_daily_bin1710.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99470E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .17297E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    14.281       1.0000          .0000       .10000E+07
     4 'Prefactor '    .16961E-01   1.0000          .0000       .10000E+07
     5 'norm      '    .29931       1.0000          .0000       .10000E+07
     6 'Prefactor '    9.1583       1.0000          .0000       .10000E+07
     7 'Prefactor '    18.293       1.0000          .0000       .10000E+07
     8 'norm      '    .13323E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    .45678E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .45218       1.0000          .0000       .10000E+07
    11 'Prefactor '    38.274       1.0000          .0000       .10000E+07
    12 'norm      '    .11040E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .66441       1.0000          .0000       .10000E+07
    14 'Prefactor '    .67147E-05   1.0000          .0000       .10000E+07
    15 'norm      '    3.7273       1.0000          .0000       .10000E+07
    16 'norm      '    1.4108       1.0000          .0000       .10000E+07
    17 'Prefactor '    29.607       1.0000          .0000       .10000E+07
    18 'Normalizat'    .28789       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1897       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=   8655.865     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1172 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64393E-08    32.966       -.96993E-06** at limit **
   2  norm           .0000        1.6191        .77891E-08** at limit **
   3  Prefactor     14.499        10.447       -.17580E-06   -.52895E-02
   4  Prefactor     .99920E-09    29.166        .17084E-05** at limit **
   5  norm          .30163        1.3962       -.21561E-06    .20264E-02
   6  Prefactor     9.3154        7.3113       -.51177E-07    .39870E-03
   7  Prefactor     17.943        18.108       -.32805E-06    .59182E-01
   8  norm           .0000        .27431       -.84813E-07** at limit **
   9  Prefactor     .14544E-07    79.769        .80939E-06** at limit **
  10  norm          .45325        .76795        .94220E-07    .22295E-04
  11  Prefactor     38.086        10.893       -.37054E-07   -.14243    
  12  norm           .0000        3.8675       -.13315E-06** at limit **
  13  Prefactor     .65226        8.1551        .40849E-06   -.20425E-02
  14  Prefactor     .55511E-10    6.4898        .16835E-06** at limit **
  15  norm          3.7283        1.4283       -.12980E-06    .12605E-01
  16  norm          1.4093        1.3598        .74937E-08    .80390E-03
  17  Prefactor     29.711        13.671       -.29442E-06   -.33286E-01
  18  Normalizat    .28820        .24770       -.15943E-04    .19756E-03
  19  Prefactor     1.1893        .11492       -.13959E-05    .75426E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.43929e-09
  norm       = 0
  Prefactor  = 14.4993
  Prefactor  = 9.99201e-10
  norm       = 0.30163
  Prefactor  = 9.31537
  Prefactor  = 17.9427
  norm       = 0
  Prefactor  = 1.45439e-08
  norm       = 0.453255
  Prefactor  = 38.086
  norm       = 0
  Prefactor  = 0.65226
  Prefactor  = 5.55112e-11
  norm       = 3.72833
  norm       = 1.40932
  Prefactor  = 29.7112
  Normalizat = 0.288199
  Prefactor  = 1.18934
 **********
 **   18 **HESSE 
 **********

 FCN=   8655.865     FROM HESSE     STATUS=OK           310 CALLS     1482 TOTAL
                     EDM=   .78E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64393E-08    33.000        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        1.6183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.499        10.683        .26479E-03   -1.5632    
   4  Prefactor     .99920E-09    29.189        .17245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .30163        1.4911        .10223E-02   -1.5697    
   6  Prefactor     9.3154        7.3111        .33094E-03   -1.5647    
   7  Prefactor     17.943        21.635        .23390E-03   -1.5623    
   8  norm           .0000        .26483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14544E-07    79.840        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .45325        .80631        .83674E-03   -1.5694    
  11  Prefactor     38.086        19.337        .16166E-03   -1.5585    
  12  norm           .0000        3.8489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .65226        8.1095        .63646E-03   -1.5692    
  14  Prefactor     .55511E-10    6.4894        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.7283        1.4610        .52279E-03   -1.5669    
  16  norm          1.4093        1.3502        .91176E-03   -1.5684    
  17  Prefactor     29.711        14.013        .18381E-03   -1.5599    
  18  Normalizat    .28820        .32898        .14130       -1.2355    
  19  Prefactor     1.1893        .14511        .34880E-01   -.86660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.8047e-07
Minuit parameter uncertainties:
  1  0.000922041
  2  2.8799e-06
  3  10.6826
  4  0.000341122
  5  1.34127
  6  7.31113
  7  21.6352
  8  1.00293e-06
  9  0.00215368
  10  0.80631
  11  19.3368
  12  1.2782e-05
  13  4.59978
  14  3.61323e-05
  15  1.46099
  16  1.35017
  17  14.0126
  18  0.33122
  19  0.145157
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.454e-08  2.154e-03  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.189e+00  1.452e-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:  2.882e-01  3.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/238641/likelihoodResults_682560001_682819201_4FGL_J2200.1+2138_daily_bin1710.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) = 8655.87116403
delta logL = -0.00611658101298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8655.25770771
delta logL = 0.607339740061

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9925       1.0000          .0000       .10000E+07
     2 'Index     '    3.4770       1.0000          .0000       10.000    
     3 'Normalizat'    .21725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2056       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=   8655.258     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      237 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9968        43.003        .73364E-03    .81788E-02
   2  Index         3.4767        2.4804        .87663E-01    .27032E-03
   3  Normalizat    .21702        .57487E-01    .16312        .11662E-03
   4  Prefactor     1.2057        .27084E-01    .34499E-01   -.51091E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99676
  Index      = 3.47671
  Normalizat = 0.217021
  Prefactor  = 1.20566
 **********
 **   18 **HESSE 
 **********

 FCN=   8655.258     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9968        91.689        .12305E-04   -1.5680    
   2  Index         3.4767        6.6561        .51337E-02   -.30958    
   3  Normalizat    .21702        .20578        .71326E-03   -1.2819    
   4  Prefactor     1.2057        .97579E-01    .15103E-03   -.86157    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.38179e-06
Minuit parameter uncertainties:
  1  27.062
  2  4.78104
  3  0.206499
  4  0.0975941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/238641': 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) = 8655.25770634
delta logL = 0.607341110093

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.997e+00  2.706e+01  0.000e+00  1.000e+06 ( 1.000e-14)
269        Index:  3.477e+00  4.781e+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.206e+00  9.759e-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:  2.170e-01  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 330.031 21.638
Photon Index (Free Index): 3.48 +/- 4.78
Photon Flux (Free Index): 5.30e-08 +/- 5.24e-08
Energy Flux (Free Index): 8.87e-06 +/- 1.59e-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/238641/cmap_HighResolution_682560001_682819201_4FGL_J2200.1+2138_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.49e-03', comment='SUCCESS', energy_flux2='8.87e-06', dlogl='6.07e-01', photon_flux2='5.30e-08', job_status='DONE', time_completed='2022-09-16 23:50:56.491943', photon_index_error2='4.78', photon_index2='3.48', ts='-0.00', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='7.29e-08', energy_flux_error2='1.59e-05', EG='0.29', time_epoch_completed='1663397456.49', return_code='0', job_id='238641', GAL2='1.21', EG2='0.22', return_code2='102', photon_flux_error2='5.24e-08', ts2='1.37', photon_index='2.04' WHERE bin_id='1710' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:50:56 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 238641: <4FGL_J2200.1+2138_daily_bin1710> in cluster <slac> Done

Job <4FGL_J2200.1+2138_daily_bin1710> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 23:35:24 2022
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:36:23 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:36:23 2022
Terminated at Fri Sep 16 23:50:57 2022
Results reported at Fri Sep 16 23:50:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin1710 330.031 21.6382 682560001 682819201 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 :                                   657.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            933 sec.

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

