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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1776
RA = 180.187, Dec = 20.1354
tmin = 699667201, tmax = 699926401
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='832495', job_status='RUN', time_executed='2023-03-08 00:38:19.529841', time_epoch_executed='1678264699.53' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/832495

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/832495/ft1_4FGL_J1200.7+2008_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/832495/ft2_4FGL_J1200.7+2008_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/832495/ft1_4FGL_J1200.7+2008_daily_bin1776.fits outfile=/scratch/kocevski/832495/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1776.fits ra=180.187 dec=20.1354 rad=12.0 tmin=699667201.0 tmax=699926401.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.91
user 3.68
sys 0.19

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

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

Number of photons that the gtmktime cut: 620

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/832495/ft1_filtered_4FGL_J1200.7+2008_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/832495/ft2_4FGL_J1200.7+2008_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/832495/ltcube_699667201_699926401_4FGL_J1200.7+2008_daily_bin1776.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/832495/ft2_4FGL_J1200.7+2008_daily_bin1776.fits
.....................!
real 12.31
user 11.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/832495/ft1_filtered_4FGL_J1200.7+2008_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/832495/ft2_4FGL_J1200.7+2008_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/832495/ltcube_699667201_699926401_4FGL_J1200.7+2008_daily_bin1776.fits outfile=/scratch/kocevski/832495/expmap_699667201_699926401_4FGL_J1200.7+2008_daily_bin1776.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/832495/ltcube_699667201_699926401_4FGL_J1200.7+2008_daily_bin1776.fits
.....................!
real 192.60
user 186.35
sys 4.96

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/832495/ft1_filtered_4FGL_J1200.7+2008_daily_bin1776.fits scfile=/scratch/kocevski/832495/ft2_4FGL_J1200.7+2008_daily_bin1776.fits outfile=/scratch/kocevski/832495/cmap_699667201_699926401_4FGL_J1200.7+2008_daily_bin1776.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/832495/ft1_filtered_4FGL_J1200.7+2008_daily_bin1776.fits scfile=/scratch/kocevski/832495/ft2_4FGL_J1200.7+2008_daily_bin1776.fits outfile=/scratch/kocevski/832495/cmap_HighResolution_699667201_699926401_4FGL_J1200.7+2008_daily_bin1776.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/832495/ft1_filtered_4FGL_J1200.7+2008_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/832495/ft2_4FGL_J1200.7+2008_daily_bin1776.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/832495/Model_4FGL_J1200.7+2008_daily_bin1776.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/832495/ft1_filtered_4FGL_J1200.7+2008_daily_bin1776.fits....................!
real 63.95
user 62.16
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/832495/ft1_filtered_4FGL_J1200.7+2008_daily_bin1776.fits', '/scratch/kocevski/832495/ft2_4FGL_J1200.7+2008_daily_bin1776.fits', expMap='/scratch/kocevski/832495/expmap_699667201_699926401_4FGL_J1200.7+2008_daily_bin1776.fits', expCube='/scratch/kocevski/832495/ltcube_699667201_699926401_4FGL_J1200.7+2008_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/832495/Model_4FGL_J1200.7+2008_daily_bin1776.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/832495/ft1_filtered_4FGL_J1200.7+2008_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/832495/ft2_4FGL_J1200.7+2008_daily_bin1776.fits
Exposure map: /scratch/kocevski/832495/expmap_699667201_699926401_4FGL_J1200.7+2008_daily_bin1776.fits
Exposure cube: /scratch/kocevski/832495/ltcube_699667201_699926401_4FGL_J1200.7+2008_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/832495/Model_4FGL_J1200.7+2008_daily_bin1776.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) = 6770.69499672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9317       1.0000          .0000       .10000E+07
     2 'Prefactor '    .60153E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.4194       1.0000          .0000       .10000E+07
     4 'Prefactor '    .19325E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    8.9156       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.5786       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14278E-02   1.0000          .0000       .10000E+07
     8 'norm      '    27.249       1.0000          .0000       .10000E+07
     9 'Prefactor '    .25431E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .31829E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .57671E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .45507E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    3.1555       1.0000          .0000       .10000E+07
    14 'norm      '    3.5651       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.5159       1.0000          .0000       .10000E+07
    16 'Prefactor '    7.3847       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.9309       1.0000          .0000       .10000E+07
    18 'norm      '    .72789E-01   1.0000          .0000       .10000E+07
    19 'norm      '    .15505E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    14.011       1.0000          .0000       .10000E+07
    21 'Prefactor '    .14000E-05   1.0000          .0000       .10000E+07
    22 'Normalizat'    .63520       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.4448       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=   6770.631     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     1485 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9922        8.3978        .53449E-06    .76005E-02
   2  Prefactor     .22049E-06    22.444        .23601E-06** at limit **
   3  Prefactor     4.1651        3.6090        .97603E-07   -.97308E-01
   4  Prefactor     .12101E-07    5.9222        .83061E-06** at limit **
   5  Prefactor     8.9007        1.1564       -.35262E-07   -.22496E-02
   6  Prefactor     1.5754        1.5404        .69176E-07   -.31309E-02
   7  Prefactor     .11713E-07    4.6918       -.49984E-07** at limit **
   8  norm          27.256        2.9265        .31251E-07    .42730E-02
   9  Prefactor     .88762E-07    13.899        .35820E-06** at limit **
  10  Prefactor      .0000        1.6375       -.31500E-06** at limit **
  11  Prefactor     .94424E-07    30.725       -.28869E-05** at limit **
  12  Prefactor      .0000        .95631       -.14893E-06** at limit **
  13  Prefactor     3.1637        3.0957        .90106E-06    .45037E-03
  14  norm          3.5551        2.5616        .28198E-07    .25715E-03
  15  Prefactor     1.5174        1.5358        .20169E-06   -.30053E-03
  16  Prefactor     7.3760        2.7544        .57181E-06    .16246E-03
  17  Prefactor     1.9288        3.5351        .42277E-06    .20500E-02
  18  norm          .72722E-01    .15235       -.98334E-07** at limit **
  19  norm          .19429E-07    4.3888        .78465E-06** at limit **
  20  Prefactor     13.996        1.1173       -.30210E-07   -.60163E-02
  21  Prefactor     .50515E-08    3.8195        .40419E-06** at limit **
  22  Normalizat    .63572        .21464       -.15325E-04    .32876E-04
  23  Prefactor     1.4447        .22648        .76471E-05    .33819E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.99218
  Prefactor  = 2.2049e-07
  Prefactor  = 4.16506
  Prefactor  = 1.21014e-08
  Prefactor  = 8.90073
  Prefactor  = 1.57543
  Prefactor  = 1.17129e-08
  norm       = 27.2562
  Prefactor  = 8.87623e-08
  Prefactor  = 0
  Prefactor  = 9.44245e-08
  Prefactor  = 0
  Prefactor  = 3.16371
  norm       = 3.55507
  Prefactor  = 1.51736
  Prefactor  = 7.37604
  Prefactor  = 1.92881
  norm       = 0.0727221
  norm       = 1.94289e-08
  Prefactor  = 13.9961
  Prefactor  = 5.05151e-09
  Normalizat = 0.635725
  Prefactor  = 1.44474
 **********
 **   18 **HESSE 
 **********

 FCN=   6770.631     FROM HESSE     STATUS=OK           420 CALLS     1905 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9922        8.4381        .33513E-03   -1.5648    
   2  Prefactor     .22049E-06    22.785        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.1651        13.627        .47880E-03   -1.5667    
   4  Prefactor     .12101E-07    5.9549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.9007        9.9916        .33544E-03   -1.5648    
   6  Prefactor     1.5754        1.5619        .84515E-03   -1.5683    
   7  Prefactor     .11713E-07    4.7221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          27.256        2.9312        .19161E-03   -1.5604    
   9  Prefactor     .88762E-07    14.072        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.6287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .94424E-07    30.948        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        .95626        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1637        3.1116        .57035E-03   -1.5672    
  14  norm          3.5551        2.5594        .53502E-03   -1.5670    
  15  Prefactor     1.5174        1.5250        .86788E-03   -1.5683    
  16  Prefactor     7.3760        2.7590        .36884E-03   -1.5654    
  17  Prefactor     1.9288        3.5765        .74716E-03   -1.5680    
  18  norm          .72722E-01    .16274        .10153E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .19429E-07    4.3792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.996        10.105        .26733E-03   -1.5633    
  21  Prefactor     .50515E-08    3.8349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .63572        .18723        .77526E-01   -1.0649    
  23  Prefactor     1.4447        .19362        .57220E-01   -.79099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45213e-07
Minuit parameter uncertainties:
  1  8.43812
  2  0.00448279
  3  13.6269
  4  0.00053705
  5  9.99157
  6  1.56193
  7  0.000470488
  8  2.93124
  9  0.00223557
  10  4.49856e-06
  11  0.00341845
  12  5.52878e-06
  13  3.11165
  14  2.55941
  15  1.52503
  16  2.75898
  17  3.57654
  18  0.162737
  19  0.000583424
  20  10.1049
  21  0.00027787
  22  0.187417
  23  0.193723
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  0.000e+00  4.499e-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:  1.445e+00  1.937e-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:  6.357e-01  1.874e-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: 5.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/832495/likelihoodResults_699667201_699926401_4FGL_J1200.7+2008_daily_bin1776.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) = 6770.63317185
delta logL = -0.00168834777742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6770.63148816
delta logL = -4.65758603241e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10735E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .98614       1.0000          .0000       10.000    
     3 'Normalizat'    .63568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4445       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6770.631     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      257 TOTAL
                     EDM=   .70E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.5455        .42118E-03** at limit **
   2  Index         2.7862        1.9941       -.20520E-04     .0000    
   3  Normalizat    .63572        .97432       -.30180E-06   -.59002E-05
   4  Prefactor     1.4447        1.0549        .21863E-06   -.20284E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.78616
  Normalizat = 0.635725
  Prefactor  = 1.44474
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6770.631     FROM HESSE     STATUS=FAILED         9 CALLS      266 TOTAL
                     EDM=   .70E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.5455        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .87930        2.1379       -.20520E-04   -.45868    
   3  Normalizat    .63572        .97432       -.30180E-06   -1.0649    
   4  Prefactor     1.4447        1.0549        .21863E-06   -.79099    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.01547e-13
Minuit parameter uncertainties:
  1  1.85637e-06
  2  2.06646
  3  1.00275
  4  1.07138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/832495': 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): 101
logL (Free Index) = 6770.6314835
delta logL = 9.09494701773e-13

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  0.000e+00  1.856e-06  0.000e+00  1.000e+06 ( 1.000e-12)
282        Index:  2.786e+00  2.066e+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:  1.445e+00  1.071e+00  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:  6.357e-01  1.003e+00  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/832495/cmap_HighResolution_699667201_699926401_4FGL_J1200.7+2008_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', job_status='DONE', photon_flux_upper_limit='5.99e-08', time_completed='2023-03-08 00:48:48.208842', job_id='832495', GAL2='1.44', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1678265328.21', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.44', dlogl='9.09e-13', ts2='0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1776' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:48:48 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 832495: <4FGL_J1200.7+2008_daily_bin1776> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1776> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Mar  8 00:35:23 2023
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:35:24 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:35:24 2023
Terminated at Wed Mar  8 00:48:50 2023
Results reported at Wed Mar  8 00:48:50 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1776 180.187 20.1354 699667201 699926401 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 :                                   624.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            807 sec.

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

