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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin1747
RA = 180.055, Dec = 2.0172
tmin = 692150401, tmax = 692409601
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='798410', job_status='RUN', time_executed='2022-12-11 00:46:25.512385', time_epoch_executed='1670748385.51' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/798410

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/798410/ft1_4FGL_J1200.2+0201_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/798410/ft2_4FGL_J1200.2+0201_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/798410/ft1_4FGL_J1200.2+0201_daily_bin1747.fits outfile=/scratch/kocevski/798410/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin1747.fits ra=180.055 dec=2.0172 rad=12.0 tmin=692150401.0 tmax=692409601.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 4.01
user 3.81
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/798410/ft2_4FGL_J1200.2+0201_daily_bin1747.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/798410/ft2_4FGL_J1200.2+0201_daily_bin1747.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/798410/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/798410/ft1_filtered_4FGL_J1200.2+0201_daily_bin1747.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 710

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/798410/ft1_filtered_4FGL_J1200.2+0201_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/798410/ft2_4FGL_J1200.2+0201_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/798410/ltcube_692150401_692409601_4FGL_J1200.2+0201_daily_bin1747.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/798410/ft2_4FGL_J1200.2+0201_daily_bin1747.fits
.....................!
real 12.11
user 11.76
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/798410/ft1_filtered_4FGL_J1200.2+0201_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/798410/ft2_4FGL_J1200.2+0201_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/798410/ltcube_692150401_692409601_4FGL_J1200.2+0201_daily_bin1747.fits outfile=/scratch/kocevski/798410/expmap_692150401_692409601_4FGL_J1200.2+0201_daily_bin1747.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/798410/ltcube_692150401_692409601_4FGL_J1200.2+0201_daily_bin1747.fits
.....................!
real 193.27
user 187.75
sys 5.17

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 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1200.2+0201 @ 180.055 2.0172

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/798410/ft1_filtered_4FGL_J1200.2+0201_daily_bin1747.fits scfile=/scratch/kocevski/798410/ft2_4FGL_J1200.2+0201_daily_bin1747.fits outfile=/scratch/kocevski/798410/cmap_692150401_692409601_4FGL_J1200.2+0201_daily_bin1747.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.055 yref=2.0172 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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/798410/ft1_filtered_4FGL_J1200.2+0201_daily_bin1747.fits scfile=/scratch/kocevski/798410/ft2_4FGL_J1200.2+0201_daily_bin1747.fits outfile=/scratch/kocevski/798410/cmap_HighResolution_692150401_692409601_4FGL_J1200.2+0201_daily_bin1747.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.055 yref=2.0172 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/798410/ft1_filtered_4FGL_J1200.2+0201_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/798410/ft2_4FGL_J1200.2+0201_daily_bin1747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/798410/Model_4FGL_J1200.2+0201_daily_bin1747.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/798410/ft1_filtered_4FGL_J1200.2+0201_daily_bin1747.fits.....................!
real 69.45
user 68.12
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/798410/ft1_filtered_4FGL_J1200.2+0201_daily_bin1747.fits', '/scratch/kocevski/798410/ft2_4FGL_J1200.2+0201_daily_bin1747.fits', expMap='/scratch/kocevski/798410/expmap_692150401_692409601_4FGL_J1200.2+0201_daily_bin1747.fits', expCube='/scratch/kocevski/798410/ltcube_692150401_692409601_4FGL_J1200.2+0201_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/798410/Model_4FGL_J1200.2+0201_daily_bin1747.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.2+0201'

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.346e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/798410/ft1_filtered_4FGL_J1200.2+0201_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/798410/ft2_4FGL_J1200.2+0201_daily_bin1747.fits
Exposure map: /scratch/kocevski/798410/expmap_692150401_692409601_4FGL_J1200.2+0201_daily_bin1747.fits
Exposure cube: /scratch/kocevski/798410/ltcube_692150401_692409601_4FGL_J1200.2+0201_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/798410/Model_4FGL_J1200.2+0201_daily_bin1747.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) = 7822.30294935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21496E-04   1.0000          .0000       .10000E+07
     2 'norm      '    11.500       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6970       1.0000          .0000       .10000E+07
     4 'Prefactor '    .97277E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .78201E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.4390       1.0000          .0000       .10000E+07
     7 'Prefactor '    .12887       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.9898       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12702E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.7842       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.1087       1.0000          .0000       .10000E+07
    12 'Prefactor '    .31126       1.0000          .0000       .10000E+07
    13 'Prefactor '    .14633E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .32212E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    7.2340       1.0000          .0000       .10000E+07
    16 'Prefactor '    .63373E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    3.3651       1.0000          .0000       .10000E+07
    18 'norm      '    .17203E-02   1.0000          .0000       .10000E+07
    19 'norm      '    7.2331       1.0000          .0000       .10000E+07
    20 'Prefactor '    .22434E-02   1.0000          .0000       .10000E+07
    21 'norm      '    12.298       1.0000          .0000       .10000E+07
    22 'norm      '    .72539       1.0000          .0000       .10000E+07
    23 'Prefactor '    .64245E-04   1.0000          .0000       .10000E+07
    24 'norm      '    .36450       1.0000          .0000       .10000E+07
    25 'Prefactor '    17.102       1.0000          .0000       .10000E+07
    26 'Normalizat'    .91567       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1040       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7822.264     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     1886 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20539E-08    6.1341        .70640E-07** at limit **
   2  norm          11.382        10.409        .34885E-06    .43515E-02
   3  Prefactor     1.6918        2.2011       -.23433E-07   -.60158E-02
   4  Prefactor     .84988E-07    19.250        .68715E-06** at limit **
   5  norm          .55511E-10    2.1543        .82451E-08** at limit **
   6  Prefactor     1.4366        2.4751       -.24112E-07   -.78009E-02
   7  Prefactor     .61118E-07    33.358        .11766E-05** at limit **
   8  Prefactor     5.8402        8.2431       -.65541E-06   -.13234E-01
   9  Prefactor     .27756E-09    1.6883        .15381E-06** at limit **
  10  Prefactor     3.7611        4.7830        .15714E-05   -.43695E-02
  11  Prefactor     3.0515        4.5279       -.13196E-05   -.12774E-01
  12  Prefactor     .23278E-05    24.918       -.11824E-05** at limit **
  13  Prefactor     .85931E-07    4.6984        .98385E-07** at limit **
  14  Prefactor     .73275E-08    41.898       -.14788E-05** at limit **
  15  Prefactor     7.1972        4.1243       -.99199E-06   -.30623E-02
  16  Prefactor     .43693E-06    5.9820        .74148E-06** at limit **
  17  Prefactor     3.3923        6.9434       -.15888E-06    .57878E-03
  18  norm          .15271E-06    .84399        .24502E-06** at limit **
  19  norm          7.1981        3.5030        .75756E-08    .89318E-02
  20  Prefactor     .88657E-06    6.4863       -.12610E-05** at limit **
  21  norm          12.283        1.0358        .20910E-07   -.11176E-02
  22  norm          .72609        .44533        .11778E-07    .19052E-01
  23  Prefactor      .0000        2.0139       -.15686E-07** at limit **
  24  norm          .36413        1.1299       -.76805E-07    .11407E-01
  25  Prefactor     17.102        5.0805       -.75536E-06   -.70580E-01
  26  Normalizat    .91658        .20003        .69306E-05    .38004E-03
  27  Prefactor     1.1040        .16259       -.23790E-05    .45942E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.05391e-09
  norm       = 11.3822
  Prefactor  = 1.69183
  Prefactor  = 8.49876e-08
  norm       = 5.55112e-11
  Prefactor  = 1.43657
  Prefactor  = 6.11178e-08
  Prefactor  = 5.84016
  Prefactor  = 2.77556e-10
  Prefactor  = 3.76106
  Prefactor  = 3.05146
  Prefactor  = 2.3278e-06
  Prefactor  = 8.59313e-08
  Prefactor  = 7.32747e-09
  Prefactor  = 7.19719
  Prefactor  = 4.36928e-07
  Prefactor  = 3.39231
  norm       = 1.52711e-07
  norm       = 7.1981
  Prefactor  = 8.86569e-07
  norm       = 12.2832
  norm       = 0.726089
  Prefactor  = 0
  norm       = 0.364128
  Prefactor  = 17.1017
  Normalizat = 0.916576
  Prefactor  = 1.10397
 **********
 **   18 **HESSE 
 **********

 FCN=   7822.264     FROM HESSE     STATUS=OK           544 CALLS     2430 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20539E-08    6.0707        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.382        16.025        .29516E-03   -1.5640    
   3  Prefactor     1.6918        2.2272        .80740E-03   -1.5682    
   4  Prefactor     .84988E-07    19.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .55511E-10    2.1535        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4366        2.5033        .89918E-03   -1.5684    
   7  Prefactor     .61118E-07    35.687        .13211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.8402        8.3711        .41004E-03   -1.5660    
   9  Prefactor     .27756E-09    1.6984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.7611        10.751        .51869E-03   -1.5669    
  11  Prefactor     3.0515        8.9181        .57486E-03   -1.5673    
  12  Prefactor     .23278E-05    59.045        .10058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .85931E-07    12.972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .73275E-08    42.022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.1972        10.140        .37270E-03   -1.5654    
  16  Prefactor     .43693E-06    12.601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.3923        8.1464        .55140E-03   -1.5671    
  18  norm          .15271E-06    1.5174        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.1981        3.6057        .37272E-03   -1.5654    
  20  Prefactor     .88657E-06    14.247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          12.283        21.991        .28539E-03   -1.5638    
  22  norm          .72609        .45679        .58671E-03   -1.5691    
  23  Prefactor      .0000        2.0174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .36413        1.1464        .93721E-03   -1.5696    
  25  Prefactor     17.102        8.1693        .24192E-03   -1.5625    
  26  Normalizat    .91658        .17837        .45101E-01   -.95880    
  27  Prefactor     1.1040        .14349        .37437E-01   -.89340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80368e-07
Minuit parameter uncertainties:
  1  0.000222508
  2  16.0252
  3  2.22724
  4  0.00260184
  5  2.33727e-05
  6  2.5033
  7  0.00295413
  8  8.37114
  9  4.27762e-05
  10  10.7511
  11  8.91814
  12  0.0234478
  13  0.00211153
  14  0.00111115
  15  10.1396
  16  0.00469295
  17  8.14638
  18  0.000962743
  19  3.60575
  20  0.00710823
  21  21.9909
  22  0.456786
  23  4.89109e-06
  24  1.14641
  25  8.16934
  26  0.178483
  27  0.143543
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  2.776e-10  4.278e-05  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.104e+00  1.435e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  9.166e-01  1.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 3.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/798410/likelihoodResults_692150401_692409601_4FGL_J1200.2+0201_daily_bin1747.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) = 7822.27275664
delta logL = -0.00924986240716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7822.26350812
delta logL = -1.34299807542e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7822.264     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      241 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    .79257        .42118E-03** at limit **
   2  Index         .72860        7.4851        .50000       -.10505E-08
   3  Normalizat    .91657        .39645E-02    .45111E-01   -.25441E-03
   4  Prefactor     1.1040        .33305E-02    .37432E-01   -.32909E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  Index      = 0.728598
  Normalizat = 0.916574
  Prefactor  = 1.10397
 **********
 **   18 **HESSE 
 **********

 FCN=   7822.264     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      268 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    4.0203        .82028E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .72860        8.2163        .50000       -1.0242    
   3  Normalizat    .91657        .89540E-02    .28460E-03   -.95880    
   4  Prefactor     1.1040        .75252E-02    .21893E-03   -.89340    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.39713e-09
Minuit parameter uncertainties:
  1  7.12187e-05
  2  84108.1
  3  0.00895406
  4  0.00752524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/798410': 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): 102
logL (Free Index) = 7822.26350678
delta logL = -6.45741238259e-11

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  3.331e-10  7.122e-05  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  7.286e-01  8.411e+04  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.104e+00  7.525e-03  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  9.166e-01  8.954e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.055 2.017

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/798410/cmap_HighResolution_692150401_692409601_4FGL_J1200.2+0201_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-03', job_status='DONE', photon_flux_upper_limit='3.46e-08', time_completed='2022-12-11 00:58:37.568945', job_id='798410', GAL2='1.10', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1670749117.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-6.46e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1747' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 00:58:37 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 798410: <4FGL_J1200.2+0201_daily_bin1747> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin1747> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Dec 11 00:45:21 2022
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 00:45:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 00:45:23 2022
Terminated at Sun Dec 11 00:58:38 2022
Results reported at Sun Dec 11 00:58:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin1747 180.055 2.0172 692150401 692409601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.2+0201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   733.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            797 sec.

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

