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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1348
RA = 180.187, Dec = 20.1354
tmin = 588729601, tmax = 588988801
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='263783', job_status='RUN', time_executed='2021-09-04 20:53:41.616934', time_epoch_executed='1630814021.62' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1348'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263783

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263783/ft1_4FGL_J1200.7+2008_daily_bin1348.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263783/ft2_4FGL_J1200.7+2008_daily_bin1348.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263783/ft1_4FGL_J1200.7+2008_daily_bin1348.fits outfile=/scratch/kocevski/263783/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1348.fits ra=180.187 dec=20.1354 rad=12.0 tmin=588729601.0 tmax=588988801.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.18
user 2.93
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263783/ft1_filtered_4FGL_J1200.7+2008_daily_bin1348.fits" evtable="EVENTS" scfile=/scratch/kocevski/263783/ft2_4FGL_J1200.7+2008_daily_bin1348.fits sctable="SC_DATA" outfile=/scratch/kocevski/263783/ltcube_588729601_588988801_4FGL_J1200.7+2008_daily_bin1348.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/263783/ft2_4FGL_J1200.7+2008_daily_bin1348.fits
.....................!
real 12.92
user 12.42
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263783/ft1_filtered_4FGL_J1200.7+2008_daily_bin1348.fits evtable="EVENTS" scfile=/scratch/kocevski/263783/ft2_4FGL_J1200.7+2008_daily_bin1348.fits sctable="SC_DATA" expcube=/scratch/kocevski/263783/ltcube_588729601_588988801_4FGL_J1200.7+2008_daily_bin1348.fits outfile=/scratch/kocevski/263783/expmap_588729601_588988801_4FGL_J1200.7+2008_daily_bin1348.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/263783/ltcube_588729601_588988801_4FGL_J1200.7+2008_daily_bin1348.fits
.....................!
real 191.61
user 186.67
sys 4.24

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/263783/ft1_filtered_4FGL_J1200.7+2008_daily_bin1348.fits scfile=/scratch/kocevski/263783/ft2_4FGL_J1200.7+2008_daily_bin1348.fits outfile=/scratch/kocevski/263783/cmap_588729601_588988801_4FGL_J1200.7+2008_daily_bin1348.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263783/ft1_filtered_4FGL_J1200.7+2008_daily_bin1348.fits scfile=/scratch/kocevski/263783/ft2_4FGL_J1200.7+2008_daily_bin1348.fits outfile=/scratch/kocevski/263783/cmap_HighResolution_588729601_588988801_4FGL_J1200.7+2008_daily_bin1348.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263783/ft1_filtered_4FGL_J1200.7+2008_daily_bin1348.fits evtable="EVENTS" scfile=/scratch/kocevski/263783/ft2_4FGL_J1200.7+2008_daily_bin1348.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263783/Model_4FGL_J1200.7+2008_daily_bin1348.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/263783/ft1_filtered_4FGL_J1200.7+2008_daily_bin1348.fits......................!
real 23.13
user 21.25
sys 1.52

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55080E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    1066.3       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    219.79       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15537E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.713       1.0000         .10000E-03   10000.    
    10 'norm      '    4.6994       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.0246       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.6908       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2585       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.045       1.0000         .10000E-03   10000.    
    16 'norm      '    10.899       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.354       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.0143       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.344       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6666       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .48424       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=   1228.865     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3533 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1362.4        .38449E-05** at limit **
   2  norm          1067.5        1191.6        .23110E-06    .38704E-05
   3  Prefactor     .10000E-03    131.95        .77358E-06** at limit **
   4  Prefactor     220.03        307.80       -.18701E-05    .18828E-05
   5  Prefactor     .10000E-03    373.00        .17187E-05** at limit **
   6  Prefactor     .10000E-03    67.600        .88403E-06** at limit **
   7  Prefactor     .10000E-03    16.468        .17892E-06** at limit **
   8  Prefactor     .10000E-03    4.4915        .40102E-06** at limit **
   9  Prefactor     31.690        45.108        .51829E-05   -.28498E-04
  10  norm          4.6994        4.5392       -.13967E-07   -.67209E-05
  11  Prefactor     .10000E-03    37.942        .24735E-05** at limit **
  12  Prefactor     9.0320        15.785        .24325E-06    .69283E-05
  13  Prefactor     10.153        1572.2       -.86004E-04   -.54585E-05
  14  Prefactor     1.2570        6.3691       -.27617E-07    .67889E-05
  15  Prefactor     12.047        9.6393        .29199E-07    .55208E-05
  16  norm          10.900        10.036       -.38906E-07   -.74671E-05
  17  Prefactor     19.354        10.956       -.22336E-07   -.35326E-05
  18  Prefactor     8.0152        6.2102       -.27946E-07    .93995E-05
  19  Prefactor     .10000E-03    17.167       -.76134E-06** at limit **
  20  norm          .10000E-03    .41876       -.61550E-06** at limit **
  21  norm          .10000E-03    6.6557       -.33542E-06** at limit **
  22  Prefactor     11.345        15.169       -.19962E-06   -.76157E-05
  23  Prefactor     .10000E-03    8.8699       -.31907E-07** at limit **
  24  Prefactor     .10000E-03    45.251       -.72759E-06** at limit **
  25  Normalizat    1.6655        .53729       -.46757E-05    .15042E-03
  26  Prefactor     .48504        .49053        .12281E-04    .23360E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  norm       = 1067.47
  Prefactor  = 0.0001
  Prefactor  = 220.028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.69
  norm       = 4.6994
  Prefactor  = 0.0001
  Prefactor  = 9.03203
  Prefactor  = 10.1527
  Prefactor  = 1.25699
  Prefactor  = 12.0471
  norm       = 10.9001
  Prefactor  = 19.3544
  Prefactor  = 8.01519
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.3451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.66551
  Prefactor  = 0.485043
 **********
 **   18 **HESSE 
 **********

 FCN=   1228.865     FROM HESSE     STATUS=OK           458 CALLS     3991 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1354.7        .19066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1067.5        1191.3        .64801E-04   -.90513    
   3  Prefactor     .10000E-03    131.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     220.03        307.60        .13641E-03   -1.2730    
   5  Prefactor     .10000E-03    372.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    67.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.467        .13899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.4901        .72536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.690        44.976        .71152E-04   -1.4581    
  10  norm          4.6994        4.5421        .71247E-04   -1.5274    
  11  Prefactor     .10000E-03    37.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.0320        15.794        .13342E-03   -1.5107    
  13  Prefactor     10.153        1603.0        .12873E-02   -1.5071    
  14  Prefactor     1.2570        6.2058        .16459E-03   -1.5484    
  15  Prefactor     12.047        9.6264        .90892E-04   -1.5014    
  16  norm          10.900        10.052        .99656E-04   -1.5048    
  17  Prefactor     19.354        10.978        .81779E-04   -1.4828    
  18  Prefactor     8.0152        6.2114        .73985E-04   -1.5142    
  19  Prefactor     .10000E-03    17.256        .14185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .45522        .43476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.6713        .88316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.345        15.160        .11894E-03   -1.5034    
  23  Prefactor     .10000E-03    8.8706        .10199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    45.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.6655        .59703        .25405E-03   -.73228    
  26  Prefactor     .48504        .53477        .40171E-03   -1.1267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22352e-10
Minuit parameter uncertainties:
  1  0.00543746
  2  1223
  3  7.13298e-05
  4  309.897
  5  0.000239821
  6  2.38763e-05
  7  3.77258e-06
  8  4.97916e-06
  9  45.0242
  10  4.54239
  11  1.00416e-06
  12  15.8016
  13  262.657
  14  5.58664
  15  9.62768
  16  10.0532
  17  10.979
  18  6.21193
  19  7.57708e-06
  20  4.23866e-06
  21  5.9992e-06
  22  15.1656
  23  5.4335e-07
  24  2.12636e-05
  25  0.599629
  26  0.540449
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  9.032e+00  1.580e+01  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:  4.850e-01  5.404e-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.666e+00  5.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/263783/likelihoodResults_588729601_588988801_4FGL_J1200.7+2008_daily_bin1348.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) = 1228.57219584
delta logL = 0.292597823732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1228.56495393
delta logL = 0.299839733643

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0524       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6883       1.0000          .0000       10.000    
     3 'Normalizat'    1.6059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52484       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=   1228.565     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      249 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0608        157.11        .58053E-02    .57313E-04
   2  Index         3.6888        6.6879        .11713        .25480E-04
   3  Normalizat    1.6065        .19006        .58146E-01   -.64398E-05
   4  Prefactor     .52447        .17477        .87296E-01    .28365E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.06082
  Index      = 3.68884
  Normalizat = 1.60645
  Prefactor  = 0.524467
 **********
 **   18 **HESSE 
 **********

 FCN=   1228.565     FROM HESSE     STATUS=OK            31 CALLS      280 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0608        11.269        .71636E-04   -1.5358    
   2  Index         3.6888        2.1688        .47340E-02   -.26534    
   3  Normalizat    1.6065        .58206        .25709E-03   -.74829    
   4  Prefactor     .52447        .52239        .38685E-03   -1.1087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13084e-12
Minuit parameter uncertainties:
  1  11.2771
  2  2.2494
  3  0.584545
  4  0.52729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263783': 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) = 1228.56494854
delta logL = 0.299845125495

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  3.061e+00  1.128e+01  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  3.689e+00  2.249e+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:  5.245e-01  5.273e-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.606e+00  5.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 180.187 20.135
Photon Index (Free Index): 3.69 +/- 2.25
Photon Flux (Free Index): 1.71e-07 +/- 2.11e-07
Energy Flux (Free Index): 2.72e-05 +/- 3.47e-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/263783/cmap_HighResolution_588729601_588988801_4FGL_J1200.7+2008_daily_bin1348.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-02', comment='SUCCESS', energy_flux2='2.72e-05', dlogl='3.00e-01', photon_flux2='1.71e-07', job_status='DONE', time_completed='2021-09-04 21:02:01.075911', photon_index_error2='2.25', photon_index2='3.69', ts='0.44', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', photon_flux_upper_limit='4.93e-07', energy_flux_error2='3.47e-05', EG='1.67', time_epoch_completed='1630814521.08', return_code='0', job_id='263783', GAL2='0.52', EG2='1.61', return_code2='0', photon_flux_error2='2.11e-07', ts2='1.06', photon_index='2.52' WHERE bin_id='1348' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:02:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 263783: <4FGL_J1200.7+2008_daily_bin1348> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1348 180.187 20.1354 588729601 588988801 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 :                                   416.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             230.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            695 sec.

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

