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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1767
RA = 180.187, Dec = 20.1354
tmin = 697334401, tmax = 697593601
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='74301', job_status='RUN', time_executed='2023-02-09 01:04:28.719440', time_epoch_executed='1675933468.72' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74301

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74301/ft1_4FGL_J1200.7+2008_daily_bin1767.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74301/ft2_4FGL_J1200.7+2008_daily_bin1767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74301/ft1_4FGL_J1200.7+2008_daily_bin1767.fits outfile=/scratch/kocevski/74301/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1767.fits ra=180.187 dec=20.1354 rad=12.0 tmin=697334401.0 tmax=697593601.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.59
user 3.33
sys 0.24

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

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

Number of photons that the gtmktime cut: 804

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/74301/ft1_filtered_4FGL_J1200.7+2008_daily_bin1767.fits" evtable="EVENTS" scfile=/scratch/kocevski/74301/ft2_4FGL_J1200.7+2008_daily_bin1767.fits sctable="SC_DATA" outfile=/scratch/kocevski/74301/ltcube_697334401_697593601_4FGL_J1200.7+2008_daily_bin1767.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/74301/ft2_4FGL_J1200.7+2008_daily_bin1767.fits
.....................!
real 15.83
user 15.39
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74301/ft1_filtered_4FGL_J1200.7+2008_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/74301/ft2_4FGL_J1200.7+2008_daily_bin1767.fits sctable="SC_DATA" expcube=/scratch/kocevski/74301/ltcube_697334401_697593601_4FGL_J1200.7+2008_daily_bin1767.fits outfile=/scratch/kocevski/74301/expmap_697334401_697593601_4FGL_J1200.7+2008_daily_bin1767.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/74301/ltcube_697334401_697593601_4FGL_J1200.7+2008_daily_bin1767.fits
.....................!
real 192.78
user 187.37
sys 4.85

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/74301/ft1_filtered_4FGL_J1200.7+2008_daily_bin1767.fits scfile=/scratch/kocevski/74301/ft2_4FGL_J1200.7+2008_daily_bin1767.fits outfile=/scratch/kocevski/74301/cmap_697334401_697593601_4FGL_J1200.7+2008_daily_bin1767.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/74301/ft1_filtered_4FGL_J1200.7+2008_daily_bin1767.fits scfile=/scratch/kocevski/74301/ft2_4FGL_J1200.7+2008_daily_bin1767.fits outfile=/scratch/kocevski/74301/cmap_HighResolution_697334401_697593601_4FGL_J1200.7+2008_daily_bin1767.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.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/74301/ft1_filtered_4FGL_J1200.7+2008_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/74301/ft2_4FGL_J1200.7+2008_daily_bin1767.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/74301/Model_4FGL_J1200.7+2008_daily_bin1767.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/74301/ft1_filtered_4FGL_J1200.7+2008_daily_bin1767.fits.....................!
real 73.70
user 72.24
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/74301/ft1_filtered_4FGL_J1200.7+2008_daily_bin1767.fits', '/scratch/kocevski/74301/ft2_4FGL_J1200.7+2008_daily_bin1767.fits', expMap='/scratch/kocevski/74301/expmap_697334401_697593601_4FGL_J1200.7+2008_daily_bin1767.fits', expCube='/scratch/kocevski/74301/ltcube_697334401_697593601_4FGL_J1200.7+2008_daily_bin1767.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/74301/Model_4FGL_J1200.7+2008_daily_bin1767.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  0.000e+00  1.000e+06 ( 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/74301/ft1_filtered_4FGL_J1200.7+2008_daily_bin1767.fits
Spacecraft file(s): /scratch/kocevski/74301/ft2_4FGL_J1200.7+2008_daily_bin1767.fits
Exposure map: /scratch/kocevski/74301/expmap_697334401_697593601_4FGL_J1200.7+2008_daily_bin1767.fits
Exposure cube: /scratch/kocevski/74301/ltcube_697334401_697593601_4FGL_J1200.7+2008_daily_bin1767.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/74301/Model_4FGL_J1200.7+2008_daily_bin1767.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) = 8269.85322207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.174       1.0000          .0000       .10000E+07
     2 'Prefactor '    12.015       1.0000          .0000       .10000E+07
     3 'Prefactor '    .88157E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    59.436       1.0000          .0000       .10000E+07
     5 'Prefactor '    .37074E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.8721       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11181E-04   1.0000          .0000       .10000E+07
     8 'norm      '    55.759       1.0000          .0000       .10000E+07
     9 'Prefactor '    .10418E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .68492E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    94.392       1.0000          .0000       .10000E+07
    12 'Prefactor '    .30076E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .43171       1.0000          .0000       .10000E+07
    14 'norm      '    11.853       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.9929       1.0000          .0000       .10000E+07
    16 'Prefactor '    .22700E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    9.6070       1.0000          .0000       .10000E+07
    18 'norm      '    .37667       1.0000          .0000       .10000E+07
    19 'norm      '    2.7926       1.0000          .0000       .10000E+07
    20 'Prefactor '    4.6716       1.0000          .0000       .10000E+07
    21 'Prefactor '    11.021       1.0000          .0000       .10000E+07
    22 'Normalizat'    .98317       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93247       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8269.754     FROM MIGRAD    STATUS=CONVERGED    187 CALLS     1538 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.011        10.868       -.18786E-06    .26050E-03
   2  Prefactor     12.323        17.328        .19010E-07   -.76142E-04
   3  Prefactor      .0000        6.5718       -.19983E-06** at limit **
   4  Prefactor     57.795        31.142       -.20926E-06    .11919E-04
   5  Prefactor      .0000        2.9595        .32663E-06** at limit **
   6  Prefactor     2.8932        2.0680       -.26373E-07    .19726E-03
   7  Prefactor     .55511E-10    10.717        .24190E-06** at limit **
   8  norm          55.783        4.0833        .25947E-07   -.17286E-02
   9  Prefactor     .22204E-09    9.1865        .11576E-05** at limit **
  10  Prefactor      .0000        1.4974       -.12892E-06** at limit **
  11  Prefactor     90.933        89.915       -.43576E-06    .41321E-04
  12  Prefactor      .0000        .84219        .66301E-08** at limit **
  13  Prefactor     .43047        1.9016       -.31252E-06    .24876E-03
  14  norm          11.848        4.2373        .67869E-07   -.96778E-03
  15  Prefactor     1.9923        1.8283        .13252E-06   -.12138E-02
  16  Prefactor      .0000        .78806       -.46759E-07** at limit **
  17  Prefactor     9.5960        6.4625        .11933E-06   -.22585E-03
  18  norm          .37596        .25531       -.22806E-07   -.66006E-03
  19  norm          2.7719        3.7943       -.21640E-06    .43017E-03
  20  Prefactor     4.6693        11.301        .43613E-06   -.42199E-03
  21  Prefactor     11.004        9.0562        .61220E-07   -.22049E-03
  22  Normalizat    .98561        .23663        .44984E-05   -.87160E-04
  23  Prefactor     .93194        .22142        .16759E-05   -.88746E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0111
  Prefactor  = 12.3228
  Prefactor  = 0
  Prefactor  = 57.7954
  Prefactor  = 0
  Prefactor  = 2.89324
  Prefactor  = 5.55112e-11
  norm       = 55.7833
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  Prefactor  = 90.9334
  Prefactor  = 0
  Prefactor  = 0.430474
  norm       = 11.8478
  Prefactor  = 1.99229
  Prefactor  = 0
  Prefactor  = 9.59604
  norm       = 0.375958
  norm       = 2.77191
  Prefactor  = 4.66932
  Prefactor  = 11.0038
  Normalizat = 0.985608
  Prefactor  = 0.931941
 **********
 **   18 **HESSE 
 **********

 FCN=   8269.754     FROM HESSE     STATUS=OK           424 CALLS     1962 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.011        10.904        .25686E-03   -1.5630    
   2  Prefactor     12.323        17.270        .28875E-03   -1.5638    
   3  Prefactor      .0000        6.5742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     57.795        31.109        .12972E-03   -1.5556    
   5  Prefactor      .0000        2.9618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8932        2.0802        .59952E-03   -1.5674    
   7  Prefactor     .55511E-10    10.769        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          55.783        4.0806        .13393E-03   -1.5559    
   9  Prefactor     .22204E-09    9.2195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.4955        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     90.933        90.199        .10293E-03   -1.5517    
  12  Prefactor      .0000        .84117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .43047        1.9751        .85901E-03   -1.5695    
  14  norm          11.848        4.2458        .29071E-03   -1.5639    
  15  Prefactor     1.9923        1.8210        .73355E-03   -1.5680    
  16  Prefactor      .0000        .78814        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.5960        6.4800        .32307E-03   -1.5646    
  18  norm          .37596        .26675        .79867E-03   -1.5696    
  19  norm          2.7719        3.8107        .60858E-03   -1.5675    
  20  Prefactor     4.6693        11.295        .46537E-03   -1.5665    
  21  Prefactor     11.004        9.0596        .30154E-03   -1.5642    
  22  Normalizat    .98561        .19379        .71056E-01   -.93514    
  23  Prefactor     .93194        .18165        .72357E-01   -.95034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08786e-08
Minuit parameter uncertainties:
  1  10.9037
  2  17.2702
  3  8.8153e-06
  4  31.1087
  5  7.81309e-06
  6  2.08018
  7  4.4894e-05
  8  4.08056
  9  9.2717e-05
  10  2.36371e-06
  11  90.2002
  12  3.70558e-07
  13  1.84415
  14  4.24585
  15  1.82098
  16  4.13208e-07
  17  6.47996
  18  0.266751
  19  3.81074
  20  11.2955
  21  9.05959
  22  0.19393
  23  0.18177
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  0.000e+00  2.364e-06  0.000e+00  1.000e+06 ( 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:  9.319e-01  1.818e-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.856e-01  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 6.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/74301/likelihoodResults_697334401_697593601_4FGL_J1200.7+2008_daily_bin1767.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) = 8269.75620235
delta logL = -0.0019147089497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8269.75428768
delta logL = -3.8377038436e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14988E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.0433       1.0000          .0000       10.000    
     3 'Normalizat'    .98564       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93190       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=   8269.429     FROM MIGRAD    STATUS=CONVERGED    187 CALLS      407 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73652E-05    .11311E-04    .81283E-05** at limit **
   2  Index        10.0000        2.0823        .40319    ** at limit **
   3  Normalizat    .94184        .18425        .72493E-01    .36435E-05
   4  Prefactor     .96255        .18178        .71357E-01   -.12556E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.36522e-06
  Index      = 10
  Normalizat = 0.941842
  Prefactor  = 0.962546
 **********
 **   18 **HESSE 
 **********

 FCN=   8269.429     FROM HESSE     STATUS=OK            37 CALLS      444 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73652E-05    .10729E-04    .74902E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.9961        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .94184        .22943        .32076E-03   -.95005    
   4  Prefactor     .96255        .22415        .31568E-03   -.93989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6234e-06
Minuit parameter uncertainties:
  1  1.07293e-05
  2  3.56533e-06
  3  0.229669
  4  0.224365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74301': 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) = 8269.42941082
delta logL = 0.324876822335

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  7.365e-06  1.073e-05  0.000e+00  1.000e+06 ( 1.000e-12)
282        Index:  1.000e+01  3.565e-06  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.625e-01  2.244e-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.418e-01  2.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/74301/cmap_HighResolution_697334401_697593601_4FGL_J1200.7+2008_daily_bin1767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2023-02-09 01:16:51.199815', job_id='74301', GAL2='0.96', fit_tolerance='1e-08', EG2='0.94', EG='0.99', time_epoch_completed='1675934211.2', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.25e-01', ts2='0.70', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1767' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Feb  9 01:16:51 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 74301: <4FGL_J1200.7+2008_daily_bin1767> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1767> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Feb  9 01:00:29 2023
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Feb  9 01:03:37 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Feb  9 01:03:37 2023
Terminated at Thu Feb  9 01:16:51 2023
Results reported at Thu Feb  9 01:16:51 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1767 180.187 20.1354 697334401 697593601 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 :                                   744.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            982 sec.

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

