/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 69 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 = 7529
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1308
RA = 180.187, Dec = 20.1354
tmin = 578361601, tmax = 578620801
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='263725', job_status='RUN', time_executed='2021-09-04 20:51:51.469606', time_epoch_executed='1630813911.47' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1308'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263725

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263725/ft1_4FGL_J1200.7+2008_daily_bin1308.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263725/ft2_4FGL_J1200.7+2008_daily_bin1308.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263725/ft1_4FGL_J1200.7+2008_daily_bin1308.fits outfile=/scratch/kocevski/263725/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1308.fits ra=180.187 dec=20.1354 rad=12.0 tmin=578361601.0 tmax=578620801.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.66
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263725/ft2_4FGL_J1200.7+2008_daily_bin1308.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/263725/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1308.fits evtable="EVENTS" outfile="/scratch/kocevski/263725/ft1_filtered_4FGL_J1200.7+2008_daily_bin1308.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263725/ft1_filtered_4FGL_J1200.7+2008_daily_bin1308.fits" evtable="EVENTS" scfile=/scratch/kocevski/263725/ft2_4FGL_J1200.7+2008_daily_bin1308.fits sctable="SC_DATA" outfile=/scratch/kocevski/263725/ltcube_578361601_578620801_4FGL_J1200.7+2008_daily_bin1308.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/263725/ft2_4FGL_J1200.7+2008_daily_bin1308.fits
.....................!
real 11.94
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263725/ft1_filtered_4FGL_J1200.7+2008_daily_bin1308.fits evtable="EVENTS" scfile=/scratch/kocevski/263725/ft2_4FGL_J1200.7+2008_daily_bin1308.fits sctable="SC_DATA" expcube=/scratch/kocevski/263725/ltcube_578361601_578620801_4FGL_J1200.7+2008_daily_bin1308.fits outfile=/scratch/kocevski/263725/expmap_578361601_578620801_4FGL_J1200.7+2008_daily_bin1308.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/263725/ltcube_578361601_578620801_4FGL_J1200.7+2008_daily_bin1308.fits
.....................!
real 191.08
user 185.15
sys 4.64

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/263725/ft1_filtered_4FGL_J1200.7+2008_daily_bin1308.fits scfile=/scratch/kocevski/263725/ft2_4FGL_J1200.7+2008_daily_bin1308.fits outfile=/scratch/kocevski/263725/cmap_578361601_578620801_4FGL_J1200.7+2008_daily_bin1308.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263725/ft1_filtered_4FGL_J1200.7+2008_daily_bin1308.fits scfile=/scratch/kocevski/263725/ft2_4FGL_J1200.7+2008_daily_bin1308.fits outfile=/scratch/kocevski/263725/cmap_HighResolution_578361601_578620801_4FGL_J1200.7+2008_daily_bin1308.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.38
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263725/ft1_filtered_4FGL_J1200.7+2008_daily_bin1308.fits evtable="EVENTS" scfile=/scratch/kocevski/263725/ft2_4FGL_J1200.7+2008_daily_bin1308.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263725/Model_4FGL_J1200.7+2008_daily_bin1308.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/263725/ft1_filtered_4FGL_J1200.7+2008_daily_bin1308.fits.....................!
real 57.10
user 55.40
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/263725/ft1_filtered_4FGL_J1200.7+2008_daily_bin1308.fits', '/scratch/kocevski/263725/ft2_4FGL_J1200.7+2008_daily_bin1308.fits', expMap='/scratch/kocevski/263725/expmap_578361601_578620801_4FGL_J1200.7+2008_daily_bin1308.fits', expCube='/scratch/kocevski/263725/ltcube_578361601_578620801_4FGL_J1200.7+2008_daily_bin1308.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/263725/Model_4FGL_J1200.7+2008_daily_bin1308.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/263725/ft1_filtered_4FGL_J1200.7+2008_daily_bin1308.fits
Spacecraft file(s): /scratch/kocevski/263725/ft2_4FGL_J1200.7+2008_daily_bin1308.fits
Exposure map: /scratch/kocevski/263725/expmap_578361601_578620801_4FGL_J1200.7+2008_daily_bin1308.fits
Exposure cube: /scratch/kocevski/263725/ltcube_578361601_578620801_4FGL_J1200.7+2008_daily_bin1308.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/263725/Model_4FGL_J1200.7+2008_daily_bin1308.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) = 6175.58475706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.591       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.696       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.802       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2938       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0272       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0052       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3176       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11831E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.3999       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.4564       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0414       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .51322E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .15023E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    1.9505       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.0262       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.924       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4016       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .74842       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=   6175.579     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3095 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.590        8.4949        .16793E-06   -.33987E-04
   2  norm          .10000E-03    8.0286       -.12567E-05** at limit **
   3  Prefactor     .10000E-03    6.3624       -.27728E-06** at limit **
   4  Prefactor     21.697        44.714        .22162E-05   -.24162E-04
   5  Prefactor     .10000E-03    3.8006        .15546E-06** at limit **
   6  Prefactor     13.820        22.559        .84372E-05   -.25799E-03
   7  Prefactor     .10000E-03    4.7348        .35969E-06** at limit **
   8  Prefactor     1.2936        1.2350       -.33893E-06    .18283E-04
   9  Prefactor     .10000E-03    2.7699       -.35315E-06** at limit **
  10  norm          2.0270        1.1544       -.23829E-06   -.16181E-03
  11  Prefactor     1.0112        11.959       -.53795E-06   -.17957E-04
  12  Prefactor     6.3176        4.5190       -.37988E-07   -.82274E-04
  13  Prefactor     .10000E-03    64.977        .38289E-05** at limit **
  14  Prefactor     .10000E-03    .73818       -.35146E-06** at limit **
  15  Prefactor     .10000E-03    .74485        .23818E-06** at limit **
  16  norm          6.3997        4.4427        .66854E-07   -.20368E-03
  17  Prefactor     9.4563        4.1925        .10110E-06   -.10790E-03
  18  Prefactor     2.0412        2.6310       -.22788E-06   -.56670E-03
  19  Prefactor     .10000E-03    6.8434        .12393E-05** at limit **
  20  norm          .14237E-01    .23554       -.22868E-06    .44490E-03
  21  norm          1.9539        5.5137       -.12208E-05   -.10096E-02
  22  Prefactor     9.0257        8.4776        .16994E-06   -.31754E-05
  23  Prefactor     13.924        9.4412        .13776E-06   -.10210E-04
  24  Prefactor     .10000E-03    7.6105        .18164E-05** at limit **
  25  Normalizat    1.4017        .20031       -.11064E-05    .17404E-03
  26  Prefactor     .74842        .18313        .70374E-06   -.17666E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5905
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.6971
  Prefactor  = 0.0001
  Prefactor  = 13.8203
  Prefactor  = 0.0001
  Prefactor  = 1.29358
  Prefactor  = 0.0001
  norm       = 2.02703
  Prefactor  = 1.01124
  Prefactor  = 6.31763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.39967
  Prefactor  = 9.45627
  Prefactor  = 2.04123
  Prefactor  = 0.000100001
  norm       = 0.0142373
  norm       = 1.95389
  Prefactor  = 9.02572
  Prefactor  = 13.9239
  Prefactor  = 0.0001
  Normalizat = 1.40174
  Prefactor  = 0.748417
 **********
 **   18 **HESSE 
 **********

 FCN=   6175.579     FROM HESSE     STATUS=OK           466 CALLS     3561 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.590        8.5048        .12311E-03   -1.5057    
   2  norm          .10000E-03    8.0674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.3822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.697        44.666        .85992E-04   -1.4776    
   5  Prefactor     .10000E-03    3.8018        .14961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.820        21.362        .10781E-03   -1.4964    
   7  Prefactor     .10000E-03    4.7514        .16694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.2936        1.2490        .81358E-04   -1.5480    
   9  Prefactor     .10000E-03    2.7696        .12769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0270        1.1541        .61153E-04   -1.5423    
  11  Prefactor     1.0112        95.837        .50616E-02   -1.5507    
  12  Prefactor     6.3176        4.5348        .13406E-03   -1.5205    
  13  Prefactor     .10000E-03    64.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .73871        .65814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .74626        .66203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.3997        4.4497        .11685E-03   -1.5202    
  17  Prefactor     9.4563        4.2097        .91298E-04   -1.5093    
  18  Prefactor     2.0412        2.6072        .13175E-03   -1.5422    
  19  Prefactor     .10000E-03    15.928        .36148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .14237E-01    1.1612        .68411E-03   -1.5684    
  21  norm          1.9539        5.3972        .28504E-03   -1.5428    
  22  Prefactor     9.0257        8.4791        .13341E-03   -1.5107    
  23  Prefactor     13.924        9.4386        .10734E-03   -1.4961    
  24  Prefactor     .10000E-03    7.5777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4017        .23791        .23694E-03   -.80578    
  26  Prefactor     .74842        .21538        .30731E-03   -1.0166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01179e-08
Minuit parameter uncertainties:
  1  8.5058
  2  2.35304e-05
  3  5.1318e-06
  4  44.7349
  5  6.5178e-06
  6  21.3736
  7  7.35282e-06
  8  1.24901
  9  7.08123e-06
  10  1.15415
  11  19.7207
  12  4.53503
  13  0.000274432
  14  4.35534e-06
  15  9.44509e-07
  16  4.44997
  17  4.20986
  18  2.60736
  19  0.000302918
  20  0.25626
  21  5.39851
  22  8.4802
  23  9.4396
  24  4.90582e-05
  25  0.238097
  26  0.21562
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  6.318e+00  4.535e+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

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  7.484e-01  2.156e-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.402e+00  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.53
Ra Dec: 180.187 20.135
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 6.15e-08 +/- 4.41e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 1.25e-05

TS (Fixed Index): 3.53
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263725/likelihoodResults_578361601_578620801_4FGL_J1200.7+2008_daily_bin1308.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) = 6175.43315049
delta logL = 0.146296263851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6175.42845181
delta logL = 0.15099494951

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2533       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0722       1.0000          .0000       10.000    
     3 'Normalizat'    1.4300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73405       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.

 FCN=   6175.428     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      269 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2534        5.5352        .14974E-03   -.12842E-02
   2  Index         2.0720        .81503        .96714E-02   -.19906E-03
   3  Normalizat    1.4301        .22253        .23496E-03    .10769E-03
   4  Prefactor     .73396        .21431        .31008E-03    .77946E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.25345
  Index      = 2.07204
  Normalizat = 1.43013
  Prefactor  = 0.733963
 **********
 **   18 **HESSE 
 **********

 FCN=   6175.428     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2534        5.6629        .59897E-05   -1.5208    
   2  Index         2.0720        .83320        .38686E-03   -.62561    
   3  Normalizat    1.4301        .22287        .46992E-04   -.79761    
   4  Prefactor     .73396        .21447        .12403E-04   -1.0221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74299e-09
Minuit parameter uncertainties:
  1  5.66341
  2  0.839184
  3  0.22302
  4  0.214716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263725': 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) = 6175.42845171
delta logL = 0.150995047517

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  6.253e+00  5.663e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.072e+00  8.392e-01  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:  7.340e-01  2.147e-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.430e+00  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.79
Ra Dec: 180.187 20.135
Photon Index (Free Index): 2.07 +/- 0.84
Photon Flux (Free Index): 3.55e-08 +/- 5.48e-08
Energy Flux (Free Index): 2.07e-05 +/- 2.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/263725/cmap_HighResolution_578361601_578620801_4FGL_J1200.7+2008_daily_bin1308.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', photon_flux='6.15e-08', energy_flux2='2.07e-05', photon_flux_error='4.41e-08', dlogl='1.51e-01', energy_flux='1.75e-05', photon_flux2='3.55e-08', job_status='DONE', time_completed='2021-09-04 21:05:16.567348', photon_index_error2='0.84', photon_index2='2.07', ts='3.53', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='2.00e-05', EG='1.40', time_epoch_completed='1630814716.57', return_code='0', job_id='263725', GAL2='0.73', EG2='1.43', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='5.48e-08', ts2='3.79', photon_index='2.52' WHERE bin_id='1308' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:05:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 263725: <4FGL_J1200.7+2008_daily_bin1308> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1308> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 20:50:23 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:50:25 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:25 2021
Terminated at Sat Sep  4 21:05:16 2021
Results reported at Sat Sep  4 21:05:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1308 180.187 20.1354 578361601 578620801 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 :                                   746.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

