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 54 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.6+1229_daily_bin1776
RA = 180.173, Dec = 12.4922
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='832493', job_status='RUN', time_executed='2023-03-08 00:36:29.797519', time_epoch_executed='1678264589.8' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/832493

Creating custom pfile directory:
/scratch/kocevski/832493/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/832493/ft1_4FGL_J1200.6+1229_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/832493/ft2_4FGL_J1200.6+1229_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/832493/ft1_4FGL_J1200.6+1229_daily_bin1776.fits outfile=/scratch/kocevski/832493/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1776.fits ra=180.173 dec=12.4922 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.98
user 3.67
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/832493/ft2_4FGL_J1200.6+1229_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/832493/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1776.fits evtable="EVENTS" outfile="/scratch/kocevski/832493/ft1_filtered_4FGL_J1200.6+1229_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.52
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 478

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/832493/ft1_filtered_4FGL_J1200.6+1229_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/832493/ft2_4FGL_J1200.6+1229_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/832493/ltcube_699667201_699926401_4FGL_J1200.6+1229_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/832493/ft2_4FGL_J1200.6+1229_daily_bin1776.fits
.....................!
real 16.98
user 16.51
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/832493/ft1_filtered_4FGL_J1200.6+1229_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/832493/ft2_4FGL_J1200.6+1229_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/832493/ltcube_699667201_699926401_4FGL_J1200.6+1229_daily_bin1776.fits outfile=/scratch/kocevski/832493/expmap_699667201_699926401_4FGL_J1200.6+1229_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/832493/ltcube_699667201_699926401_4FGL_J1200.6+1229_daily_bin1776.fits
.....................!
real 195.40
user 189.30
sys 5.31

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/832493/ft1_filtered_4FGL_J1200.6+1229_daily_bin1776.fits scfile=/scratch/kocevski/832493/ft2_4FGL_J1200.6+1229_daily_bin1776.fits outfile=/scratch/kocevski/832493/cmap_699667201_699926401_4FGL_J1200.6+1229_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.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/832493/ft1_filtered_4FGL_J1200.6+1229_daily_bin1776.fits scfile=/scratch/kocevski/832493/ft2_4FGL_J1200.6+1229_daily_bin1776.fits outfile=/scratch/kocevski/832493/cmap_HighResolution_699667201_699926401_4FGL_J1200.6+1229_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.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/832493/ft1_filtered_4FGL_J1200.6+1229_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/832493/ft2_4FGL_J1200.6+1229_daily_bin1776.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/832493/Model_4FGL_J1200.6+1229_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/832493/ft1_filtered_4FGL_J1200.6+1229_daily_bin1776.fits.....................!
real 54.06
user 51.83
sys 1.50

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18030E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.2981       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.142       1.0000          .0000       .10000E+07
     4 'Prefactor '    103.12       1.0000          .0000       .10000E+07
     5 'Prefactor '    .25223E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .22868E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .20605E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .75495E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    .11343       1.0000          .0000       .10000E+07
    10 'Prefactor '    .56582E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .81046E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.3404       1.0000          .0000       .10000E+07
    13 'Prefactor '    .43187E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .67790E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .47817E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .10029       1.0000          .0000       .10000E+07
    17 'norm      '    .40088E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    14.742       1.0000          .0000       .10000E+07
    19 'Normalizat'    .89527       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1250       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=   5457.254     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     1534 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    5.5815        .10241E-07** at limit **
   2  Prefactor     2.3065        15.314       -.26209E-06    .70113E-02
   3  Prefactor     10.130        7.7335        .33030E-06   -.65282E-02
   4  Prefactor     101.80        117.79       -.29797E-05    .32511E-02
   5  Prefactor      .0000        4.8550        .15760E-06** at limit **
   6  Prefactor      .0000        3.3049       -.27739E-07** at limit **
   7  Prefactor     .11657E-08    13.094       -.39923E-06** at limit **
   8  Prefactor      .0000        1.7272       -.28219E-06** at limit **
   9  Prefactor      .0000        29.838        .27850E-07** at limit **
  10  Prefactor      .0000        24.082       -.94630E-07** at limit **
  11  Prefactor      .0000        .98265       -.16269E-06** at limit **
  12  Prefactor     3.3383        3.1356       -.19685E-07    .99170E-03
  13  Prefactor     .19061E-05    3.6175        .15960E-06** at limit **
  14  norm          .55511E-10    136.57       -.10388E-04** at limit **
  15  Prefactor     .25352E-06    8.6260       -.36564E-06** at limit **
  16  norm          .10026        .16422        .72175E-07** at limit **
  17  norm          .78121E-06    7.6236        .49794E-06** at limit **
  18  Prefactor     14.732        7.0194        .25838E-06    .21228E-01
  19  Normalizat    .89564        .22289       -.10132E-04   -.28347E-03
  20  Prefactor     1.1251        .20783       -.12566E-06   -.30529E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  Prefactor  = 2.30648
  Prefactor  = 10.1297
  Prefactor  = 101.795
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.16573e-09
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 3.33834
  Prefactor  = 1.90609e-06
  norm       = 5.55112e-11
  Prefactor  = 2.53519e-07
  norm       = 0.100264
  norm       = 7.81208e-07
  Prefactor  = 14.7325
  Normalizat = 0.895635
  Prefactor  = 1.12508
 **********
 **   18 **HESSE 
 **********

 FCN=   5457.254     FROM HESSE     STATUS=OK           327 CALLS     1861 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    5.6010        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.3065        15.506        .67672E-03   -1.5678    
   3  Prefactor     10.130        10.274        .31440E-03   -1.5644    
   4  Prefactor     101.80        118.02        .98483E-04   -1.5506    
   5  Prefactor      .0000        4.8625        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        3.3100        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11657E-08    13.140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        1.7155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        29.845        .13582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        24.039        .15287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        .97986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.3383        3.1420        .55353E-03   -1.5671    
  13  Prefactor     .19061E-05    9.9276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55511E-10    2.1515        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .25352E-06    9.4842        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10026        .18316        .84033E-03   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .78121E-06    10.151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.732        10.207        .26060E-03   -1.5631    
  19  Normalizat    .89564        .19586        .44841E-01   -.96614    
  20  Prefactor     1.1251        .18095        .36705E-01   -.88669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07277e-07
Minuit parameter uncertainties:
  1  3.21352e-05
  2  11.9607
  3  10.2739
  4  118.027
  5  1.061e-06
  6  3.85969e-06
  7  0.000245842
  8  1.13415e-05
  9  1.93545e-05
  10  8.67959e-06
  11  4.26486e-06
  12  3.14198
  13  0.00870014
  14  2.46408e-05
  15  0.00310113
  16  0.183163
  17  0.00563213
  18  10.2065
  19  0.196014
  20  0.181053
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.166e-09  2.458e-04  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:  1.125e+00  1.811e-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:  8.956e-01  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.173 12.492
Photon Flux Upper Limit: 7.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/832493/likelihoodResults_699667201_699926401_4FGL_J1200.6+1229_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) = 5457.25369888
delta logL = -0.000151012672177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5457.2535483
delta logL = -4.3306772568e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35894E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .67642       1.0000          .0000       10.000    
     3 'Normalizat'    .89556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1252       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=   5457.254     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      247 TOTAL
                     EDM=   .43E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        12.210        .20457E-07** at limit **
   2  Index         2.1891        6.0325        .19159E-04     .0000    
   3  Normalizat    .89564        .21765       -.82682E-05   -.16342E-04
   4  Prefactor     1.1251        .20701        .54256E-05   -.66880E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.18907
  Normalizat = 0.895636
  Prefactor  = 1.12508
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5457.254     FROM HESSE     STATUS=FAILED        11 CALLS      258 TOTAL
                     EDM=   .43E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.191        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .52813        1.9062        .19159E-04   -.59703    
   3  Normalizat    .89564        1.2311       -.82682E-05   -.96614    
   4  Prefactor     1.1251        1.1338        .54256E-05   -.88669    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.27527e-13
Minuit parameter uncertainties:
  1  1.38578e-06
  2  1.7403
  3  1.2734
  4  1.15965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/832493': 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) = 5457.25354787
delta logL = 1.00044417195e-10

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  0.000e+00  1.386e-06  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  2.189e+00  1.740e+00  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:  1.125e+00  1.160e+00  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:  8.956e-01  1.273e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.173 12.492

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/832493/cmap_HighResolution_699667201_699926401_4FGL_J1200.6+1229_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.58e-03', job_status='DONE', photon_flux_upper_limit='7.23e-08', time_completed='2023-03-08 00:45:49.129850', job_id='832493', GAL2='1.13', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1678265149.13', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.00e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1776' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:45:49 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 832493: <4FGL_J1200.6+1229_daily_bin1776> in cluster <slac> Done

Job <4FGL_J1200.6+1229_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) <bullet0109>, 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:45:49 2023
Results reported at Wed Mar  8 00:45:49 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1776 180.173 12.4922 699667201 699926401 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 :                                   558.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   625 sec.
    Turnaround time :                            626 sec.

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

