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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1365
RA = 180.187, Dec = 20.1354
tmin = 593136001, tmax = 593395201
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='263808', job_status='RUN', time_executed='2021-09-04 20:53:37.423886', time_epoch_executed='1630814017.42' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263808

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263808/ft1_4FGL_J1200.7+2008_daily_bin1365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263808/ft2_4FGL_J1200.7+2008_daily_bin1365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263808/ft1_4FGL_J1200.7+2008_daily_bin1365.fits outfile=/scratch/kocevski/263808/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1365.fits ra=180.187 dec=20.1354 rad=12.0 tmin=593136001.0 tmax=593395201.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 5.24
user 4.97
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263808/ft1_filtered_4FGL_J1200.7+2008_daily_bin1365.fits" evtable="EVENTS" scfile=/scratch/kocevski/263808/ft2_4FGL_J1200.7+2008_daily_bin1365.fits sctable="SC_DATA" outfile=/scratch/kocevski/263808/ltcube_593136001_593395201_4FGL_J1200.7+2008_daily_bin1365.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/263808/ft2_4FGL_J1200.7+2008_daily_bin1365.fits
.....................!
real 12.34
user 12.00
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263808/ft1_filtered_4FGL_J1200.7+2008_daily_bin1365.fits evtable="EVENTS" scfile=/scratch/kocevski/263808/ft2_4FGL_J1200.7+2008_daily_bin1365.fits sctable="SC_DATA" expcube=/scratch/kocevski/263808/ltcube_593136001_593395201_4FGL_J1200.7+2008_daily_bin1365.fits outfile=/scratch/kocevski/263808/expmap_593136001_593395201_4FGL_J1200.7+2008_daily_bin1365.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/263808/ltcube_593136001_593395201_4FGL_J1200.7+2008_daily_bin1365.fits
.....................!
real 189.86
user 185.41
sys 4.05

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/263808/ft1_filtered_4FGL_J1200.7+2008_daily_bin1365.fits scfile=/scratch/kocevski/263808/ft2_4FGL_J1200.7+2008_daily_bin1365.fits outfile=/scratch/kocevski/263808/cmap_593136001_593395201_4FGL_J1200.7+2008_daily_bin1365.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.38
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263808/ft1_filtered_4FGL_J1200.7+2008_daily_bin1365.fits evtable="EVENTS" scfile=/scratch/kocevski/263808/ft2_4FGL_J1200.7+2008_daily_bin1365.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263808/Model_4FGL_J1200.7+2008_daily_bin1365.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/263808/ft1_filtered_4FGL_J1200.7+2008_daily_bin1365.fits.....................!
real 52.23
user 50.96
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4853       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.900       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3405       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3845       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .89092       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6711       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13240E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0525       1.0000         .10000E-03   10000.    
    16 'norm      '    2.4537       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1540       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3883       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4847       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.614       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.297       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .93714       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1294       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=   5552.700     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     2685 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0797       -.19007E-06** at limit **
   2  norm          2.4826        9.7155        .36149E-06   -.81107E-04
   3  Prefactor     11.900        10.651       -.60767E-07   -.13797E-04
   4  Prefactor     .10001E-03    18.844       -.83660E-05** at limit **
   5  Prefactor     .10000E-03    4.3667       -.68325E-07** at limit **
   6  Prefactor     5.3313        18.571       -.35129E-05   -.17203E-03
   7  Prefactor     3.3809        7.7743        .32150E-05   -.12363E-02
   8  Prefactor     .88321        2.7516        .87940E-06   -.11601E-03
   9  Prefactor     .10001E-03    22.875        .10269E-04** at limit **
  10  norm          .10000E-03    .29967       -.32748E-07** at limit **
  11  Prefactor     .10000E-03    7.1690       -.43374E-06** at limit **
  12  Prefactor     1.6750        3.8029       -.10495E-06   -.34598E-03
  13  Prefactor     .10000E-03    40.612       -.39509E-05** at limit **
  14  Prefactor     .10000E-03    2.4529        .33084E-06** at limit **
  15  Prefactor     4.0554        3.8596       -.17258E-06   -.52213E-03
  16  norm          2.4526        3.0287        .27752E-06    .21924E-04
  17  Prefactor     7.1549        3.3788       -.16372E-06   -.35640E-04
  18  Prefactor     .10000E-03    .93913       -.14313E-06** at limit **
  19  Prefactor     3.3883        3.5459       -.33701E-06   -.19087E-03
  20  norm          .10000E-03    .55190E-01   -.43758E-07** at limit **
  21  norm          1.4847        1.7946       -.50418E-10    .20659E-04
  22  Prefactor     12.612        9.7150        .57905E-08   -.17182E-04
  23  Prefactor     16.300        10.499        .68933E-08    .12916E-04
  24  Prefactor     .10000E-03    11.214        .84139E-06** at limit **
  25  Normalizat    .93754        .18398       -.96373E-06   -.14016E-03
  26  Prefactor     1.1292        .18653        .65333E-06   -.14602E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.48264
  Prefactor  = 11.9003
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 5.33127
  Prefactor  = 3.38089
  Prefactor  = 0.883213
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.67502
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.05536
  norm       = 2.45263
  Prefactor  = 7.15493
  Prefactor  = 0.0001
  Prefactor  = 3.38828
  norm       = 0.0001
  norm       = 1.48468
  Prefactor  = 12.6124
  Prefactor  = 16.2998
  Prefactor  = 0.0001
  Normalizat = 0.937542
  Prefactor  = 1.12918
 **********
 **   18 **HESSE 
 **********

 FCN=   5552.700     FROM HESSE     STATUS=OK           464 CALLS     3149 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0831        .10494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4826        9.7368        .25930E-03   -1.5393    
   3  Prefactor     11.900        10.666        .11612E-03   -1.5018    
   4  Prefactor     .10001E-03    19.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.3735        .15208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.3313        17.865        .17391E-03   -1.5246    
   7  Prefactor     3.3809        11.682        .10997E-02   -1.5340    
   8  Prefactor     .88321        2.6149        .17290E-03   -1.5520    
   9  Prefactor     .10001E-03    23.592        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .30352        .39789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.1872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6750        3.7001        .20087E-03   -1.5449    
  13  Prefactor     .10000E-03    40.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.5701        .21059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.0554        3.7029        .12828E-03   -1.5305    
  16  norm          2.4526        3.0296        .12523E-03   -1.5395    
  17  Prefactor     7.1549        3.3880        .81622E-04   -1.5173    
  18  Prefactor     .10000E-03    1.7288        .13887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.3883        3.5436        .13951E-03   -1.5340    
  20  norm          .10000E-03    .61217E-01    .34044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4847        1.7871        .10682E-03   -1.5464    
  22  Prefactor     12.612        9.7153        .11278E-03   -1.4998    
  23  Prefactor     16.300        10.472        .99213E-04   -1.4900    
  24  Prefactor     .10000E-03    11.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .93754        .21600        .24744E-03   -.95153    
  26  Prefactor     1.1292        .21975        .24473E-03   -.88539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.88423e-09
Minuit parameter uncertainties:
  1  5.08558e-06
  2  9.74301
  3  10.6677
  4  0.000672753
  5  1.49978e-06
  6  17.883
  7  11.6899
  8  2.61528
  9  0.000754298
  10  3.79496e-07
  11  2.6666e-05
  12  3.70056
  13  0.000487372
  14  3.74822e-05
  15  3.70311
  16  3.02983
  17  3.38814
  18  1.96874e-05
  19  3.54378
  20  4.85997e-09
  21  1.78712
  22  9.71651
  23  10.4729
  24  5.13039e-05
  25  0.216203
  26  0.219931
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.675e+00  3.701e+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.129e+00  2.199e-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:  9.375e-01  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/263808/likelihoodResults_593136001_593395201_4FGL_J1200.7+2008_daily_bin1365.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) = 5552.60790554
delta logL = 0.0924761617944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5552.60275283
delta logL = 0.0976288691354

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0235       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9171       1.0000          .0000       10.000    
     3 'Normalizat'    .94872       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1206       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=   5552.603     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      214 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0245        10.007        .72723E-02    .34459E-03
   2  Index         1.9175        1.9138        .26289       -.40287E-04
   3  Normalizat    .94868        .17695        .45521E-01    .93919E-05
   4  Prefactor     1.1206        .19110        .55518E-01    .47386E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.02445
  Index      = 1.91748
  Normalizat = 0.948679
  Prefactor  = 1.1206
 **********
 **   18 **HESSE 
 **********

 FCN=   5552.603     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0245        3.8430        .18858E-03   -1.5423    
   2  Index         1.9175        1.1197        .15084E-01   -.66429    
   3  Normalizat    .94868        .20316        .24611E-03   -.94770    
   4  Prefactor     1.1206        .21898        .24548E-03   -.88811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33225e-09
Minuit parameter uncertainties:
  1  3.84348
  2  1.13535
  3  0.203327
  4  0.219161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263808': 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) = 5552.60275275
delta logL = 0.0976289508253

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  2.024e+00  3.843e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  1.917e+00  1.135e+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:  1.121e+00  2.192e-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:  9.487e-01  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
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/263808/cmap_HighResolution_593136001_593395201_4FGL_J1200.7+2008_daily_bin1365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.16e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-04 21:06:29.069836', job_id='263808', GAL2='1.12', fit_tolerance='1e-08', EG2='0.95', EG='0.94', time_epoch_completed='1630814789.07', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='9.76e-02', ts2='0.45', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1365' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:06:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 263808: <4FGL_J1200.7+2008_daily_bin1365> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1365> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 20:50:28 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:50:30 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:30 2021
Terminated at Sat Sep  4 21:06:29 2021
Results reported at Sat Sep  4 21:06:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1365 180.187 20.1354 593136001 593395201 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 :                                   693.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

