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 8 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7465
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1200.2+0201_daily_bin1776
RA = 180.055, Dec = 2.0172
tmin = 699667201, tmax = 699926401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='832491', job_status='RUN', time_executed='2023-03-08 00:35:43.084646', time_epoch_executed='1678264543.08' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/832491

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/832491/ft1_4FGL_J1200.2+0201_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/832491/ft2_4FGL_J1200.2+0201_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/832491/ft1_4FGL_J1200.2+0201_daily_bin1776.fits outfile=/scratch/kocevski/832491/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin1776.fits ra=180.055 dec=2.0172 rad=12.0 tmin=699667201.0 tmax=699926401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.13
user 3.65
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/832491/ft2_4FGL_J1200.2+0201_daily_bin1776.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/832491/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin1776.fits evtable="EVENTS" outfile="/scratch/kocevski/832491/ft1_filtered_4FGL_J1200.2+0201_daily_bin1776.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 529

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/832491/ft1_filtered_4FGL_J1200.2+0201_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/832491/ft2_4FGL_J1200.2+0201_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/832491/ltcube_699667201_699926401_4FGL_J1200.2+0201_daily_bin1776.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /scratch/kocevski/832491/ft2_4FGL_J1200.2+0201_daily_bin1776.fits
.....................!
real 14.23
user 13.76
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/832491/ft1_filtered_4FGL_J1200.2+0201_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/832491/ft2_4FGL_J1200.2+0201_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/832491/ltcube_699667201_699926401_4FGL_J1200.2+0201_daily_bin1776.fits outfile=/scratch/kocevski/832491/expmap_699667201_699926401_4FGL_J1200.2+0201_daily_bin1776.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/832491/ltcube_699667201_699926401_4FGL_J1200.2+0201_daily_bin1776.fits
.....................!
real 191.95
user 184.87
sys 6.26

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/832491/ft1_filtered_4FGL_J1200.2+0201_daily_bin1776.fits scfile=/scratch/kocevski/832491/ft2_4FGL_J1200.2+0201_daily_bin1776.fits outfile=/scratch/kocevski/832491/cmap_699667201_699926401_4FGL_J1200.2+0201_daily_bin1776.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=180.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/832491/ft1_filtered_4FGL_J1200.2+0201_daily_bin1776.fits scfile=/scratch/kocevski/832491/ft2_4FGL_J1200.2+0201_daily_bin1776.fits outfile=/scratch/kocevski/832491/cmap_HighResolution_699667201_699926401_4FGL_J1200.2+0201_daily_bin1776.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=180.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.56
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/832491/ft1_filtered_4FGL_J1200.2+0201_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/832491/ft2_4FGL_J1200.2+0201_daily_bin1776.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/832491/Model_4FGL_J1200.2+0201_daily_bin1776.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/832491/ft1_filtered_4FGL_J1200.2+0201_daily_bin1776.fits.....................!
real 55.86
user 54.42
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/832491/ft1_filtered_4FGL_J1200.2+0201_daily_bin1776.fits', '/scratch/kocevski/832491/ft2_4FGL_J1200.2+0201_daily_bin1776.fits', expMap='/scratch/kocevski/832491/expmap_699667201_699926401_4FGL_J1200.2+0201_daily_bin1776.fits', expCube='/scratch/kocevski/832491/ltcube_699667201_699926401_4FGL_J1200.2+0201_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/832491/Model_4FGL_J1200.2+0201_daily_bin1776.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/832491/ft1_filtered_4FGL_J1200.2+0201_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/832491/ft2_4FGL_J1200.2+0201_daily_bin1776.fits
Exposure map: /scratch/kocevski/832491/expmap_699667201_699926401_4FGL_J1200.2+0201_daily_bin1776.fits
Exposure cube: /scratch/kocevski/832491/ltcube_699667201_699926401_4FGL_J1200.2+0201_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/832491/Model_4FGL_J1200.2+0201_daily_bin1776.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18526E-04   1.0000          .0000       .10000E+07
     2 'norm      '    9.2001       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.4108       1.0000          .0000       .10000E+07
     4 'Prefactor '    17.112       1.0000          .0000       .10000E+07
     5 'norm      '    .52375E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.1559       1.0000          .0000       .10000E+07
     7 'Prefactor '    98.757       1.0000          .0000       .10000E+07
     8 'Prefactor '    .76664E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .82823E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .41390E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.9138       1.0000          .0000       .10000E+07
    12 'Prefactor '    .27004E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    32.867       1.0000          .0000       .10000E+07
    14 'Prefactor '    .77807E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    18.079       1.0000          .0000       .10000E+07
    16 'Prefactor '    .67592E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .14320E-02   1.0000          .0000       .10000E+07
    18 'norm      '    1.6215       1.0000          .0000       .10000E+07
    19 'norm      '    1.8111       1.0000          .0000       .10000E+07
    20 'Prefactor '    .74623E-03   1.0000          .0000       .10000E+07
    21 'norm      '    .11616E-02   1.0000          .0000       .10000E+07
    22 'norm      '    1.1692       1.0000          .0000       .10000E+07
    23 'Prefactor '    9.8540       1.0000          .0000       .10000E+07
    24 'norm      '    1.5985       1.0000          .0000       .10000E+07
    25 'Prefactor '    .10754E-02   1.0000          .0000       .10000E+07
    26 'Normalizat'    .93695       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1097       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=   5986.789     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     2435 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56327E-06    2.6476        .44798E-07** at limit **
   2  norm          9.2510        5.2108       -.58457E-06    .65517E-01
   3  Prefactor     5.4121        2.7590       -.29267E-06    .89703E-02
   4  Prefactor     17.139        2.6716       -.16978E-06    .36605E-01
   5  norm          .37859E-07    6.8847        .18623E-05** at limit **
   6  Prefactor     1.1597        3.5238        .66862E-06   -.22995E-02
   7  Prefactor     98.779        2.0353        .12770E-06   -.20029    
   8  Prefactor     .25535E-08    4.7591       -.74148E-08** at limit **
   9  Prefactor     .33307E-09    3.0811        .23220E-07** at limit **
  10  Prefactor     .20706E-07    11.356        .30327E-05** at limit **
  11  Prefactor     4.9281        1.5951        .20218E-06    .54257E-02
  12  Prefactor     .16653E-09    30.260       -.21534E-06** at limit **
  13  Prefactor     32.900        1.0716        .40030E-07   -.11336E-01
  14  Prefactor     .13228E-06    19.881       -.10661E-05** at limit **
  15  Prefactor     18.088        1.0653        .24528E-07    .31629E-02
  16  Prefactor     .20539E-08    2.7510       -.43177E-08** at limit **
  17  Prefactor     .19984E-08    4.2733        .17304E-05** at limit **
  18  norm          1.6185        1.6976       -.20668E-06   -.29465E-03
  19  norm          1.8179        3.0677       -.11066E-06   -.13115E-02
  20  Prefactor     .55511E-10    2.7318        .10995E-07** at limit **
  21  norm          .89484E-07    2.6246        .14851E-06** at limit **
  22  norm          1.1695        .57092       -.20654E-06   -.74154E-03
  23  Prefactor     9.8811        8.2474       -.16834E-05   -.15488E-01
  24  norm          1.5975        1.5032        .14974E-06    .27010E-02
  25  Prefactor     .66613E-09    5.7589       -.10953E-06** at limit **
  26  Normalizat    .93703        .24107        .57796E-05    .12677E-03
  27  Prefactor     1.1093        .19206        .19235E-04    .70832E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.63272e-07
  norm       = 9.25104
  Prefactor  = 5.41205
  Prefactor  = 17.139
  norm       = 3.78586e-08
  Prefactor  = 1.15972
  Prefactor  = 98.7786
  Prefactor  = 2.55351e-09
  Prefactor  = 3.33067e-10
  Prefactor  = 2.07057e-08
  Prefactor  = 4.9281
  Prefactor  = 1.66533e-10
  Prefactor  = 32.9001
  Prefactor  = 1.32283e-07
  Prefactor  = 18.0876
  Prefactor  = 2.05391e-09
  Prefactor  = 1.9984e-09
  norm       = 1.61854
  norm       = 1.81791
  Prefactor  = 5.55112e-11
  norm       = 8.9484e-08
  norm       = 1.16948
  Prefactor  = 9.88107
  norm       = 1.59746
  Prefactor  = 6.66134e-10
  Normalizat = 0.937031
  Prefactor  = 1.10932
 **********
 **   18 **HESSE 
 **********

 FCN=   5986.789     FROM HESSE     STATUS=OK           542 CALLS     2977 TOTAL
                     EDM=   .60E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56327E-06    9.5772        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.2510        24.553        .33018E-03   -1.5647    
   3  Prefactor     5.4121        2.7696        .43177E-03   -1.5661    
   4  Prefactor     17.139        32.594        .24184E-03   -1.5625    
   5  norm          .37859E-07    7.0498        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1597        3.5972        .10734E-02   -1.5686    
   7  Prefactor     98.779        119.01        .10063E-03   -1.5509    
   8  Prefactor     .25535E-08    4.7693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .33307E-09    3.0897        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .20706E-07    12.657        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.9281        16.386        .45350E-03   -1.5664    
  12  Prefactor     .16653E-09    30.249        .16613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     32.900        31.932        .17445E-03   -1.5593    
  14  Prefactor     .13228E-06    25.527        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.088        20.320        .23528E-03   -1.5623    
  16  Prefactor     .20539E-08    9.7981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .19984E-08    4.2910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.6185        1.6959        .83076E-03   -1.5683    
  19  norm          1.8179        3.1098        .77603E-03   -1.5681    
  20  Prefactor     .55511E-10    9.8314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .89484E-07    10.091        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1695        .58348        .84112E-03   -1.5686    
  23  Prefactor     9.8811        8.2631        .31898E-03   -1.5645    
  24  norm          1.5975        1.5209        .83837E-03   -1.5683    
  25  Prefactor     .66613E-09    27.708        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .93703        .21853        .68113E-01   -.95171    
  27  Prefactor     1.1093        .16750        .37230E-01   -.89169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02541e-06
Minuit parameter uncertainties:
  1  0.00464535
  2  24.5536
  3  2.76964
  4  32.5938
  5  0.00103331
  6  3.59721
  7  119.018
  8  0.000219939
  9  6.2491e-05
  10  0.00102318
  11  16.3859
  12  0.000134674
  13  31.9324
  14  0.00367514
  15  20.3201
  16  0.000283381
  17  0.000185318
  18  1.69589
  19  3.10984
  20  4.29057e-05
  21  0.00190023
  22  0.583477
  23  8.26311
  24  1.52094
  25  0.000266999
  26  0.218737
  27  0.167581
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  3.331e-10  6.249e-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.109e+00  1.676e-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.370e-01  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.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/832491/likelihoodResults_699667201_699926401_4FGL_J1200.2+0201_daily_bin1776.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5986.78899079
delta logL = -0.000314421231451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5986.78867672
delta logL = -3.50014488504e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42133E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .51505       1.0000          .0000       10.000    
     3 'Normalizat'    .93690       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1094       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5985.770     FROM MIGRAD    STATUS=FAILED       251 CALLS      462 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39622E-04    .10221E-03    .74902E-06** at limit **
   2  Index         7.3574        .93419        .42255E-02    .65333E-03
   3  Normalizat    .82972        .24389        .31814E-03   -.14401E-04
   4  Prefactor     1.1678        .19501        .22163E-03   -.39550E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5985.770     FROM SIMPLEX   STATUS=UNCHANGED     69 CALLS      531 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39622E-04    .10221E-03    .29943E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.3574        .93419        .39684E-02    .49098    
   3  Normalizat    .82972        .24389        .24074E-03   -.98976    
   4  Prefactor     1.1678        .19501        .20930E-03   -.87327    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5985.770     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      570 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39622E-04    .11052E-03     .0000    ** at limit **
   2  Index         7.3574        1.0081         .0000       -.23138E-05
   3  Normalizat    .82972        .24401         .0000       -.14294E-05
   4  Prefactor     1.1678        .19514         .0000       -.10259E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.96216e-05
  Index      = 7.35743
  Normalizat = 0.829717
  Prefactor  = 1.16783
 **********
 **   18 **HESSE 
 **********

 FCN=   5985.770     FROM HESSE     STATUS=OK            23 CALLS      593 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39622E-04    .99459E-04    .37451E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.3574        .90850        .33804E-04    .49098    
   3  Normalizat    .82972        .24445        .25452E-05   -.98976    
   4  Prefactor     1.1678        .19548        .17730E-05   -.87327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52499e-06
Minuit parameter uncertainties:
  1  9.94588e-05
  2  0.915054
  3  0.244777
  4  0.195598
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/832491': 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): 0
logL (Free Index) = 5985.76962684
delta logL = 1.01904952972

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  3.962e-05  9.946e-05  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  7.357e+00  9.151e-01  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.168e+00  1.956e-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:  8.297e-01  2.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.22
Ra Dec: 180.055 2.017
Photon Index (Free Index): 7.36 +/- 0.92
Photon Flux (Free Index): 8.77e-08 +/- 4.24e-07
Energy Flux (Free Index): 1.04e-05 +/- 5.00e-05

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/832491/cmap_HighResolution_699667201_699926401_4FGL_J1200.2+0201_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.25e-03', comment='SUCCESS', energy_flux2='1.04e-05', dlogl='1.02e+00', photon_flux2='8.77e-08', job_status='DONE', time_completed='2023-03-08 00:47:16.122144', photon_index_error2='0.92', photon_index2='7.36', ts='-0.00', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='5.61e-08', energy_flux_error2='5.00e-05', EG='0.94', time_epoch_completed='1678265236.12', return_code='0', job_id='832491', GAL2='1.17', EG2='0.83', return_code2='0', photon_flux_error2='4.24e-07', ts2='2.22', photon_index='2.11' WHERE bin_id='1776' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:47:16 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 832491: <4FGL_J1200.2+0201_daily_bin1776> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin1776> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Mar  8 00:35:23 2023
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:35:24 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:35:24 2023
Terminated at Wed Mar  8 00:47:16 2023
Results reported at Wed Mar  8 00:47:16 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin1776 180.055 2.0172 699667201 699926401 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 :                                   693.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             319.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            713 sec.

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

