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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin1777
RA = 180.055, Dec = 2.0172
tmin = 699926401, tmax = 700185601
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='913370', job_status='RUN', time_executed='2023-03-11 00:36:02.074891', time_epoch_executed='1678523762.07' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913370

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913370/ft1_4FGL_J1200.2+0201_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913370/ft2_4FGL_J1200.2+0201_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913370/ft1_4FGL_J1200.2+0201_daily_bin1777.fits outfile=/scratch/kocevski/913370/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin1777.fits ra=180.055 dec=2.0172 rad=12.0 tmin=699926401.0 tmax=700185601.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.61
user 3.41
sys 0.18

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

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

Number of photons that the gtmktime cut: 603

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913370/ft1_filtered_4FGL_J1200.2+0201_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/913370/ft2_4FGL_J1200.2+0201_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/913370/ltcube_699926401_700185601_4FGL_J1200.2+0201_daily_bin1777.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/913370/ft2_4FGL_J1200.2+0201_daily_bin1777.fits
.....................!
real 12.07
user 11.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913370/ft1_filtered_4FGL_J1200.2+0201_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/913370/ft2_4FGL_J1200.2+0201_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/913370/ltcube_699926401_700185601_4FGL_J1200.2+0201_daily_bin1777.fits outfile=/scratch/kocevski/913370/expmap_699926401_700185601_4FGL_J1200.2+0201_daily_bin1777.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/913370/ltcube_699926401_700185601_4FGL_J1200.2+0201_daily_bin1777.fits
.....................!
real 191.72
user 186.87
sys 4.52

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/913370/ft1_filtered_4FGL_J1200.2+0201_daily_bin1777.fits scfile=/scratch/kocevski/913370/ft2_4FGL_J1200.2+0201_daily_bin1777.fits outfile=/scratch/kocevski/913370/cmap_699926401_700185601_4FGL_J1200.2+0201_daily_bin1777.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913370/ft1_filtered_4FGL_J1200.2+0201_daily_bin1777.fits scfile=/scratch/kocevski/913370/ft2_4FGL_J1200.2+0201_daily_bin1777.fits outfile=/scratch/kocevski/913370/cmap_HighResolution_699926401_700185601_4FGL_J1200.2+0201_daily_bin1777.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.54
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/913370/ft1_filtered_4FGL_J1200.2+0201_daily_bin1777.fits', '/scratch/kocevski/913370/ft2_4FGL_J1200.2+0201_daily_bin1777.fits', expMap='/scratch/kocevski/913370/expmap_699926401_700185601_4FGL_J1200.2+0201_daily_bin1777.fits', expCube='/scratch/kocevski/913370/ltcube_699926401_700185601_4FGL_J1200.2+0201_daily_bin1777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/913370/Model_4FGL_J1200.2+0201_daily_bin1777.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/913370/ft1_filtered_4FGL_J1200.2+0201_daily_bin1777.fits
Spacecraft file(s): /scratch/kocevski/913370/ft2_4FGL_J1200.2+0201_daily_bin1777.fits
Exposure map: /scratch/kocevski/913370/expmap_699926401_700185601_4FGL_J1200.2+0201_daily_bin1777.fits
Exposure cube: /scratch/kocevski/913370/ltcube_699926401_700185601_4FGL_J1200.2+0201_daily_bin1777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/913370/Model_4FGL_J1200.2+0201_daily_bin1777.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) = 6687.50972255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6687.44669391

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61675E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .76494E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.7595       1.0000          .0000       .10000E+07
     4 'Prefactor '    .40878E-02   1.0000          .0000       .10000E+07
     5 'norm      '    10.437       1.0000          .0000       .10000E+07
     6 'Prefactor '    .82112E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    8.2502       1.0000          .0000       .10000E+07
     8 'Prefactor '    .15149E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .85322E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .78696E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.1351       1.0000          .0000       .10000E+07
    12 'Prefactor '    .16591E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    23.577       1.0000          .0000       .10000E+07
    14 'Prefactor '    .16278E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    40.257       1.0000          .0000       .10000E+07
    16 'Prefactor '    .74551E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    10.295       1.0000          .0000       .10000E+07
    18 'norm      '    .21686E-03   1.0000          .0000       .10000E+07
    19 'norm      '    .31328E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .32149E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .23383E-02   1.0000          .0000       .10000E+07
    22 'norm      '    1.0075       1.0000          .0000       .10000E+07
    23 'Prefactor '    12.574       1.0000          .0000       .10000E+07
    24 'norm      '    .86811E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    .18147       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.7192       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .65726       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=   6687.429     FROM MIGRAD    STATUS=CONVERGED    229 CALLS     2473 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.5595        .15980E-07** at limit **
   2  norm          .12995E-06    10.241       -.74272E-07** at limit **
   3  Prefactor     4.7851        2.6694        .65618E-08    .15259E-02
   4  Prefactor     .10789E-05    12.017        .23166E-06** at limit **
   5  norm          10.534        6.6306        .59183E-09    .41661E-03
   6  Prefactor     .16653E-09    2.0610        .77927E-08** at limit **
   7  Prefactor     31.520        144.38        .33078E-07    .13498E-02
   8  Prefactor     .44409E-08    3.8891       -.50231E-07** at limit **
   9  Prefactor     .16653E-08    3.1196        .79384E-08** at limit **
  10  Prefactor     .20928E-07    6.9982        .21283E-07** at limit **
  11  Prefactor     2.1775        12.669        .32049E-06    .21971E-02
  12  Prefactor     .16603E-06    27.590       -.20347E-06** at limit **
  13  Prefactor     23.793        1.5227        .58575E-08   -.18621E-02
  14  Prefactor     .19773E-06    14.649        .13483E-06** at limit **
  15  Prefactor     41.005        24.458        .33142E-07   -.14263    
  16  Prefactor     .11247E-06    87.887       -.30383E-06** at limit **
  17  Prefactor     10.255        6.3942       -.24735E-10   -.21528E-01
  18  norm           .0000        1.6164        .89609E-08** at limit **
  19  norm          .81861E-05    8.6994        .16569E-06** at limit **
  20  Prefactor     .55511E-10    28.460       -.28443E-07** at limit **
  21  norm          .90450E-06    19.707       -.19582E-06** at limit **
  22  norm          1.0150        .56861        .21318E-07    .27469E-01
  23  Prefactor     12.659        9.6800        .77275E-07    .11907E-01
  24  norm          .83267E-09    2.4812        .17718E-06** at limit **
  25  Prefactor     .25036        2.2026        .52692E-07   -.10847E-01
  26  Normalizat    1.7062        .25311        .24062E-06    .39509E-03
  27  Prefactor     .66101        .18679        .62173E-07    .30219E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 1.29952e-07
  Prefactor  = 4.78508
  Prefactor  = 1.07886e-06
  norm       = 10.5343
  Prefactor  = 1.66533e-10
  Prefactor  = 31.5197
  Prefactor  = 4.44089e-09
  Prefactor  = 1.66533e-09
  Prefactor  = 2.09277e-08
  Prefactor  = 2.17746
  Prefactor  = 1.66034e-07
  Prefactor  = 23.7929
  Prefactor  = 1.97731e-07
  Prefactor  = 41.0051
  Prefactor  = 1.12466e-07
  Prefactor  = 10.2546
  norm       = 0
  norm       = 8.18612e-06
  Prefactor  = 5.55112e-11
  norm       = 9.04499e-07
  norm       = 1.01498
  Prefactor  = 12.6587
  norm       = 8.32667e-10
  Prefactor  = 0.250359
  Normalizat = 1.70618
  Prefactor  = 0.661014
 **********
 **   18 **HESSE 
 **********

 FCN=   6687.429     FROM HESSE     STATUS=OK           552 CALLS     3025 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.5664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .12995E-06    10.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7851        2.6721        .46096E-03   -1.5664    
   4  Prefactor     .10789E-05    13.244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.534        6.6415        .30990E-03   -1.5643    
   6  Prefactor     .16653E-09    2.0679        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.520        139.70        .34880E-03   -1.5596    
   8  Prefactor     .44409E-08    3.8530        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .16653E-08    3.1102        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .20928E-07    7.0318        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1775        12.856        .70522E-03   -1.5678    
  12  Prefactor     .16603E-06    27.756        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.793        25.545        .20600E-03   -1.5610    
  14  Prefactor     .19773E-06    14.822        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.005        31.490        .15762E-03   -1.5580    
  16  Prefactor     .11247E-06    87.469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.255        16.148        .31203E-03   -1.5644    
  18  norm           .0000        1.6095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .81861E-05    2.9758        .47895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    28.180        .16339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .90450E-06    20.515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.0150        .60037        .44029E-03   -1.5688    
  23  Prefactor     12.659        9.9726        .28223E-03   -1.5637    
  24  norm          .83267E-09    2.3997        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .25036        8.3382        .79256E-02   -1.5698    
  26  Normalizat    1.7062        .21853        .57059E-01   -.72138    
  27  Prefactor     .66101        .16039        .66807E-01   -1.0508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.14336e-07
Minuit parameter uncertainties:
  1  1.08372e-05
  2  0.0023211
  3  2.67209
  4  0.0075601
  5  6.6415
  6  3.5531e-05
  7  132.72
  8  0.000261948
  9  0.000142975
  10  0.000766896
  11  10.5816
  12  0.00429329
  13  25.5454
  14  0.00342408
  15  31.4904
  16  0.00627252
  17  16.1485
  18  1.09043e-05
  19  0.0098712
  20  5.74545e-05
  21  0.00861531
  22  0.600375
  23  9.97265
  24  9.04279e-05
  25  2.88966
  26  0.218653
  27  0.160501
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.665e-09  1.430e-04  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:  6.610e-01  1.605e-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:  1.706e+00  2.187e-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: 5.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/913370/likelihoodResults_699926401_700185601_4FGL_J1200.2+0201_daily_bin1777.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) = 6687.42979142
delta logL = -0.00030505779705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6687.42948644
delta logL = -7.63538992032e-08

Fit tolerance = 1e-08

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

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

 FCN=   6687.429     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      242 TOTAL
                     EDM=   .24E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .88565        .42118E-03** at limit **
   2  Index         3.4895        1.9835        .74801E-05     .0000    
   3  Normalizat    1.7062        1.0334        .26919E-05   -.30651E-04
   4  Prefactor     .66101        1.0104        .38904E-06   -.43268E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.48945
  Normalizat = 1.70618
  Prefactor  = 0.661014
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6687.429     FROM HESSE     STATUS=FAILED         9 CALLS      251 TOTAL
                     EDM=   .24E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .88565        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3548        2.2716        .74801E-05   -.30691    
   3  Normalizat    1.7062        1.0334        .26919E-05   -.72138    
   4  Prefactor     .66101        1.0104        .38904E-06   -1.0508    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.38001e-12
Minuit parameter uncertainties:
  1  3.80013e-07
  2  2.04578
  3  1.04692
  4  1.04055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913370': 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) = 6687.42948636
delta logL = 3.4378899727e-10

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  0.000e+00  3.800e-07  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  3.489e+00  2.046e+00  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:  6.610e-01  1.041e+00  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:  1.706e+00  1.047e+00  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/913370/cmap_HighResolution_699926401_700185601_4FGL_J1200.2+0201_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-03', job_status='DONE', photon_flux_upper_limit='5.91e-08', time_completed='2023-03-11 00:48:08.482942', job_id='913370', GAL2='0.66', fit_tolerance='1e-08', EG2='1.71', EG='1.71', time_epoch_completed='1678524488.48', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='3.44e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1777' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 00:48:08 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 913370: <4FGL_J1200.2+0201_daily_bin1777> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin1777> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Mar 11 00:35:20 2023
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 00:35:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 00:35:22 2023
Terminated at Sat Mar 11 00:48:09 2023
Results reported at Sat Mar 11 00:48:09 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin1777 180.055 2.0172 699926401 700185601 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 :                                   728.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            769 sec.

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

