/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 130 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1438
RA = 180.187, Dec = 20.1354
tmin = 612057601, tmax = 612316801
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='263914', job_status='RUN', time_executed='2021-09-04 20:52:57.396414', time_epoch_executed='1630813977.4' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263914

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263914/ft1_4FGL_J1200.7+2008_daily_bin1438.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263914/ft2_4FGL_J1200.7+2008_daily_bin1438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263914/ft1_4FGL_J1200.7+2008_daily_bin1438.fits outfile=/scratch/kocevski/263914/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1438.fits ra=180.187 dec=20.1354 rad=12.0 tmin=612057601.0 tmax=612316801.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.76
user 4.26
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/263914/ft2_4FGL_J1200.7+2008_daily_bin1438.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263914/ft2_4FGL_J1200.7+2008_daily_bin1438.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/263914/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1438.fits evtable="EVENTS" outfile="/scratch/kocevski/263914/ft1_filtered_4FGL_J1200.7+2008_daily_bin1438.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263914/ft1_filtered_4FGL_J1200.7+2008_daily_bin1438.fits" evtable="EVENTS" scfile=/scratch/kocevski/263914/ft2_4FGL_J1200.7+2008_daily_bin1438.fits sctable="SC_DATA" outfile=/scratch/kocevski/263914/ltcube_612057601_612316801_4FGL_J1200.7+2008_daily_bin1438.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/263914/ft2_4FGL_J1200.7+2008_daily_bin1438.fits
.....................!
real 12.61
user 12.16
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263914/ft1_filtered_4FGL_J1200.7+2008_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/263914/ft2_4FGL_J1200.7+2008_daily_bin1438.fits sctable="SC_DATA" expcube=/scratch/kocevski/263914/ltcube_612057601_612316801_4FGL_J1200.7+2008_daily_bin1438.fits outfile=/scratch/kocevski/263914/expmap_612057601_612316801_4FGL_J1200.7+2008_daily_bin1438.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/263914/ltcube_612057601_612316801_4FGL_J1200.7+2008_daily_bin1438.fits
.....................!
real 192.48
user 187.43
sys 4.51

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

Setting source of interest to:
4FGL J1200.7+2008 @ 180.187 20.1354

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/263914/ft1_filtered_4FGL_J1200.7+2008_daily_bin1438.fits scfile=/scratch/kocevski/263914/ft2_4FGL_J1200.7+2008_daily_bin1438.fits outfile=/scratch/kocevski/263914/cmap_612057601_612316801_4FGL_J1200.7+2008_daily_bin1438.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.187 yref=20.1354 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263914/ft1_filtered_4FGL_J1200.7+2008_daily_bin1438.fits scfile=/scratch/kocevski/263914/ft2_4FGL_J1200.7+2008_daily_bin1438.fits outfile=/scratch/kocevski/263914/cmap_HighResolution_612057601_612316801_4FGL_J1200.7+2008_daily_bin1438.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.187 yref=20.1354 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263914/ft1_filtered_4FGL_J1200.7+2008_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/263914/ft2_4FGL_J1200.7+2008_daily_bin1438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263914/Model_4FGL_J1200.7+2008_daily_bin1438.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/263914/ft1_filtered_4FGL_J1200.7+2008_daily_bin1438.fits.....................!
real 55.54
user 53.92
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/263914/ft1_filtered_4FGL_J1200.7+2008_daily_bin1438.fits', '/scratch/kocevski/263914/ft2_4FGL_J1200.7+2008_daily_bin1438.fits', expMap='/scratch/kocevski/263914/expmap_612057601_612316801_4FGL_J1200.7+2008_daily_bin1438.fits', expCube='/scratch/kocevski/263914/ltcube_612057601_612316801_4FGL_J1200.7+2008_daily_bin1438.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/263914/Model_4FGL_J1200.7+2008_daily_bin1438.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.7+2008'

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.085e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.520e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/263914/ft1_filtered_4FGL_J1200.7+2008_daily_bin1438.fits
Spacecraft file(s): /scratch/kocevski/263914/ft2_4FGL_J1200.7+2008_daily_bin1438.fits
Exposure map: /scratch/kocevski/263914/expmap_612057601_612316801_4FGL_J1200.7+2008_daily_bin1438.fits
Exposure cube: /scratch/kocevski/263914/ltcube_612057601_612316801_4FGL_J1200.7+2008_daily_bin1438.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/263914/Model_4FGL_J1200.7+2008_daily_bin1438.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) = 5648.80717061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8169       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0493       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12247E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0384       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .87710       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10941E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .68831       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7974       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2649       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .65539       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .41404E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    4.8096       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5247       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .68422       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5648.705     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     2710 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4285       -.10243E-06** at limit **
   2  norm          .10000E-03    8.6292       -.12279E-05** at limit **
   3  Prefactor     8.8166        9.7285       -.49689E-06    .97561E-04
   4  Prefactor     .97564        261.23       -.57382E-04    .46436E-04
   5  Prefactor     .10000E-03    5.4997       -.14229E-06** at limit **
   6  Prefactor     .10000E-03    48.296        .33477E-05** at limit **
   7  Prefactor     .10000E-03    13.024       -.66716E-06** at limit **
   8  Prefactor     1.0390        1.2670        .34955E-07   -.39168E-03
   9  Prefactor     .10000E-03    10.080       -.47329E-06** at limit **
  10  norm          .87724        .75983       -.16682E-07   -.16066E-03
  11  Prefactor     .10000E-03    9.4438        .13224E-05** at limit **
  12  Prefactor     .10000E-03    2.8660       -.23742E-07** at limit **
  13  Prefactor     .10000E-03    89.669        .37255E-05** at limit **
  14  Prefactor     .69015        2.3192       -.44966E-06    .98021E-03
  15  Prefactor     .10000E-03    1.0236        .13715E-06** at limit **
  16  norm          2.7976        4.0145        .30939E-06    .11509E-02
  17  Prefactor     3.2649        2.9082        .17102E-07    .79662E-03
  18  Prefactor     .65609        2.2921       -.79494E-06    .11067E-02
  19  Prefactor     .10000E-03    1.3432        .88694E-08** at limit **
  20  norm          .41404E-01    .11845       -.53322E-06    .21492E-02
  21  norm          4.8093        3.3997        .12273E-06    .42190E-03
  22  Prefactor     .10000E-03    10.217       -.20229E-05** at limit **
  23  Prefactor     .10000E-03    3.1561        .12870E-06** at limit **
  24  Prefactor     .10000E-03    61.963       -.13256E-04** at limit **
  25  Normalizat    1.5247        .18703        .23341E-05    .88226E-03
  26  Prefactor     .68413        .18662        .30599E-05    .67240E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.81664
  Prefactor  = 0.975644
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 1.03901
  Prefactor  = 0.0001
  norm       = 0.877237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.690146
  Prefactor  = 0.0001
  norm       = 2.7976
  Prefactor  = 3.26491
  Prefactor  = 0.656094
  Prefactor  = 0.0001
  norm       = 0.0414036
  norm       = 4.80934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 1.52472
  Prefactor  = 0.684132
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.705     FROM HESSE     STATUS=OK           454 CALLS     3164 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4361        .11438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.7365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.8166        9.7350        .13499E-03   -1.5114    
   4  Prefactor     .97564        263.79        .76506E-02   -1.5510    
   5  Prefactor     .10000E-03    5.5097        .17216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    49.467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.381        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0390        1.2662        .49283E-04   -1.5504    
   9  Prefactor     .10000E-03    10.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .87724        .76725        .58950E-04   -1.5521    
  11  Prefactor     .10000E-03    9.4919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.9933        .24798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    90.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .69015        2.8915        .19134E-02   -1.5542    
  15  Prefactor     .10000E-03    1.0268        .74074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7976        3.9440        .13948E-03   -1.5373    
  17  Prefactor     3.2649        2.9230        .98969E-04   -1.5347    
  18  Prefactor     .65609        2.8262        .17753E-02   -1.5546    
  19  Prefactor     .10000E-03    1.3445        .85058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .41404E-01    .11717        .42762E-04   -1.5667    
  21  norm          4.8093        3.3973        .11285E-03   -1.5269    
  22  Prefactor     .10000E-03    10.495        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.1574        .13036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    63.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.5247        .21761        .20934E-03   -.77086    
  26  Prefactor     .68413        .21802        .30711E-03   -1.0415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83888e-09
Minuit parameter uncertainties:
  1  6.04699e-06
  2  8.55485e-05
  3  9.7368
  4  32.2282
  5  1.68276e-05
  6  0.00085988
  7  0.000122542
  8  1.26619
  9  6.62672e-05
  10  0.767255
  11  3.52883e-05
  12  2.85867e-05
  13  0.000384181
  14  2.82533
  15  1.83096e-06
  16  3.94433
  17  2.92311
  18  2.72342
  19  1.14269e-06
  20  0.117167
  21  3.39741
  22  2.49935e-05
  23  5.1172e-06
  24  0.000882884
  25  0.217744
  26  0.218291
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.859e-05  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.520e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  6.841e-01  2.183e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.525e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 7.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263914/likelihoodResults_612057601_612316801_4FGL_J1200.7+2008_daily_bin1438.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) = 5648.70638103
delta logL = -0.00159347508088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5648.70478792
delta logL = -3.71058376913e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5328       1.0000          .0000       10.000    
     3 'Normalizat'    1.5247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68424       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+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=   5648.705     FROM MIGRAD    STATUS=FAILED        94 CALLS      255 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.906        .24922E-02** at limit **
   2  Index         2.5455        7.1048        .50000       -.37655E-04
   3  Normalizat    1.5247        .20829        .20934E-03   -.40784E-04
   4  Prefactor     .68413        .21461        .30711E-03   -.31651E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5648.705     FROM SIMPLEX   STATUS=UNCHANGED    158 CALLS      413 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.906        .30732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5455        7.1048        .28770E-04   -.51313    
   3  Normalizat    1.5247        .20829        .36205E-05   -.77086    
   4  Prefactor     .68413        .21461        .82706E-05   -1.0415    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5648.705     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      446 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2671        .49845E-03** at limit **
   2  Index         2.5458        6.2724        .50000       -.37653E-04
   3  Normalizat    1.5247        .20838        .83737E-05   -.75486E-04
   4  Prefactor     .68413        .21478        .12284E-04   -.49235E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.54581
  Normalizat = 1.52472
  Prefactor  = 0.68413
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.705     FROM HESSE     STATUS=OK            29 CALLS      475 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0392        .99689E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5458        6.2690        .50000       -.51305    
   3  Normalizat    1.5247        .20814        .16747E-05   -.77086    
   4  Prefactor     .68413        .21451        .24569E-05   -1.0415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68137e-09
Minuit parameter uncertainties:
  1  0.000228035
  2  4.36305
  3  0.208258
  4  0.214768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263914': 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) = 5648.70478733
delta logL = 2.20000401896e-07

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.280e-04  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.546e+00  4.363e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  6.841e-01  2.148e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.525e+00  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.187 20.135

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/263914/cmap_HighResolution_612057601_612316801_4FGL_J1200.7+2008_daily_bin1438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-03', job_status='DONE', photon_flux_upper_limit='7.02e-08', time_completed='2021-09-04 21:06:00.062438', job_id='263914', GAL2='0.68', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1630814760.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='2.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1438' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:06:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 263914: <4FGL_J1200.7+2008_daily_bin1438> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1438> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 20:50:35 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:50:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 20:50:37 2021
Terminated at Sat Sep  4 21:06:00 2021
Results reported at Sat Sep  4 21:06:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1438 180.187 20.1354 612057601 612316801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.7+2008 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   731.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             257.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            925 sec.

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

