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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1255
RA = 180.187, Dec = 20.1354
tmin = 564624001, tmax = 564883201
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='262415', job_status='RUN', time_executed='2021-09-04 20:46:08.106655', time_epoch_executed='1630813568.11' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1255'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262415

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262415/ft1_4FGL_J1200.7+2008_daily_bin1255.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262415/ft2_4FGL_J1200.7+2008_daily_bin1255.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262415/ft1_4FGL_J1200.7+2008_daily_bin1255.fits outfile=/scratch/kocevski/262415/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1255.fits ra=180.187 dec=20.1354 rad=12.0 tmin=564624001.0 tmax=564883201.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.57
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/262415/ft2_4FGL_J1200.7+2008_daily_bin1255.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/262415/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1255.fits evtable="EVENTS" outfile="/scratch/kocevski/262415/ft1_filtered_4FGL_J1200.7+2008_daily_bin1255.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/262415/ft1_filtered_4FGL_J1200.7+2008_daily_bin1255.fits" evtable="EVENTS" scfile=/scratch/kocevski/262415/ft2_4FGL_J1200.7+2008_daily_bin1255.fits sctable="SC_DATA" outfile=/scratch/kocevski/262415/ltcube_564624001_564883201_4FGL_J1200.7+2008_daily_bin1255.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/262415/ft2_4FGL_J1200.7+2008_daily_bin1255.fits
.....................!
real 11.75
user 11.43
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262415/ft1_filtered_4FGL_J1200.7+2008_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/262415/ft2_4FGL_J1200.7+2008_daily_bin1255.fits sctable="SC_DATA" expcube=/scratch/kocevski/262415/ltcube_564624001_564883201_4FGL_J1200.7+2008_daily_bin1255.fits outfile=/scratch/kocevski/262415/expmap_564624001_564883201_4FGL_J1200.7+2008_daily_bin1255.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/262415/ltcube_564624001_564883201_4FGL_J1200.7+2008_daily_bin1255.fits
.....................!
real 191.73
user 187.37
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/262415/ft1_filtered_4FGL_J1200.7+2008_daily_bin1255.fits scfile=/scratch/kocevski/262415/ft2_4FGL_J1200.7+2008_daily_bin1255.fits outfile=/scratch/kocevski/262415/cmap_564624001_564883201_4FGL_J1200.7+2008_daily_bin1255.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262415/ft1_filtered_4FGL_J1200.7+2008_daily_bin1255.fits scfile=/scratch/kocevski/262415/ft2_4FGL_J1200.7+2008_daily_bin1255.fits outfile=/scratch/kocevski/262415/cmap_HighResolution_564624001_564883201_4FGL_J1200.7+2008_daily_bin1255.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.53
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262415/ft1_filtered_4FGL_J1200.7+2008_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/262415/ft2_4FGL_J1200.7+2008_daily_bin1255.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262415/Model_4FGL_J1200.7+2008_daily_bin1255.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/262415/ft1_filtered_4FGL_J1200.7+2008_daily_bin1255.fits.....................!
real 70.42
user 69.13
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.0037       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6225       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19996E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7979       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.9615       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.5498       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .71685       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.961       1.0000         .10000E-03   10000.    
    10 'norm      '    6.8731       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0988       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.810       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6198       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .72009       1.0000         .10000E-03   10000.    
    16 'norm      '    7.1341       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9353       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .88769       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7819       1.0000         .10000E-03   10000.    
    20 'norm      '    .14033       1.0000         .10000E-03   10000.    
    21 'norm      '    7.1976       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.217       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.4374       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .30035E-01   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1894       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88725       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=   8233.870     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     2771 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9332       -.34024E-07** at limit **
   2  norm          6.0213        5.9551        .65680E-06   -.98459E-03
   3  Prefactor     7.6399        6.9007        .20728E-06   -.30466E-03
   4  Prefactor     .10000E-03    52.739        .55834E-06** at limit **
   5  Prefactor     2.8867        9.1118        .17899E-06   -.78865E-04
   6  Prefactor     8.9770        12.940       -.20686E-06   -.54158E-04
   7  Prefactor     8.5212        11.515       -.20028E-05   -.26910E-03
   8  Prefactor     .71446        1.3956        .19158E-06   -.25147E-03
   9  Prefactor     15.979        23.008       -.51428E-08   -.85579E-05
  10  norm          6.8718        1.3839        .25607E-08   -.92003E-04
  11  Prefactor     .10000E-03    43.573       -.13400E-05** at limit **
  12  Prefactor     3.1018        3.6602        .23697E-06   -.13953E-03
  13  Prefactor     22.678        246.63       -.60216E-06    .15169E-05
  14  Prefactor     2.6180        3.3132       -.14523E-06   -.28672E-03
  15  Prefactor     .71470        2.6460        .57395E-06   -.56199E-03
  16  norm          7.1339        2.7211        .68542E-08   -.27710E-04
  17  Prefactor     2.9374        1.7750        .31152E-08    .18591E-04
  18  Prefactor     .88892        1.2577        .50311E-07   -.47531E-04
  19  Prefactor     1.7833        2.1144       -.13991E-07    .28983E-04
  20  norm          .14016        .19485        .34330E-07   -.12630E-02
  21  norm          7.1892        3.2929        .99472E-09   -.18153E-04
  22  Prefactor     15.199        11.941        .18038E-05    .31391E-03
  23  Prefactor     7.3509        5.5833        .17464E-07    .16265E-04
  24  Prefactor     .10000E-03    82.297        .40665E-06** at limit **
  25  Normalizat    1.1898        .17326       -.10891E-06   -.67301E-04
  26  Prefactor     .88716        .16675       -.37500E-06   -.23403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.02126
  Prefactor  = 7.63992
  Prefactor  = 0.0001
  Prefactor  = 2.8867
  Prefactor  = 8.97702
  Prefactor  = 8.52124
  Prefactor  = 0.71446
  Prefactor  = 15.9792
  norm       = 6.87176
  Prefactor  = 0.0001
  Prefactor  = 3.10183
  Prefactor  = 22.6777
  Prefactor  = 2.61796
  Prefactor  = 0.714698
  norm       = 7.13393
  Prefactor  = 2.9374
  Prefactor  = 0.88892
  Prefactor  = 1.78326
  norm       = 0.140163
  norm       = 7.18915
  Prefactor  = 15.1988
  Prefactor  = 7.35091
  Prefactor  = 0.000100003
  Normalizat = 1.18977
  Prefactor  = 0.887161
 **********
 **   18 **HESSE 
 **********

 FCN=   8233.870     FROM HESSE     STATUS=OK           478 CALLS     3249 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9365        .12321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.0213        7.0978        .81936E-03   -1.5217    
   3  Prefactor     7.6399        6.9804        .72626E-03   -1.5155    
   4  Prefactor     .10000E-03    53.012        .18245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8867        9.1381        .24322E-03   -1.5368    
   6  Prefactor     8.9770        12.701        .13389E-03   -1.5109    
   7  Prefactor     8.5212        11.790        .13709E-03   -1.5124    
   8  Prefactor     .71446        1.2720        .13861E-02   -1.5539    
   9  Prefactor     15.979        22.831        .10025E-03   -1.4908    
  10  norm          6.8718        1.3865        .45535E-04   -1.5184    
  11  Prefactor     .10000E-03    44.295        .41524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1018        3.6203        .17185E-03   -1.5356    
  13  Prefactor     22.678        241.35        .80423E-04   -1.4755    
  14  Prefactor     2.6180        3.1425        .15152E-03   -1.5384    
  15  Prefactor     .71470        2.6806        .25472E-03   -1.5539    
  16  norm          7.1339        2.7148        .84524E-04   -1.5174    
  17  Prefactor     2.9374        1.7763        .86662E-04   -1.5365    
  18  Prefactor     .88892        1.0523        .11448E-02   -1.5519    
  19  Prefactor     1.7833        2.1087        .13934E-03   -1.5441    
  20  norm          .14016        .18694        .43589E-03   -1.5633    
  21  norm          7.1892        3.2878        .10718E-03   -1.5172    
  22  Prefactor     15.199        12.098        .10268E-03   -1.4928    
  23  Prefactor     7.3509        5.5770        .14706E-03   -1.5166    
  24  Prefactor     .10000E-03    83.731        .18344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1898        .20686        .25566E-03   -.86920    
  26  Prefactor     .88716        .19769        .29748E-03   -.96591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7683e-09
Minuit parameter uncertainties:
  1  6.14242e-07
  2  7.09879
  3  6.98115
  4  9.53137e-05
  5  9.14247
  6  12.7045
  7  11.7936
  8  1.27206
  9  22.8434
  10  1.38655
  11  7.86653e-05
  12  3.62054
  13  148.736
  14  3.14274
  15  2.68105
  16  2.71489
  17  1.7763
  18  1.05232
  19  2.10883
  20  0.186939
  21  3.28786
  22  12.1002
  23  5.57742
  24  0.000926762
  25  0.207006
  26  0.197849
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  3.102e+00  3.621e+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.872e-01  1.978e-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.190e+00  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 180.187 20.135
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 3.02e-08 +/- 3.52e-08
Energy Flux (Fixed Index): 8.58e-06 +/- 1.00e-05

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

Saving results to:
/scratch/kocevski/262415/likelihoodResults_564624001_564883201_4FGL_J1200.7+2008_daily_bin1255.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) = 8233.08356896
delta logL = 0.786564999453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8232.96244754
delta logL = 0.907686417906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45332E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    7.0632       1.0000          .0000       10.000    
     3 'Normalizat'    1.0969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96595       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=   8232.962     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      343 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44378E-02    .36762E-01    .96672E-03    .20837E-01
   2  Index         7.0741        2.3977        .15320        .18885E-03
   3  Normalizat    1.0970        .38685E-01    .59819E-01    .29874E-04
   4  Prefactor     .96589        .39732E-01    .45840E-01    .24310E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00443776
  Index      = 7.0741
  Normalizat = 1.09704
  Prefactor  = 0.965889
 **********
 **   18 **HESSE 
 **********

 FCN=   8232.962     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      378 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44378E-02    .98144E-01    .39986E-04   -1.5695    
   2  Index         7.0741        7.6051        .57879E-02    .42774    
   3  Normalizat    1.0970        .14935        .26456E-03   -.89847    
   4  Prefactor     .96589        .15024        .28647E-03   -.93875    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.41707e-10
Minuit parameter uncertainties:
  1  0.0412662
  2  5.03062
  3  0.149406
  4  0.150302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262415': 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) = 8232.96244111
delta logL = 0.907692848243

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  4.438e-03  4.127e-02  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  7.074e+00  5.031e+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:  9.659e-01  1.503e-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.097e+00  1.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.25
Ra Dec: 180.187 20.135
Photon Index (Free Index): 7.07 +/- 5.03
Photon Flux (Free Index): 9.15e-08 +/- 5.84e-08
Energy Flux (Free Index): 1.09e-05 +/- 7.55e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/262415/cmap_HighResolution_564624001_564883201_4FGL_J1200.7+2008_daily_bin1255.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.46e-03', comment='SUCCESS', photon_flux='3.02e-08', energy_flux2='1.09e-05', photon_flux_error='3.52e-08', dlogl='9.08e-01', energy_flux='8.58e-06', photon_flux2='9.15e-08', job_status='DONE', time_completed='2021-09-04 21:01:07.957273', photon_index_error2='5.03', photon_index2='7.07', ts='1.21', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='7.55e-06', EG='1.19', time_epoch_completed='1630814467.96', return_code='0', job_id='262415', GAL2='0.97', EG2='1.10', return_code2='102', energy_flux_error='1.00e-05', photon_flux_error2='5.84e-08', ts2='3.25', photon_index='2.52' WHERE bin_id='1255' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:01:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 262415: <4FGL_J1200.7+2008_daily_bin1255> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1255> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:45:51 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:45:52 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:45:52 2021
Terminated at Sat Sep  4 21:01:08 2021
Results reported at Sat Sep  4 21:01:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1255 180.187 20.1354 564624001 564883201 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 :                                   887.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            917 sec.

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

