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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1772
RA = 180.173, Dec = 12.4922
tmin = 698630401, tmax = 698889601
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='630753', job_status='RUN', time_executed='2023-02-24 01:34:12.616143', time_epoch_executed='1677231252.62' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630753

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630753/ft1_4FGL_J1200.6+1229_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630753/ft2_4FGL_J1200.6+1229_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630753/ft1_4FGL_J1200.6+1229_daily_bin1772.fits outfile=/scratch/kocevski/630753/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1772.fits ra=180.173 dec=12.4922 rad=12.0 tmin=698630401.0 tmax=698889601.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 2.97
user 2.79
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/630753/ft2_4FGL_J1200.6+1229_daily_bin1772.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/630753/ft2_4FGL_J1200.6+1229_daily_bin1772.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/630753/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1772.fits evtable="EVENTS" outfile="/scratch/kocevski/630753/ft1_filtered_4FGL_J1200.6+1229_daily_bin1772.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.34
sys 0.13

Number of photons that the gtmktime cut: 72

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/630753/ft1_filtered_4FGL_J1200.6+1229_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/630753/ft2_4FGL_J1200.6+1229_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/630753/ltcube_698630401_698889601_4FGL_J1200.6+1229_daily_bin1772.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/630753/ft2_4FGL_J1200.6+1229_daily_bin1772.fits
.....................!
real 12.58
user 12.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630753/ft1_filtered_4FGL_J1200.6+1229_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/630753/ft2_4FGL_J1200.6+1229_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/630753/ltcube_698630401_698889601_4FGL_J1200.6+1229_daily_bin1772.fits outfile=/scratch/kocevski/630753/expmap_698630401_698889601_4FGL_J1200.6+1229_daily_bin1772.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/630753/ltcube_698630401_698889601_4FGL_J1200.6+1229_daily_bin1772.fits
.....................!
real 190.62
user 185.47
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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1200.6+1229 @ 180.173 12.4922

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/630753/ft1_filtered_4FGL_J1200.6+1229_daily_bin1772.fits scfile=/scratch/kocevski/630753/ft2_4FGL_J1200.6+1229_daily_bin1772.fits outfile=/scratch/kocevski/630753/cmap_698630401_698889601_4FGL_J1200.6+1229_daily_bin1772.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.173 yref=12.4922 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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630753/ft1_filtered_4FGL_J1200.6+1229_daily_bin1772.fits scfile=/scratch/kocevski/630753/ft2_4FGL_J1200.6+1229_daily_bin1772.fits outfile=/scratch/kocevski/630753/cmap_HighResolution_698630401_698889601_4FGL_J1200.6+1229_daily_bin1772.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.173 yref=12.4922 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/630753/ft1_filtered_4FGL_J1200.6+1229_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/630753/ft2_4FGL_J1200.6+1229_daily_bin1772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/630753/Model_4FGL_J1200.6+1229_daily_bin1772.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/630753/ft1_filtered_4FGL_J1200.6+1229_daily_bin1772.fits........................!
real 19.63
user 18.46
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/630753/ft1_filtered_4FGL_J1200.6+1229_daily_bin1772.fits', '/scratch/kocevski/630753/ft2_4FGL_J1200.6+1229_daily_bin1772.fits', expMap='/scratch/kocevski/630753/expmap_698630401_698889601_4FGL_J1200.6+1229_daily_bin1772.fits', expCube='/scratch/kocevski/630753/ltcube_698630401_698889601_4FGL_J1200.6+1229_daily_bin1772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/630753/Model_4FGL_J1200.6+1229_daily_bin1772.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.6+1229'

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  3.077e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/630753/ft1_filtered_4FGL_J1200.6+1229_daily_bin1772.fits
Spacecraft file(s): /scratch/kocevski/630753/ft2_4FGL_J1200.6+1229_daily_bin1772.fits
Exposure map: /scratch/kocevski/630753/expmap_698630401_698889601_4FGL_J1200.6+1229_daily_bin1772.fits
Exposure cube: /scratch/kocevski/630753/ltcube_698630401_698889601_4FGL_J1200.6+1229_daily_bin1772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/630753/Model_4FGL_J1200.6+1229_daily_bin1772.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) = 865.953850672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17778E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .19228       1.0000          .0000       .10000E+07
     3 'Prefactor '    .37064E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .10001       1.0000          .0000       .10000E+07
     5 'Prefactor '    .46313E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .41136       1.0000          .0000       .10000E+07
     7 'Prefactor '    80.830       1.0000          .0000       .10000E+07
     8 'Prefactor '    .39037E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    6.6377       1.0000          .0000       .10000E+07
    10 'Prefactor '    234.98       1.0000          .0000       .10000E+07
    11 'Prefactor '    .41280E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .11732E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    22.818       1.0000          .0000       .10000E+07
    14 'norm      '    .14100E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    156.42       1.0000          .0000       .10000E+07
    16 'norm      '    .37638       1.0000          .0000       .10000E+07
    17 'norm      '    .23344E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .14027E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.1040       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .66817       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   865.7084     FROM MIGRAD    STATUS=CONVERGED    218 CALLS     1623 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        162.32        .11642E-07** at limit **
   2  Prefactor      .0000        125.60       -.14408E-07** at limit **
   3  Prefactor     .11102E-09    23.647        .24223E-08** at limit **
   4  Prefactor     .21261E-07    1025.7       -.25909E-06** at limit **
   5  Prefactor     .55511E-10    20.863        .80918E-08** at limit **
   6  Prefactor     .72323E-04    637.67       -.71049E-06** at limit **
   7  Prefactor     89.971        94.081       -.16132E-06   -.79453E-01
   8  Prefactor      .0000        7.0181       -.85329E-09** at limit **
   9  Prefactor     .35746E-05    176.15       -.88341E-07** at limit **
  10  Prefactor     244.77        203.50        .85187E-06   -.47823E-01
  11  Prefactor      .0000        12.425        .47252E-09** at limit **
  12  Prefactor      .0000        6.9459       -.47546E-09** at limit **
  13  Prefactor     16.514        46.162       -.27401E-06   -.87459E-01
  14  norm           .0000        7.8809       -.45377E-09** at limit **
  15  Prefactor     170.15        127.14       -.52641E-07    .46413E-02
  16  norm          .39188        .81818       -.18175E-07   -.20150E-03
  17  norm           .0000        46.397        .12264E-09** at limit **
  18  Prefactor      .0000        11.341       -.19340E-08** at limit **
  19  Normalizat    1.1014        .62698       -.22541E-05    .24530E-04
  20  Prefactor     .65498        .55434        .60720E-05    .26770E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 2.12608e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 7.23225e-05
  Prefactor  = 89.9713
  Prefactor  = 0
  Prefactor  = 3.57464e-06
  Prefactor  = 244.771
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 16.514
  norm       = 0
  Prefactor  = 170.155
  norm       = 0.391878
  norm       = 0
  Prefactor  = 0
  Normalizat = 1.10135
  Prefactor  = 0.654984
 **********
 **   18 **HESSE 
 **********

 FCN=   865.7084     FROM HESSE     STATUS=OK           325 CALLS     1948 TOTAL
                     EDM=   .47E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        162.31        .17187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        125.52        .11915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .11102E-09    23.622        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .21261E-07    1022.9        .13929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    20.762        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .72323E-04    97.135        .88182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     89.971        105.71        .11123E-03   -1.5518    
   8  Prefactor      .0000        7.0190        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .35746E-05    176.74        .38926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     244.77        225.20        .65243E-04   -1.5395    
  11  Prefactor      .0000        12.468        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.9349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.514        117.15        .20940E-03   -1.5627    
  14  norm           .0000        7.8275        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     170.15        128.10        .79964E-04   -1.5447    
  16  norm          .39188        .84268        .76581E-03   -1.5695    
  17  norm           .0000        46.448        .16826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        11.354        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1014        .53485        .61693E-01   -.89708    
  20  Prefactor     .65498        .47725        .67094E-01   -1.0532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65317e-06
Minuit parameter uncertainties:
  1  1.68163e-06
  2  0.0001123
  3  9.78051e-05
  4  0.00932767
  5  7.70937e-05
  6  0.167634
  7  105.713
  8  5.23786e-06
  9  0.0502723
  10  225.203
  11  8.56456e-06
  12  3.90476e-06
  13  87.9706
  14  9.94785e-06
  15  128.098
  16  0.842676
  17  9.00333e-06
  18  1.01564e-07
  19  0.537512
  20  0.480261
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  8.997e+01  1.057e+02  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  6.550e-01  4.803e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  1.101e+00  5.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 180.173 12.492
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.94e-07 +/- 2.27e-07
Energy Flux (Fixed Index): 6.46e-05 +/- 7.58e-05

TS (Fixed Index): 1.02
Ra Dec: 180.173 12.492
Photon Flux Upper Limit: 7.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.53e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/630753/likelihoodResults_698630401_698889601_4FGL_J1200.6+1229_daily_bin1772.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) = 865.167574547
delta logL = 0.540799311347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 865.028616795
delta logL = 0.679757063646

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    160.58       1.0000          .0000       .10000E+07
     2 'Index     '    1.6263       1.0000          .0000       10.000    
     3 'Normalizat'    1.1898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57507       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   865.0286     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      224 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     160.17        148.40       -.39713E-05    .34375E-03
   2  Index         1.6261        .55973       -.14792E-03    .14438E-04
   3  Normalizat    1.1888        .52737        .48654E-05    .23134E-03
   4  Prefactor     .57558        .45483        .12030E-04    .18615E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 160.165
  Index      = 1.6261
  Normalizat = 1.18877
  Prefactor  = 0.575584
 **********
 **   18 **HESSE 
 **********

 FCN=   865.0286     FROM HESSE     STATUS=OK            27 CALLS      251 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     160.17        147.82        .15784E-04   -1.5455    
   2  Index         1.6261        .55763        .40651E-02   -.74067    
   3  Normalizat    1.1888        .61873        .26319E-03   -.86950    
   4  Prefactor     .57558        .53138        .31260E-03   -1.0862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59558e-10
Minuit parameter uncertainties:
  1  147.828
  2  0.559776
  3  0.622597
  4  0.5361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630753': 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) = 865.028609893
delta logL = 0.679763965031

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.602e+02  1.478e+02  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  1.626e+00  5.598e-01  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  5.756e-01  5.361e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  1.189e+00  6.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.42
Ra Dec: 180.173 12.492
Photon Index (Free Index): 1.63 +/- 0.56
Photon Flux (Free Index): 1.22e-07 +/- 1.41e-07
Energy Flux (Free Index): 2.54e-04 +/- 3.64e-04

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/630753/cmap_HighResolution_698630401_698889601_4FGL_J1200.6+1229_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-02', comment='SUCCESS', photon_flux='1.94e-07', energy_flux2='2.54e-04', photon_flux_error='2.27e-07', dlogl='6.80e-01', energy_flux='6.46e-05', photon_flux2='1.22e-07', job_status='DONE', time_completed='2023-02-24 01:40:06.034940', photon_index_error2='0.56', photon_index2='1.63', ts='1.02', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='7.16e-07', energy_flux_error2='3.64e-04', EG='1.10', time_epoch_completed='1677231606.03', return_code='0', job_id='630753', GAL2='0.58', EG2='1.19', return_code2='0', energy_flux_error='7.58e-05', photon_flux_error2='1.41e-07', ts2='2.42', photon_index='2.39' WHERE bin_id='1772' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:40:06 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 630753: <4FGL_J1200.6+1229_daily_bin1772> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1772> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Feb 24 01:30:21 2023
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 01:30:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 01:30:22 2023
Terminated at Fri Feb 24 01:40:06 2023
Results reported at Fri Feb 24 01:40:06 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1772 180.173 12.4922 698630401 698889601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.6+1229 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   356.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   584 sec.
    Turnaround time :                            585 sec.

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

