aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 74 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 = 17258
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1200.7+2008_weekly_bin631
RA = 180.187, Dec = 20.1354
tmin = 620611201, tmax = 621216001
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='91665', job_status='RUN', time_executed='2021-07-18 16:50:00.677332', time_epoch_executed='1626652200.68' WHERE source_name='4FGL J1200.7+2008' and cadence='weekly' and bin_id='631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91665

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91665/ft1_4FGL_J1200.7+2008_weekly_bin631.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91665/ft2_4FGL_J1200.7+2008_weekly_bin631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91665/ft1_4FGL_J1200.7+2008_weekly_bin631.fits outfile=/scratch/kocevski/91665/ft1_filteredMKT_4FGL_J1200.7+2008_weekly_bin631.fits ra=180.187 dec=20.1354 rad=12.0 tmin=620611201.0 tmax=621216001.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 6.04
user 5.77
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/91665/ft2_4FGL_J1200.7+2008_weekly_bin631.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/91665/ft2_4FGL_J1200.7+2008_weekly_bin631.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/91665/ft1_filteredMKT_4FGL_J1200.7+2008_weekly_bin631.fits evtable="EVENTS" outfile="/scratch/kocevski/91665/ft1_filtered_4FGL_J1200.7+2008_weekly_bin631.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.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/91665/ft1_filtered_4FGL_J1200.7+2008_weekly_bin631.fits" evtable="EVENTS" scfile=/scratch/kocevski/91665/ft2_4FGL_J1200.7+2008_weekly_bin631.fits sctable="SC_DATA" outfile=/scratch/kocevski/91665/ltcube_620611201_621216001_4FGL_J1200.7+2008_weekly_bin631.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/91665/ft2_4FGL_J1200.7+2008_weekly_bin631.fits
.....................!
real 33.86
user 33.20
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91665/ft1_filtered_4FGL_J1200.7+2008_weekly_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/91665/ft2_4FGL_J1200.7+2008_weekly_bin631.fits sctable="SC_DATA" expcube=/scratch/kocevski/91665/ltcube_620611201_621216001_4FGL_J1200.7+2008_weekly_bin631.fits outfile=/scratch/kocevski/91665/expmap_620611201_621216001_4FGL_J1200.7+2008_weekly_bin631.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/91665/ltcube_620611201_621216001_4FGL_J1200.7+2008_weekly_bin631.fits
.....................!
real 156.43
user 152.36
sys 3.38

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
Added 192 point sources and 0 extended sources

Setting source of interest to:
4FGL J1200.7+2008 @ 180.187 20.1354

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/91665/ft1_filtered_4FGL_J1200.7+2008_weekly_bin631.fits scfile=/scratch/kocevski/91665/ft2_4FGL_J1200.7+2008_weekly_bin631.fits outfile=/scratch/kocevski/91665/cmap_620611201_621216001_4FGL_J1200.7+2008_weekly_bin631.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=180.187 yref=20.1354 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/91665/ft1_filtered_4FGL_J1200.7+2008_weekly_bin631.fits scfile=/scratch/kocevski/91665/ft2_4FGL_J1200.7+2008_weekly_bin631.fits outfile=/scratch/kocevski/91665/cmap_HighResolution_620611201_621216001_4FGL_J1200.7+2008_weekly_bin631.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=180.187 yref=20.1354 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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/91665/ft1_filtered_4FGL_J1200.7+2008_weekly_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/91665/ft2_4FGL_J1200.7+2008_weekly_bin631.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/91665/Model_4FGL_J1200.7+2008_weekly_bin631.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/91665/ft1_filtered_4FGL_J1200.7+2008_weekly_bin631.fits.....................!
real 29.72
user 28.46
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/91665/ft1_filtered_4FGL_J1200.7+2008_weekly_bin631.fits', '/scratch/kocevski/91665/ft2_4FGL_J1200.7+2008_weekly_bin631.fits', expMap='/scratch/kocevski/91665/expmap_620611201_621216001_4FGL_J1200.7+2008_weekly_bin631.fits', expCube='/scratch/kocevski/91665/ltcube_620611201_621216001_4FGL_J1200.7+2008_weekly_bin631.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/91665/Model_4FGL_J1200.7+2008_weekly_bin631.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.7+2008'

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.085e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.520e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/91665/ft1_filtered_4FGL_J1200.7+2008_weekly_bin631.fits
Spacecraft file(s): /scratch/kocevski/91665/ft2_4FGL_J1200.7+2008_weekly_bin631.fits
Exposure map: /scratch/kocevski/91665/expmap_620611201_621216001_4FGL_J1200.7+2008_weekly_bin631.fits
Exposure cube: /scratch/kocevski/91665/ltcube_620611201_621216001_4FGL_J1200.7+2008_weekly_bin631.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/91665/Model_4FGL_J1200.7+2008_weekly_bin631.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) = 3157.10388658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.699       1.0000         .10000E-03   10000.    
     2 'norm      '    23.472       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    71.369       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17594E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3915       1.0000         .10000E-03   10000.    
     9 'Prefactor '    79.768       1.0000         .10000E-03   10000.    
    10 'norm      '    4.1337       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1002       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19789E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.2769       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5044       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8377       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .36689E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    6.1108       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.7931       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.0007       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0100       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88986       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3157.093     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     3161 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.698        14.156        .34899E-06   -.11437E-03
   2  norm          23.468        22.369       -.31330E-06   -.52068E-04
   3  Prefactor     .10000E-03    27.704       -.28624E-06** at limit **
   4  Prefactor     71.362        67.330       -.15721E-05   -.67481E-04
   5  Prefactor     .10000E-03    10.749       -.57234E-06** at limit **
   6  Prefactor     .10002E-03    63.313        .10887E-04** at limit **
   7  Prefactor     .10000E-03    27.768       -.79057E-06** at limit **
   8  Prefactor     6.3863        4.4396       -.17644E-06   -.17567E-03
   9  Prefactor     79.757        31.082       -.11894E-05   -.25958E-03
  10  norm          4.1326        2.2735       -.61444E-08   -.13801E-03
  11  Prefactor     .10000E-03    14.086        .29903E-06** at limit **
  12  Prefactor     5.1147        6.9589        .42382E-05   -.12038E-02
  13  Prefactor     .10003E-03    77.241       -.11613E-04** at limit **
  14  Prefactor     .10000E-03    4.2332       -.21269E-05** at limit **
  15  Prefactor     .10000E-03    1.7443       -.10382E-07** at limit **
  16  norm          5.2765        3.5984       -.36426E-06   -.26533E-03
  17  Prefactor     7.5048        4.0394        .49322E-06    .62860E-03
  18  Prefactor     1.8379        2.9755       -.81801E-08   -.13316E-03
  19  Prefactor     .10000E-03    18.350       -.91069E-06** at limit **
  20  norm          .36722E-01    .20256        .35231E-07   -.51737E-03
  21  norm          6.1132        5.4645       -.92918E-06   -.51026E-03
  22  Prefactor     6.7952        12.365        .78387E-06    .98640E-04
  23  Prefactor     .10000E-03    14.220        .76147E-06** at limit **
  24  Prefactor     2.9870        100.32       -.76827E-05   -.74830E-04
  25  Normalizat    1.0100        .26398        .90336E-06    .16631E-03
  26  Prefactor     .89008        .25268       -.80598E-06    .19993E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6981
  norm       = 23.4679
  Prefactor  = 0.0001
  Prefactor  = 71.362
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 6.38633
  Prefactor  = 79.7566
  norm       = 4.13259
  Prefactor  = 0.0001
  Prefactor  = 5.11474
  Prefactor  = 0.000100033
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 5.27649
  Prefactor  = 7.50478
  Prefactor  = 1.83794
  Prefactor  = 0.0001
  norm       = 0.0367225
  norm       = 6.11325
  Prefactor  = 6.79521
  Prefactor  = 0.0001
  Prefactor  = 2.98696
  Normalizat = 1.00997
  Prefactor  = 0.890076
 **********
 **   18 **HESSE 
 **********

 FCN=   3157.093     FROM HESSE     STATUS=OK           454 CALLS     3615 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.698        14.174        .61244E-03   -1.5054    
   2  norm          23.468        22.408        .82678E-04   -1.4739    
   3  Prefactor     .10000E-03    28.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     71.362        67.578        .23760E-03   -1.4016    
   5  Prefactor     .10000E-03    10.761        .18001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    65.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.3863        4.4407        .93250E-04   -1.5202    
   9  Prefactor     79.757        31.352        .44967E-04   -1.3919    
  10  norm          4.1326        2.2754        .60161E-04   -1.5301    
  11  Prefactor     .10000E-03    14.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.1147        7.7445        .89016E-03   -1.5256    
  13  Prefactor     .10003E-03    79.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.5391        .21860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.7597        .72404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.2765        3.6106        .82925E-04   -1.5249    
  17  Prefactor     7.5048        4.0563        .77350E-04   -1.5160    
  18  Prefactor     1.8379        2.9515        .11418E-03   -1.5437    
  19  Prefactor     .10000E-03    18.989        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .36722E-01    .27296        .46832E-03   -1.5670    
  21  norm          6.1132        5.4983        .11908E-03   -1.5213    
  22  Prefactor     6.7952        12.223        .15394E-03   -1.5187    
  23  Prefactor     .10000E-03    14.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.9870        102.13        .23432E-03   -1.5362    
  25  Normalizat    1.0100        .30025        .25643E-03   -.92697    
  26  Prefactor     .89008        .28773        .27496E-03   -.96489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1701e-08
Minuit parameter uncertainties:
  1  14.1784
  2  22.4156
  3  9.66231e-05
  4  67.6505
  5  6.5585e-05
  6  0.00253634
  7  0.000199234
  8  4.44091
  9  31.3582
  10  2.27544
  11  5.38843e-05
  12  7.74603
  13  0.00324794
  14  0.000241432
  15  7.17832e-07
  16  3.61079
  17  4.05648
  18  2.95178
  19  0.000132404
  20  0.199968
  21  5.49876
  22  12.227
  23  6.19138e-05
  24  34.9967
  25  0.300758
  26  0.288218
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  5.115e+00  7.746e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.520e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  8.901e-01  2.882e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.010e+00  3.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.55
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 2.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.68e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/91665/likelihoodResults_620611201_621216001_4FGL_J1200.7+2008_weekly_bin631.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) = 3156.98416928
delta logL = 0.10880680903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3156.9799874
delta logL = 0.112988690334

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9274       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1199       1.0000          .0000       10.000    
     3 'Normalizat'    .98965       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90536       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3156.980     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      231 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9275        128.27        .59356E-02    .43234E-03
   2  Index         3.1206        6.4641        .14673        .58649E-04
   3  Normalizat    .98973        .81802E-01    .46037E-01    .93138E-05
   4  Prefactor     .90533        .84466E-01    .45073E-01    .59944E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.92748
  Index      = 3.12056
  Normalizat = 0.989729
  Prefactor  = 0.905329
 **********
 **   18 **HESSE 
 **********

 FCN=   3156.980     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9275        9.0007        .11535E-03   -1.5366    
   2  Index         3.1206        1.8309        .74372E-02   -.38535    
   3  Normalizat    .98973        .28631        .25868E-03   -.93375    
   4  Prefactor     .90533        .28752        .27284E-03   -.95955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.77757e-09
Minuit parameter uncertainties:
  1  9.00481
  2  1.88228
  3  0.286758
  4  0.288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91665': 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) = 3156.9799868
delta logL = 0.112989292066

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  2.927e+00  9.005e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  3.121e+00  1.882e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  9.053e-01  2.880e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  9.897e-01  2.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.55
Ra Dec: 180.187 20.135

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/91665/cmap_HighResolution_620611201_621216001_4FGL_J1200.7+2008_weekly_bin631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-02', job_status='DONE', photon_flux_upper_limit='2.16e-07', time_completed='2021-07-18 16:58:32.740590', job_id='91665', GAL2='0.91', fit_tolerance='1e-08', EG2='0.99', EG='1.01', time_epoch_completed='1626652712.74', return_code2='0', ts='0.55', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.13e-01', ts2='0.78', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='631' AND source_name='4FGL J1200.7+2008' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul 18 16:58:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 91665: <4FGL_J1200.7+2008_weekly_bin631> in cluster <slac> Done

Job <4FGL_J1200.7+2008_weekly_bin631> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Jul 18 16:47:00 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 18 16:48:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 18 16:48:30 2021
Terminated at Sun Jul 18 16:58:33 2021
Results reported at Sun Jul 18 16:58:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_weekly_bin631 180.187 20.1354 620611201 621216001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.7+2008 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   503.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             280.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            693 sec.

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

