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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1411
RA = 180.187, Dec = 20.1354
tmin = 605059201, tmax = 605318401
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='263876', job_status='RUN', time_executed='2021-09-04 20:53:44.579382', time_epoch_executed='1630814024.58' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263876

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263876/ft1_4FGL_J1200.7+2008_daily_bin1411.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263876/ft2_4FGL_J1200.7+2008_daily_bin1411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263876/ft1_4FGL_J1200.7+2008_daily_bin1411.fits outfile=/scratch/kocevski/263876/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1411.fits ra=180.187 dec=20.1354 rad=12.0 tmin=605059201.0 tmax=605318401.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.31
user 5.06
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263876/ft1_filtered_4FGL_J1200.7+2008_daily_bin1411.fits" evtable="EVENTS" scfile=/scratch/kocevski/263876/ft2_4FGL_J1200.7+2008_daily_bin1411.fits sctable="SC_DATA" outfile=/scratch/kocevski/263876/ltcube_605059201_605318401_4FGL_J1200.7+2008_daily_bin1411.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/263876/ft2_4FGL_J1200.7+2008_daily_bin1411.fits
.....................!
real 11.60
user 11.28
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263876/ft1_filtered_4FGL_J1200.7+2008_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/263876/ft2_4FGL_J1200.7+2008_daily_bin1411.fits sctable="SC_DATA" expcube=/scratch/kocevski/263876/ltcube_605059201_605318401_4FGL_J1200.7+2008_daily_bin1411.fits outfile=/scratch/kocevski/263876/expmap_605059201_605318401_4FGL_J1200.7+2008_daily_bin1411.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/263876/ltcube_605059201_605318401_4FGL_J1200.7+2008_daily_bin1411.fits
.....................!
real 190.46
user 185.53
sys 4.60

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/263876/ft1_filtered_4FGL_J1200.7+2008_daily_bin1411.fits scfile=/scratch/kocevski/263876/ft2_4FGL_J1200.7+2008_daily_bin1411.fits outfile=/scratch/kocevski/263876/cmap_605059201_605318401_4FGL_J1200.7+2008_daily_bin1411.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263876/ft1_filtered_4FGL_J1200.7+2008_daily_bin1411.fits scfile=/scratch/kocevski/263876/ft2_4FGL_J1200.7+2008_daily_bin1411.fits outfile=/scratch/kocevski/263876/cmap_HighResolution_605059201_605318401_4FGL_J1200.7+2008_daily_bin1411.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1513       1.0000         .10000E-03   10000.    
     2 'norm      '    20.526       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.309       1.0000         .10000E-03   10000.    
     4 'Prefactor '    47.456       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8779       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.627       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2269       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9295       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5877       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4283       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .53305       1.0000         .10000E-03   10000.    
    16 'norm      '    .10377E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0620       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.4331       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.868       1.0000         .10000E-03   10000.    
    24 'Prefactor '    60.808       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1145       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98748       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=   5403.979     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3100 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1513        6.3253       -.47237E-07   -.21404E-03
   2  norm          20.525        14.172       -.47121E-06    .16119E-04
   3  Prefactor     12.309        11.772       -.34123E-07    .28366E-04
   4  Prefactor     47.448        54.991       -.95297E-05    .40998E-05
   5  Prefactor     6.8780        9.9217       -.12940E-06   -.50240E-04
   6  Prefactor     .10000E-03    6.3283        .55436E-06** at limit **
   7  Prefactor     17.626        18.663       -.11371E-05    .13265E-03
   8  Prefactor     2.2269        1.8004       -.80006E-07    .95924E-04
   9  Prefactor     .10000E-03    5.4183       -.12572E-05** at limit **
  10  norm          1.9295        1.2939       -.10477E-06   -.25468E-03
  11  Prefactor     1.5862        3.9080        .73958E-06   -.66671E-03
  12  Prefactor     .10000E-03    6.6478       -.29392E-05** at limit **
  13  Prefactor     .10000E-03    35.743        .29065E-07** at limit **
  14  Prefactor     6.4256        4.9126       -.51537E-06    .48031E-03
  15  Prefactor     .52704        3.4905       -.39379E-06    .35919E-03
  16  norm          .10000E-03    3.6388        .15933E-05** at limit **
  17  Prefactor     6.0600        3.6638       -.15612E-06   -.16043E-02
  18  Prefactor     .10000E-03    2.0402       -.65455E-09** at limit **
  19  Prefactor     .10000E-03    2.5275        .39223E-07** at limit **
  20  norm          .10000E-03    .10611       -.12623E-07** at limit **
  21  norm          8.4336        6.1152        .83394E-08   -.13994E-04
  22  Prefactor     .10000E-03    8.1125        .11013E-05** at limit **
  23  Prefactor     11.861        16.712       -.43085E-05   -.11554E-03
  24  Prefactor     60.804        35.311       -.36827E-05    .15311E-05
  25  Normalizat    1.1146        .22351        .31638E-05   -.39781E-04
  26  Prefactor     .98735        .20297        .31703E-06    .95990E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.15134
  norm       = 20.5254
  Prefactor  = 12.3088
  Prefactor  = 47.4483
  Prefactor  = 6.87795
  Prefactor  = 0.0001
  Prefactor  = 17.6259
  Prefactor  = 2.22686
  Prefactor  = 0.0001
  norm       = 1.92948
  Prefactor  = 1.58622
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.42558
  Prefactor  = 0.527043
  norm       = 0.000100004
  Prefactor  = 6.06003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.43362
  Prefactor  = 0.0001
  Prefactor  = 11.8613
  Prefactor  = 60.804
  Normalizat = 1.11456
  Prefactor  = 0.987354
 **********
 **   18 **HESSE 
 **********

 FCN=   5403.979     FROM HESSE     STATUS=OK           468 CALLS     3568 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1513        6.3559        .80934E-03   -1.5212    
   2  norm          20.525        14.186        .88407E-04   -1.4802    
   3  Prefactor     12.309        11.775        .11418E-03   -1.5006    
   4  Prefactor     47.448        55.011        .58206E-04   -1.4329    
   5  Prefactor     6.8780        9.9254        .76491E-03   -1.5183    
   6  Prefactor     .10000E-03    6.3314        .18059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.626        18.677        .95396E-04   -1.4868    
   8  Prefactor     2.2269        1.8006        .85589E-04   -1.5410    
   9  Prefactor     .10000E-03    5.4482        .16723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9295        1.2898        .65878E-04   -1.5430    
  11  Prefactor     1.5862        19.885        .16842E-02   -1.5456    
  12  Prefactor     .10000E-03    6.7725        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    35.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.4256        4.8458        .11378E-03   -1.5201    
  15  Prefactor     .52704        9.6864        .21406E-02   -1.5563    
  16  norm          .10000E-03    5.9256        .23999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.0600        3.3074        .94723E-04   -1.5216    
  18  Prefactor     .10000E-03    2.0911        .20416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.5301        .11407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .12547        .46352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.4336        6.1163        .13804E-03   -1.5127    
  22  Prefactor     .10000E-03    8.1628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.861        16.748        .11628E-03   -1.5019    
  24  Prefactor     60.804        35.369        .51454E-04   -1.4147    
  25  Normalizat    1.1146        .25790        .26633E-03   -.89286    
  26  Prefactor     .98735        .23694        .27858E-03   -.93152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48075e-09
Minuit parameter uncertainties:
  1  6.35659
  2  14.1886
  3  11.777
  4  55.0703
  5  9.92781
  6  2.95181e-06
  7  18.6835
  8  1.80063
  9  1.18731e-05
  10  1.28985
  11  11.2366
  12  2.06502e-05
  13  1.5261e-05
  14  4.8461
  15  4.51934
  16  0.00032398
  17  3.30755
  18  1.56327e-06
  19  2.11808e-06
  20  9.13934e-07
  21  6.11678
  22  4.00736e-05
  23  16.7544
  24  35.3815
  25  0.258197
  26  0.23719
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  9.874e-01  2.372e-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.115e+00  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/263876/likelihoodResults_605059201_605318401_4FGL_J1200.7+2008_daily_bin1411.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5403.9796804
delta logL = -0.000704502903318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5403.97897708
delta logL = -1.18064144772e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14581E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5966       1.0000          .0000       10.000    
     3 'Normalizat'    1.1148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98711       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=   5402.549     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      273 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10153        1.9512        .32392E-02    .61274E-03
   2  Index         5.6675        3.7890        .11420        .58828E-04
   3  Normalizat    .94496        .20882        .64588E-01    .93897E-04
   4  Prefactor     1.0937        .15382        .46106E-01    .13360E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.101533
  Index      = 5.66754
  Normalizat = 0.944957
  Prefactor  = 1.09372
 **********
 **   18 **HESSE 
 **********

 FCN=   5402.549     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      306 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10153        2.0076        .14520E-04   -1.5772    
   2  Index         5.6675        7.2437        .44318E-02    .13391    
   3  Normalizat    .94496        .23284        .28575E-03   -.94898    
   4  Prefactor     1.0937        .22355        .26623E-03   -.89667    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.07189e-09
Minuit parameter uncertainties:
  1  0.90255
  2  4.972
  3  0.233093
  4  0.223739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263876': 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): 102
logL (Free Index) = 5402.54948568
delta logL = 1.42949021416

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.015e-01  9.026e-01  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  5.668e+00  4.972e+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.094e+00  2.237e-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.450e-01  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.24
Ra Dec: 180.187 20.135
Photon Index (Free Index): 5.67 +/- 4.97
Photon Flux (Free Index): 1.66e-07 +/- 2.92e-06
Energy Flux (Free Index): 2.11e-05 +/- 3.65e-04

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/263876/cmap_HighResolution_605059201_605318401_4FGL_J1200.7+2008_daily_bin1411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.69e-03', comment='SUCCESS', energy_flux2='2.11e-05', dlogl='1.43e+00', photon_flux2='1.66e-07', job_status='DONE', time_completed='2021-09-04 21:06:53.617284', photon_index_error2='4.97', photon_index2='5.67', ts='-0.00', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='3.65e-04', EG='1.11', time_epoch_completed='1630814813.62', return_code='0', job_id='263876', GAL2='1.09', EG2='0.94', return_code2='102', photon_flux_error2='2.92e-06', ts2='3.24', photon_index='2.52' WHERE bin_id='1411' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:06:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 263876: <4FGL_J1200.7+2008_daily_bin1411> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1411 180.187 20.1354 605059201 605318401 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 :                                   707.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            982 sec.

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

