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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1755
RA = 180.173, Dec = 12.4922
tmin = 694224001, tmax = 694483201
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='822137', job_status='RUN', time_executed='2023-01-04 00:57:00.112166', time_epoch_executed='1672822620.11' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822137

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822137/ft1_4FGL_J1200.6+1229_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822137/ft2_4FGL_J1200.6+1229_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822137/ft1_4FGL_J1200.6+1229_daily_bin1755.fits outfile=/scratch/kocevski/822137/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1755.fits ra=180.173 dec=12.4922 rad=12.0 tmin=694224001.0 tmax=694483201.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.02
user 2.81
sys 0.19

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

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

Number of photons that the gtmktime cut: 432

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822137/ft1_filtered_4FGL_J1200.6+1229_daily_bin1755.fits" evtable="EVENTS" scfile=/scratch/kocevski/822137/ft2_4FGL_J1200.6+1229_daily_bin1755.fits sctable="SC_DATA" outfile=/scratch/kocevski/822137/ltcube_694224001_694483201_4FGL_J1200.6+1229_daily_bin1755.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/822137/ft2_4FGL_J1200.6+1229_daily_bin1755.fits
.....................!
real 16.58
user 16.19
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822137/ft1_filtered_4FGL_J1200.6+1229_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/822137/ft2_4FGL_J1200.6+1229_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/822137/ltcube_694224001_694483201_4FGL_J1200.6+1229_daily_bin1755.fits outfile=/scratch/kocevski/822137/expmap_694224001_694483201_4FGL_J1200.6+1229_daily_bin1755.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/822137/ltcube_694224001_694483201_4FGL_J1200.6+1229_daily_bin1755.fits
.....................!
real 191.99
user 186.52
sys 5.06

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/822137/ft1_filtered_4FGL_J1200.6+1229_daily_bin1755.fits scfile=/scratch/kocevski/822137/ft2_4FGL_J1200.6+1229_daily_bin1755.fits outfile=/scratch/kocevski/822137/cmap_694224001_694483201_4FGL_J1200.6+1229_daily_bin1755.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822137/ft1_filtered_4FGL_J1200.6+1229_daily_bin1755.fits scfile=/scratch/kocevski/822137/ft2_4FGL_J1200.6+1229_daily_bin1755.fits outfile=/scratch/kocevski/822137/cmap_HighResolution_694224001_694483201_4FGL_J1200.6+1229_daily_bin1755.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.58
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27617E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .14645E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    12.979       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.5893       1.0000          .0000       .10000E+07
     5 'Prefactor '    .96494E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .43776E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .27480E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    6.8510       1.0000          .0000       .10000E+07
     9 'Prefactor '    .69199E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    59.451       1.0000          .0000       .10000E+07
    11 'Prefactor '    .98454       1.0000          .0000       .10000E+07
    12 'Prefactor '    .16215E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .99507E-04   1.0000          .0000       .10000E+07
    14 'norm      '    1.0025       1.0000          .0000       .10000E+07
    15 'Prefactor '    .81819E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .66199E-01   1.0000          .0000       .10000E+07
    17 'norm      '    .12702E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    5.1341       1.0000          .0000       .10000E+07
    19 'Normalizat'    .81886       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1728       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=   4827.137     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1566 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29965E-06    10.779       -.91264E-07** at limit **
   2  Prefactor     .37753E-06    7.7840        .10150E-05** at limit **
   3  Prefactor     12.989        1.3848        .26292E-07    .11973E-01
   4  Prefactor     .30544E-03    491.23       -.15648E-04** at limit **
   5  Prefactor      .0000        5.0565        .37755E-06** at limit **
   6  Prefactor      .0000        2.8917       -.12688E-06** at limit **
   7  Prefactor     .26035E-07    6.9566       -.31329E-06** at limit **
   8  Prefactor     6.8527        5.2088       -.42291E-07    .72865E-03
   9  Prefactor     .31641E-08    50.008       -.22862E-06** at limit **
  10  Prefactor     60.453        18.646        .55883E-06    .32238    
  11  Prefactor     .97622        2.8126       -.55310E-07    .16406E-02
  12  Prefactor      .0000        1.7090       -.15438E-06** at limit **
  13  Prefactor     .63399E-06    8.6421       -.34089E-06** at limit **
  14  norm          1.0004        2.3813        .62893E-07    .94015E-04
  15  Prefactor     .51181E-07    35.222       -.18344E-05** at limit **
  16  norm          .66484E-01    .23196       -.16454E-07** at limit **
  17  norm          .74496E-07    13.966       -.82709E-06** at limit **
  18  Prefactor     5.1175        9.0897        .19313E-06    .22240E-01
  19  Normalizat    .81849        .22993        .11161E-04    .58558E-04
  20  Prefactor     1.1730        .21809       -.32971E-05    .51507E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.99649e-07
  Prefactor  = 3.77531e-07
  Prefactor  = 12.9886
  Prefactor  = 0.000305439
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.60347e-08
  Prefactor  = 6.85274
  Prefactor  = 3.16414e-09
  Prefactor  = 60.453
  Prefactor  = 0.976219
  Prefactor  = 0
  Prefactor  = 6.33993e-07
  norm       = 1.00036
  Prefactor  = 5.11813e-08
  norm       = 0.0664844
  norm       = 7.4496e-08
  Prefactor  = 5.11751
  Normalizat = 0.818492
  Prefactor  = 1.17305
 **********
 **   18 **HESSE 
 **********

 FCN=   4827.137     FROM HESSE     STATUS=OK           325 CALLS     1891 TOTAL
                     EDM=   .44E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29965E-06    10.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .37753E-06    7.8815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.989        11.570        .27778E-03   -1.5636    
   4  Prefactor     .30544E-03    557.43        .84146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        5.0568        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        2.9029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .26035E-07    6.9651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.8527        5.3093        .38308E-03   -1.5656    
   9  Prefactor     .31641E-08    49.940        .14845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     60.453        46.424        .12970E-03   -1.5552    
  11  Prefactor     .97622        2.8429        .43217E-03   -1.5688    
  12  Prefactor      .0000        1.6882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .63399E-06    8.8005        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0004        2.3992        .43853E-03   -1.5688    
  15  Prefactor     .51181E-07    35.200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .66484E-01    .18326        .13213E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .74496E-07    13.996        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.1175        9.1351        .44346E-03   -1.5663    
  19  Normalizat    .81849        .20237        .43856E-01   -.99386    
  20  Prefactor     1.1730        .18728        .50694E-01   -.87165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40604e-06
Minuit parameter uncertainties:
  1  0.00360577
  2  0.00344982
  3  11.5704
  4  0.82533
  5  1.83561e-05
  6  7.52017e-06
  7  0.000852075
  8  5.30935
  9  0.00079744
  10  46.4244
  11  2.84286
  12  1.16306e-06
  13  0.00472428
  14  2.39922
  15  0.00268399
  16  0.183261
  17  0.00204209
  18  9.13517
  19  0.202553
  20  0.187383
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  2.603e-08  8.521e-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.173e+00  1.874e-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.185e-01  2.026e-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: 6.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/822137/likelihoodResults_694224001_694483201_4FGL_J1200.6+1229_daily_bin1755.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) = 4827.1376715
delta logL = -0.000261674025751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4827.13740994
delta logL = -1.1283736967e-07

Fit tolerance = 1e-08

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

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

 FCN=   4827.137     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      245 TOTAL
                     EDM=   .22E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.7348        .42118E-03** at limit **
   2  Index         3.1122        1.6563        .67843E-05     .0000    
   3  Normalizat    .81849        1.1568        .23737E-05    .14538E-04
   4  Prefactor     1.1730        1.1125       -.31139E-05    .32311E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.11223
  Normalizat = 0.818492
  Prefactor  = 1.17305
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4827.137     FROM HESSE     STATUS=FAILED         9 CALLS      254 TOTAL
                     EDM=   .22E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.7348        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0922        2.1449        .67843E-05   -.38715    
   3  Normalizat    .81849        1.1568        .23737E-05   -.99386    
   4  Prefactor     1.1730        1.1125       -.31139E-05   -.87165    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.181e-12
Minuit parameter uncertainties:
  1  1.12314e-05
  2  1.69383
  3  1.19477
  4  1.13599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822137': 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) = 4827.13740983
delta logL = 1.86992110685e-09

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  0.000e+00  1.123e-05  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  3.112e+00  1.694e+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.173e+00  1.136e+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.185e-01  1.195e+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/822137/cmap_HighResolution_694224001_694483201_4FGL_J1200.6+1229_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.89e-03', job_status='DONE', photon_flux_upper_limit='6.34e-08', time_completed='2023-01-04 01:05:47.040726', job_id='822137', GAL2='1.17', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1672823147.04', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.87e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1755' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 01:05:47 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 822137: <4FGL_J1200.6+1229_daily_bin1755> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1755> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan  4 00:55:16 2023
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 00:55:43 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 00:55:43 2023
Terminated at Wed Jan  4 01:05:47 2023
Results reported at Wed Jan  4 01:05:47 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1755 180.173 12.4922 694224001 694483201 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 :                                   528.57 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   604 sec.
    Turnaround time :                            631 sec.

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

