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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1303
RA = 180.187, Dec = 20.1354
tmin = 577065601, tmax = 577324801
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='263718', job_status='RUN', time_executed='2021-09-04 20:50:32.302619', time_epoch_executed='1630813832.3' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1303'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263718

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263718/ft1_4FGL_J1200.7+2008_daily_bin1303.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263718/ft2_4FGL_J1200.7+2008_daily_bin1303.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263718/ft1_4FGL_J1200.7+2008_daily_bin1303.fits outfile=/scratch/kocevski/263718/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1303.fits ra=180.187 dec=20.1354 rad=12.0 tmin=577065601.0 tmax=577324801.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.09
user 2.86
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263718/ft1_filtered_4FGL_J1200.7+2008_daily_bin1303.fits" evtable="EVENTS" scfile=/scratch/kocevski/263718/ft2_4FGL_J1200.7+2008_daily_bin1303.fits sctable="SC_DATA" outfile=/scratch/kocevski/263718/ltcube_577065601_577324801_4FGL_J1200.7+2008_daily_bin1303.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/263718/ft2_4FGL_J1200.7+2008_daily_bin1303.fits
.....................!
real 12.64
user 12.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263718/ft1_filtered_4FGL_J1200.7+2008_daily_bin1303.fits evtable="EVENTS" scfile=/scratch/kocevski/263718/ft2_4FGL_J1200.7+2008_daily_bin1303.fits sctable="SC_DATA" expcube=/scratch/kocevski/263718/ltcube_577065601_577324801_4FGL_J1200.7+2008_daily_bin1303.fits outfile=/scratch/kocevski/263718/expmap_577065601_577324801_4FGL_J1200.7+2008_daily_bin1303.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/263718/ltcube_577065601_577324801_4FGL_J1200.7+2008_daily_bin1303.fits
.....................!
real 192.70
user 186.70
sys 5.30

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/263718/ft1_filtered_4FGL_J1200.7+2008_daily_bin1303.fits scfile=/scratch/kocevski/263718/ft2_4FGL_J1200.7+2008_daily_bin1303.fits outfile=/scratch/kocevski/263718/cmap_577065601_577324801_4FGL_J1200.7+2008_daily_bin1303.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.58
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263718/ft1_filtered_4FGL_J1200.7+2008_daily_bin1303.fits scfile=/scratch/kocevski/263718/ft2_4FGL_J1200.7+2008_daily_bin1303.fits outfile=/scratch/kocevski/263718/cmap_HighResolution_577065601_577324801_4FGL_J1200.7+2008_daily_bin1303.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.3348       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11034E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.5472       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2947       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7715       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.395       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.0460       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.8378       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4795       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .36618E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    10.344       1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.477       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2397       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82563       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=   6305.477     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3107 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9787        .43331E-08** at limit **
   2  norm          4.3351        9.0980       -.48118E-06   -.19658E-03
   3  Prefactor     .10000E-03    2.9275       -.17320E-07** at limit **
   4  Prefactor     .10015E-03    315.40        .15898E-03** at limit **
   5  Prefactor     .10000E-03    5.5419        .40146E-06** at limit **
   6  Prefactor     .10000E-03    5.3670       -.39155E-06** at limit **
   7  Prefactor     8.5479        9.0333        .13687E-05   -.13825E-03
   8  Prefactor     6.2948        2.1333        .15164E-07   -.54719E-04
   9  Prefactor     5.7672        16.699        .56871E-05    .20846E-03
  10  norm          .10000E-03    .34632        .10247E-07** at limit **
  11  Prefactor     .10000E-03    7.9047       -.59983E-07** at limit **
  12  Prefactor     12.395        5.4272       -.82694E-07   -.82759E-04
  13  Prefactor     .10001E-03    434.17       -.28126E-03** at limit **
  14  Prefactor     .10000E-03    .80572        .83464E-08** at limit **
  15  Prefactor     .10000E-03    1.7993        .33963E-07** at limit **
  16  norm          7.0460        3.4905        .27025E-06   -.66680E-04
  17  Prefactor     7.8378        3.2235       -.27745E-06    .73816E-05
  18  Prefactor     4.4802        3.6335        .15870E-06   -.44245E-03
  19  Prefactor     .10000E-03    2.2189        .30410E-07** at limit **
  20  norm          .36619E-01    .15153       -.23639E-06   -.31797E-02
  21  norm          10.344        4.8858        .10874E-06    .10119E-03
  22  Prefactor     22.476        17.482       -.17250E-05    .26270E-04
  23  Prefactor     .10000E-03    4.9159        .12147E-06** at limit **
  24  Prefactor     .10000E-03    51.215       -.31146E-06** at limit **
  25  Normalizat    1.2396        .19002       -.95752E-07   -.21847E-03
  26  Prefactor     .82569        .18511       -.60041E-06   -.16447E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.33506
  Prefactor  = 0.0001
  Prefactor  = 0.000100145
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.5479
  Prefactor  = 6.29477
  Prefactor  = 5.76719
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.395
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.04605
  Prefactor  = 7.83783
  Prefactor  = 4.48022
  Prefactor  = 0.0001
  norm       = 0.0366195
  norm       = 10.3442
  Prefactor  = 22.4764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23963
  Prefactor  = 0.825693
 **********
 **   18 **HESSE 
 **********

 FCN=   6305.477     FROM HESSE     STATUS=OK           456 CALLS     3563 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.346        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3351        9.1056        .19347E-03   -1.5292    
   3  Prefactor     .10000E-03    2.9301        .13268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10015E-03    322.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.5806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.3740        .17964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.5479        9.0252        .13711E-03   -1.5123    
   8  Prefactor     6.2948        2.1350        .64599E-04   -1.5206    
   9  Prefactor     5.7672        16.734        .16718E-03   -1.5228    
  10  norm          .10000E-03    .35659        .91104E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.9121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.395        5.4263        .11378E-03   -1.5004    
  13  Prefactor     .10001E-03    438.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .80977        .69582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.8403        .10396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.0460        3.4940        .93041E-04   -1.5177    
  17  Prefactor     7.8378        3.2281        .81396E-04   -1.5148    
  18  Prefactor     4.4802        3.6216        .11822E-03   -1.5285    
  19  Prefactor     .10000E-03    2.2250        .11547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .36619E-01    .21025        .57979E-03   -1.5670    
  21  norm          10.344        4.8784        .11530E-03   -1.5065    
  22  Prefactor     22.476        17.486        .84487E-04   -1.4759    
  23  Prefactor     .10000E-03    4.9352        .17188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    51.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2396        .22384        .25151E-03   -.85387    
  26  Prefactor     .82569        .21711        .30441E-03   -.98788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30184e-09
Minuit parameter uncertainties:
  1  3.93754e-06
  2  9.10854
  3  8.88153e-07
  4  0.0137529
  5  2.2445e-06
  6  1.82257e-06
  7  9.02661
  8  2.13506
  9  16.7479
  10  3.01089e-07
  11  7.03128e-06
  12  5.42654
  13  0.00393278
  14  9.95141e-07
  15  4.47795e-06
  16  3.4941
  17  3.2282
  18  3.62176
  19  1.99718e-06
  20  0.175252
  21  4.87861
  22  17.4904
  23  2.5227e-07
  24  0.000151696
  25  0.224017
  26  0.217334
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.240e+01  5.427e+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:  8.257e-01  2.173e-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.240e+00  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.50
Ra Dec: 180.187 20.135
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 1.21e-07 +/- 5.28e-08
Energy Flux (Fixed Index): 3.43e-05 +/- 1.50e-05

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) = 6303.35759354
delta logL = 2.11961691238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6303.24788528
delta logL = 2.22932517366

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.584       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7937       1.0000          .0000       10.000    
     3 'Normalizat'    1.2909       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79136       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=   6303.248     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      218 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.583        6.9740       -.22281E-05    .41585E-03
   2  Index         1.7935        .23650        .10338E-05    .85487E-03
   3  Normalizat    1.2908        .18105        .13947E-06   -.59481E-05
   4  Prefactor     .79155        .18330        .58319E-06   -.24502E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5828
  Index      = 1.79352
  Normalizat = 1.29081
  Prefactor  = 0.791549
 **********
 **   18 **HESSE 
 **********

 FCN=   6303.248     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.583        7.1885        .10146E-03   -1.4918    
   2  Index         1.7935        .30381        .53745E-02   -.69619    
   3  Normalizat    1.2908        .21191        .24719E-03   -.83841    
   4  Prefactor     .79155        .21408        .30992E-03   -1.0004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.92692e-09
Minuit parameter uncertainties:
  1  7.1889
  2  0.304126
  3  0.212052
  4  0.214301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263718': 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) = 6303.24788457
delta logL = 2.22932587594

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.558e+01  7.189e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  1.794e+00  3.041e-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.915e-01  2.143e-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.291e+00  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.99
Ra Dec: 180.187 20.135
Photon Index (Free Index): 1.79 +/- 0.30
Photon Flux (Free Index): 6.85e-08 +/- 4.00e-08
Energy Flux (Free Index): 8.36e-05 +/- 5.66e-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/263718/cmap_HighResolution_577065601_577324801_4FGL_J1200.7+2008_daily_bin1303.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.21e-07', energy_flux2='8.36e-05', photon_flux_error='5.28e-08', dlogl='2.23e+00', energy_flux='3.43e-05', photon_flux2='6.85e-08', job_status='DONE', time_completed='2021-09-04 21:01:48.593735', photon_index_error2='0.30', photon_index2='1.79', ts='10.50', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='5.66e-05', EG='1.24', time_epoch_completed='1630814508.59', return_code='0', job_id='263718', GAL2='0.79', EG2='1.29', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='4.00e-08', ts2='14.99', photon_index='2.52' WHERE bin_id='1303' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:01:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 263718: <4FGL_J1200.7+2008_daily_bin1303> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1303 180.187 20.1354 577065601 577324801 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 :                                   672.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            687 sec.

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

