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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin803
RA = 180.187, Dec = 20.1354
tmin = 447465601, tmax = 447724801
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='260481', job_status='RUN', time_executed='2021-09-04 20:40:55.106709', time_epoch_executed='1630813255.11' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='803'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260481

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260481/ft1_4FGL_J1200.7+2008_daily_bin803.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260481/ft2_4FGL_J1200.7+2008_daily_bin803.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260481/ft1_4FGL_J1200.7+2008_daily_bin803.fits outfile=/scratch/kocevski/260481/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin803.fits ra=180.187 dec=20.1354 rad=12.0 tmin=447465601.0 tmax=447724801.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.38
user 3.15
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/260481/ft2_4FGL_J1200.7+2008_daily_bin803.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/260481/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin803.fits evtable="EVENTS" outfile="/scratch/kocevski/260481/ft1_filtered_4FGL_J1200.7+2008_daily_bin803.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/260481/ft1_filtered_4FGL_J1200.7+2008_daily_bin803.fits" evtable="EVENTS" scfile=/scratch/kocevski/260481/ft2_4FGL_J1200.7+2008_daily_bin803.fits sctable="SC_DATA" outfile=/scratch/kocevski/260481/ltcube_447465601_447724801_4FGL_J1200.7+2008_daily_bin803.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/260481/ft2_4FGL_J1200.7+2008_daily_bin803.fits
.....................!
real 11.97
user 11.61
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260481/ft1_filtered_4FGL_J1200.7+2008_daily_bin803.fits evtable="EVENTS" scfile=/scratch/kocevski/260481/ft2_4FGL_J1200.7+2008_daily_bin803.fits sctable="SC_DATA" expcube=/scratch/kocevski/260481/ltcube_447465601_447724801_4FGL_J1200.7+2008_daily_bin803.fits outfile=/scratch/kocevski/260481/expmap_447465601_447724801_4FGL_J1200.7+2008_daily_bin803.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/260481/ltcube_447465601_447724801_4FGL_J1200.7+2008_daily_bin803.fits
.....................!
real 191.27
user 185.60
sys 5.29

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/260481/ft1_filtered_4FGL_J1200.7+2008_daily_bin803.fits scfile=/scratch/kocevski/260481/ft2_4FGL_J1200.7+2008_daily_bin803.fits outfile=/scratch/kocevski/260481/cmap_447465601_447724801_4FGL_J1200.7+2008_daily_bin803.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/260481/ft1_filtered_4FGL_J1200.7+2008_daily_bin803.fits scfile=/scratch/kocevski/260481/ft2_4FGL_J1200.7+2008_daily_bin803.fits outfile=/scratch/kocevski/260481/cmap_HighResolution_447465601_447724801_4FGL_J1200.7+2008_daily_bin803.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7845       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.696       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .29852E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.998       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1024       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.2678       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0796       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2038       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.1644       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7623       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8365       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.4333       1.0000         .10000E-03   10000.    
    21 'norm      '    51.560       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2181       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .66475       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3252       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=   5785.643     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3074 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7846        6.8332        .41133E-06    .23751E-03
   2  norm          .10000E-03    3.0967       -.32100E-07** at limit **
   3  Prefactor     .10000E-03    22.277       -.30913E-05** at limit **
   4  Prefactor     27.699        36.809       -.74454E-06    .40700E-06
   5  Prefactor     .10006E-03    19.570       -.72100E-05** at limit **
   6  Prefactor     .10000E-03    21.157       -.24994E-05** at limit **
   7  Prefactor     14.999        10.626        .10999E-06    .73515E-04
   8  Prefactor     2.1006        2.1681        .25321E-06    .70005E-03
   9  Prefactor     .10000E-03    3.7148       -.17161E-07** at limit **
  10  norm          2.2675        1.2297       -.13900E-07    .34419E-03
  11  Prefactor     .10000E-03    5.0232        .37625E-06** at limit **
  12  Prefactor     4.0801        3.6070       -.37638E-06   -.54729E-04
  13  Prefactor     .10000E-03    26.922        .11305E-05** at limit **
  14  Prefactor     1.2040        2.0594        .18921E-06    .20993E-03
  15  Prefactor     .10000E-03    .90487       -.28045E-08** at limit **
  16  norm          4.1645        3.6165       -.27494E-06    .74388E-04
  17  Prefactor     1.7624        2.7809        .35022E-07    .12974E-03
  18  Prefactor     2.8368        2.5083        .11969E-05    .16483E-02
  19  Prefactor     .10000E-03    5.7255        .97459E-07** at limit **
  20  norm          1.4334        .34798        .43108E-08    .15162E-03
  21  norm          51.562        9.6871       -.11411E-06    .21626E-04
  22  Prefactor     1.2176        9.5929        .11819E-05    .72181E-04
  23  Prefactor     .10000E-03    5.2500       -.44696E-06** at limit **
  24  Prefactor     .10000E-03    18.644        .30054E-05** at limit **
  25  Normalizat    .66460        .18971       -.14294E-06    .23647E-03
  26  Prefactor     1.3252        .19570       -.16569E-06    .24534E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.78456
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.6992
  Prefactor  = 0.000100063
  Prefactor  = 0.0001
  Prefactor  = 14.9988
  Prefactor  = 2.10058
  Prefactor  = 0.0001
  norm       = 2.26749
  Prefactor  = 0.0001
  Prefactor  = 4.08015
  Prefactor  = 0.0001
  Prefactor  = 1.20399
  Prefactor  = 0.0001
  norm       = 4.16449
  Prefactor  = 1.76239
  Prefactor  = 2.83684
  Prefactor  = 0.0001
  norm       = 1.43336
  norm       = 51.5618
  Prefactor  = 1.21756
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.664605
  Prefactor  = 1.3252
 **********
 **   18 **HESSE 
 **********

 FCN=   5785.643     FROM HESSE     STATUS=OK           460 CALLS     3534 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7846        6.8444        .16699E-03   -1.5227    
   2  norm          .10000E-03    3.1036        .13072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.699        36.827        .76124E-04   -1.4655    
   5  Prefactor     .10006E-03    35.539        .40600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.999        10.622        .10342E-03   -1.4933    
   8  Prefactor     2.1006        2.1622        .10733E-03   -1.5418    
   9  Prefactor     .10000E-03    3.7198        .14318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2675        1.2271        .59620E-04   -1.5407    
  11  Prefactor     .10000E-03    5.0297        .16648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.0801        3.6009        .12845E-03   -1.5304    
  13  Prefactor     .10000E-03    26.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2040        2.0085        .13577E-03   -1.5489    
  15  Prefactor     .10000E-03    .91078        .70606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.1645        3.6213        .11388E-03   -1.5300    
  17  Prefactor     1.7624        2.7521        .13661E-03   -1.5442    
  18  Prefactor     2.8368        2.7718        .57601E-03   -1.5371    
  19  Prefactor     .10000E-03    5.7776        .17754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.4334        .34780        .20969E-04   -1.5469    
  21  norm          51.562        9.6888        .55853E-04   -1.4271    
  22  Prefactor     1.2176        9.7035        .40898E-03   -1.5487    
  23  Prefactor     .10000E-03    5.2671        .17024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .66460        .21684        .31287E-03   -1.0531    
  26  Prefactor     1.3252        .22558        .24934E-03   -.82561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64358e-09
Minuit parameter uncertainties:
  1  6.84536
  2  8.62118e-07
  3  7.36935e-05
  4  36.8571
  5  0.00299833
  6  7.43786e-05
  7  10.6229
  8  2.16224
  9  1.58162e-06
  10  1.22712
  11  6.57395e-06
  12  3.60111
  13  5.19254e-05
  14  2.00863
  15  4.33285e-08
  16  3.6215
  17  2.75233
  18  2.77195
  19  3.91338e-07
  20  0.347805
  21  9.68912
  22  6.87571
  23  1.01976e-05
  24  9.58179e-05
  25  0.217118
  26  0.225747
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  4.080e+00  3.601e+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:  1.325e+00  2.257e-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:  6.646e-01  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.42
Ra Dec: 180.187 20.135
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 3.97e-08 +/- 3.50e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 9.96e-06

TS (Fixed Index): 3.42
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/260481/likelihoodResults_447465601_447724801_4FGL_J1200.7+2008_daily_bin803.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) = 5785.254571
delta logL = 0.38830058665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5785.23282904
delta logL = 0.410042537907

Fit tolerance = 1e-08

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

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

 FCN=   5785.233     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      220 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3331        3.2595        .55420E-02   -.96092E-04
   2  Index         1.6481        .47688        .27367       -.57772E-04
   3  Normalizat    .69750        .17828        .69160E-01    .24413E-04
   4  Prefactor     1.3060        .19421        .56747E-01    .13684E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33309
  Index      = 1.64811
  Normalizat = 0.697497
  Prefactor  = 1.30603
 **********
 **   18 **HESSE 
 **********

 FCN=   5785.233     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3331        3.9381        .13235E-03   -1.5343    
   2  Index         1.6481        .72717        .95218E-02   -.73472    
   3  Normalizat    .69750        .20543        .30606E-03   -1.0399    
   4  Prefactor     1.3060        .22438        .25091E-03   -.83128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24846e-12
Minuit parameter uncertainties:
  1  3.93837
  2  0.731905
  3  0.205655
  4  0.224551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260481': 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) = 5785.23282903
delta logL = 0.410042554592

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  3.333e+00  3.938e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  1.648e+00  7.319e-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:  1.306e+00  2.246e-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:  6.975e-01  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.24
Ra Dec: 180.187 20.135
Photon Index (Free Index): 1.65 +/- 0.73
Photon Flux (Free Index): 1.33e-08 +/- 1.91e-08
Energy Flux (Free Index): 2.58e-05 +/- 4.30e-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/260481/cmap_HighResolution_447465601_447724801_4FGL_J1200.7+2008_daily_bin803.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.57e-03', comment='SUCCESS', photon_flux='3.97e-08', energy_flux2='2.58e-05', photon_flux_error='3.50e-08', dlogl='4.10e-01', energy_flux='1.13e-05', photon_flux2='1.33e-08', job_status='DONE', time_completed='2021-09-04 20:53:24.378404', photon_index_error2='0.73', photon_index2='1.65', ts='3.42', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='4.30e-05', EG='0.66', time_epoch_completed='1630814004.38', return_code='0', job_id='260481', GAL2='1.31', EG2='0.70', return_code2='0', energy_flux_error='9.96e-06', photon_flux_error2='1.91e-08', ts2='4.24', photon_index='2.52' WHERE bin_id='803' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:53:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 260481: <4FGL_J1200.7+2008_daily_bin803> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin803> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 20:40:40 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:40:41 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:40:41 2021
Terminated at Sat Sep  4 20:53:25 2021
Results reported at Sat Sep  4 20:53:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin803 180.187 20.1354 447465601 447724801 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 :                                   744.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            765 sec.

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

