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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin1778
RA = 180.055, Dec = 2.0172
tmin = 700185601, tmax = 700444801
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='960967', job_status='RUN', time_executed='2023-03-14 00:51:23.918130', time_epoch_executed='1678780283.92' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/960967

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/960967/ft1_4FGL_J1200.2+0201_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/960967/ft2_4FGL_J1200.2+0201_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/960967/ft1_4FGL_J1200.2+0201_daily_bin1778.fits outfile=/scratch/kocevski/960967/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin1778.fits ra=180.055 dec=2.0172 rad=12.0 tmin=700185601.0 tmax=700444801.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.21
user 2.95
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/960967/ft2_4FGL_J1200.2+0201_daily_bin1778.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/960967/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin1778.fits evtable="EVENTS" outfile="/scratch/kocevski/960967/ft1_filtered_4FGL_J1200.2+0201_daily_bin1778.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.45
user 0.28
sys 0.14

Number of photons that the gtmktime cut: 592

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/960967/ft1_filtered_4FGL_J1200.2+0201_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/960967/ft2_4FGL_J1200.2+0201_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/960967/ltcube_700185601_700444801_4FGL_J1200.2+0201_daily_bin1778.fits outfile=/scratch/kocevski/960967/expmap_700185601_700444801_4FGL_J1200.2+0201_daily_bin1778.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/960967/ltcube_700185601_700444801_4FGL_J1200.2+0201_daily_bin1778.fits
.....................!
real 153.28
user 147.79
sys 5.11

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/960967/ft1_filtered_4FGL_J1200.2+0201_daily_bin1778.fits scfile=/scratch/kocevski/960967/ft2_4FGL_J1200.2+0201_daily_bin1778.fits outfile=/scratch/kocevski/960967/cmap_700185601_700444801_4FGL_J1200.2+0201_daily_bin1778.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.47
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/960967/ft1_filtered_4FGL_J1200.2+0201_daily_bin1778.fits scfile=/scratch/kocevski/960967/ft2_4FGL_J1200.2+0201_daily_bin1778.fits outfile=/scratch/kocevski/960967/cmap_HighResolution_700185601_700444801_4FGL_J1200.2+0201_daily_bin1778.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.47
user 0.32
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15484E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .45905E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.2573       1.0000          .0000       .10000E+07
     4 'Prefactor '    .43213E-02   1.0000          .0000       .10000E+07
     5 'norm      '    3.4778       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14658E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .26096E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .81557E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .72739E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.7176       1.0000          .0000       .10000E+07
    11 'Prefactor '    .23061E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .48334E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .61477       1.0000          .0000       .10000E+07
    14 'Prefactor '    44.343       1.0000          .0000       .10000E+07
    15 'Prefactor '    .32657E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .33762E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .25497E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .23970E-06   1.0000          .0000       .10000E+07
    19 'norm      '    1.4828       1.0000          .0000       .10000E+07
    20 'Prefactor '    6.3202       1.0000          .0000       .10000E+07
    21 'norm      '    91.322       1.0000          .0000       .10000E+07
    22 'norm      '    .13600E-07   1.0000          .0000       .10000E+07
    23 'Prefactor '    .95909E-03   1.0000          .0000       .10000E+07
    24 'norm      '    3.3625       1.0000          .0000       .10000E+07
    25 'Prefactor '    7.3316       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0196       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0474       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=   6574.764     FROM MIGRAD    STATUS=CONVERGED    224 CALLS     2499 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.1934        .16257E-07** at limit **
   2  norm          .72164E-09    8.8922        .12651E-06** at limit **
   3  Prefactor     4.2572        2.5996       -.15218E-07   -.21796E-03
   4  Prefactor     .23481E-07    19.158        .11389E-06** at limit **
   5  norm          3.5879        4.9790       -.61754E-07   -.38376E-03
   6  Prefactor     .15854E-06    47.405       -.40929E-07** at limit **
   7  Prefactor      .0000        40.274        .11450E-06** at limit **
   8  Prefactor      .0000        2.6243        .63523E-08** at limit **
   9  Prefactor      .0000        3.2478       -.80761E-07** at limit **
  10  Prefactor     1.7547        37.538       -.87697E-07   -.65465E-02
  11  Prefactor      .0000        4.1934        .74090E-08** at limit **
  12  Prefactor      .0000        45.553       -.18173E-07** at limit **
  13  Prefactor     .12854E-05    793.58       -.20698E-05** at limit **
  14  Prefactor     43.824        19.388       -.10148E-06   -.45641E-01
  15  Prefactor     .77216E-07    10.386       -.99587E-07** at limit **
  16  Prefactor     .90594E-07    10.357       -.13804E-06** at limit **
  17  Prefactor     .60840E-07    5.1112        .45907E-07** at limit **
  18  norm           .0000        .52285        .36370E-07** at limit **
  19  norm          1.4926        2.9958        .36467E-07    .47117E-03
  20  Prefactor     6.2922        14.353       -.46347E-07    .11640E-01
  21  norm          91.136        4.4700       -.16210E-07   -.45313E-01
  22  norm           .0000        .82604       -.41912E-08** at limit **
  23  Prefactor     .17205E-05    65.292       -.53436E-06** at limit **
  24  norm          3.3608        1.6935        .22323E-08    .20022E-03
  25  Prefactor     7.3028        7.0407        .54710E-07    .19636E-03
  26  Normalizat    1.0200        .23000        .10769E-05    .16343E-04
  27  Prefactor     1.0475        .18208       -.28023E-06    .18952E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 7.21645e-10
  Prefactor  = 4.25717
  Prefactor  = 2.34812e-08
  norm       = 3.58785
  Prefactor  = 1.5854e-07
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.75472
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.28536e-06
  Prefactor  = 43.8242
  Prefactor  = 7.7216e-08
  Prefactor  = 9.05942e-08
  Prefactor  = 6.08402e-08
  norm       = 0
  norm       = 1.49256
  Prefactor  = 6.29224
  norm       = 91.1355
  norm       = 0
  Prefactor  = 1.72051e-06
  norm       = 3.36085
  Prefactor  = 7.30282
  Normalizat = 1.02004
  Prefactor  = 1.04753
 **********
 **   18 **HESSE 
 **********

 FCN=   6574.764     FROM HESSE     STATUS=OK           568 CALLS     3067 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.1743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .72164E-09    8.9532        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2572        2.6094        .48808E-03   -1.5667    
   4  Prefactor     .23481E-07    22.650        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.5879        5.1668        .54198E-03   -1.5670    
   6  Prefactor     .15854E-06    3.0687        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        40.266        .16664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.6255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        3.2515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7547        47.159        .80140E-03   -1.5681    
  11  Prefactor      .0000        4.2148        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        45.645        .15607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12854E-05    49.281        .11999E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     43.824        41.660        .15018E-03   -1.5576    
  15  Prefactor     .77216E-07    12.859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .90594E-07    12.437        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .60840E-07    4.0218        .62047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        .52407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.4926        3.3570        .88087E-03   -1.5684    
  20  Prefactor     6.2922        19.314        .39903E-03   -1.5658    
  21  norm          91.136        51.189        .10465E-03   -1.5517    
  22  norm           .0000        .23216        .20636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .17205E-05    4.5191        .60884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.3608        1.7077        .55162E-03   -1.5671    
  25  Prefactor     7.3028        7.0680        .37018E-03   -1.5654    
  26  Normalizat    1.0200        .20165        .63032E-01   -.92362    
  27  Prefactor     1.0475        .15619        .40063E-01   -.91161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81619e-07
Minuit parameter uncertainties:
  1  1.1696e-05
  2  0.000159514
  3  2.60937
  4  0.00145914
  5  5.16678
  6  0.00139501
  7  3.96563e-05
  8  4.35795e-06
  9  1.03938e-05
  10  18.1938
  11  1.55761e-05
  12  9.19949e-06
  13  0.0159178
  14  41.6599
  15  0.001993
  16  0.00212303
  17  0.000989534
  18  8.97768e-07
  19  3.35702
  20  19.314
  21  51.1893
  22  4.2598e-07
  23  0.00557678
  24  1.70773
  25  7.06805
  26  0.201806
  27  0.156256
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  0.000e+00  1.039e-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.048e+00  1.563e-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.020e+00  2.018e-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.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/960967/likelihoodResults_700185601_700444801_4FGL_J1200.2+0201_daily_bin1778.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) = 6574.76467924
delta logL = -0.000372089304619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6574.76430731
delta logL = -1.5525984054e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27067E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .81564       1.0000          .0000       10.000    
     3 'Normalizat'    1.0201       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0475       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=   6574.764     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      228 TOTAL
                     EDM=   .46E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.0918        .42118E-03** at limit **
   2  Index         2.7063        1.8892        .14870E-04     .0000    
   3  Normalizat    1.0200        1.2646       -.12313E-04   -.18961E-04
   4  Prefactor     1.0475        1.1942        .46600E-05   -.65614E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.70631
  Normalizat = 1.02004
  Prefactor  = 1.04753
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6574.764     FROM HESSE     STATUS=FAILED         9 CALLS      237 TOTAL
                     EDM=   .46E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.0918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .82929        2.0947        .14870E-04   -.47658    
   3  Normalizat    1.0200        1.2646       -.12313E-04   -.92362    
   4  Prefactor     1.0475        1.1942        .46600E-05   -.91161    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.58744e-12
Minuit parameter uncertainties:
  1  2.00178e-06
  2  1.95132
  3  1.30511
  4  1.22676
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/960967': 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) = 6574.76430715
delta logL = -3.63797880709e-12

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  0.000e+00  2.002e-06  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.706e+00  1.951e+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:  1.048e+00  1.227e+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.020e+00  1.305e+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/960967/cmap_HighResolution_700185601_700444801_4FGL_J1200.2+0201_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.44e-08', time_completed='2023-03-14 01:01:08.534214', job_id='960967', GAL2='1.05', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1678780868.53', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1778' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 01:01:08 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 960967: <4FGL_J1200.2+0201_daily_bin1778> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin1778> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Mar 14 00:50:21 2023
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 00:50:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 00:50:22 2023
Terminated at Tue Mar 14 01:01:09 2023
Results reported at Tue Mar 14 01:01:09 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin1778 180.055 2.0172 700185601 700444801 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 :                                   581.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             321.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            648 sec.

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

