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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1225
RA = 180.187, Dec = 20.1354
tmin = 556848001, tmax = 557107201
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='262361', job_status='RUN', time_executed='2021-09-04 20:46:22.900406', time_epoch_executed='1630813582.9' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262361

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262361/ft1_4FGL_J1200.7+2008_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262361/ft2_4FGL_J1200.7+2008_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262361/ft1_4FGL_J1200.7+2008_daily_bin1225.fits outfile=/scratch/kocevski/262361/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1225.fits ra=180.187 dec=20.1354 rad=12.0 tmin=556848001.0 tmax=557107201.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.58
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/262361/ft2_4FGL_J1200.7+2008_daily_bin1225.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/262361/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1225.fits evtable="EVENTS" outfile="/scratch/kocevski/262361/ft1_filtered_4FGL_J1200.7+2008_daily_bin1225.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/262361/ft1_filtered_4FGL_J1200.7+2008_daily_bin1225.fits" evtable="EVENTS" scfile=/scratch/kocevski/262361/ft2_4FGL_J1200.7+2008_daily_bin1225.fits sctable="SC_DATA" outfile=/scratch/kocevski/262361/ltcube_556848001_557107201_4FGL_J1200.7+2008_daily_bin1225.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/262361/ft2_4FGL_J1200.7+2008_daily_bin1225.fits
.....................!
real 12.26
user 11.92
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262361/ft1_filtered_4FGL_J1200.7+2008_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/262361/ft2_4FGL_J1200.7+2008_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/262361/ltcube_556848001_557107201_4FGL_J1200.7+2008_daily_bin1225.fits outfile=/scratch/kocevski/262361/expmap_556848001_557107201_4FGL_J1200.7+2008_daily_bin1225.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/262361/ltcube_556848001_557107201_4FGL_J1200.7+2008_daily_bin1225.fits
.....................!
real 193.14
user 187.78
sys 4.97

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/262361/ft1_filtered_4FGL_J1200.7+2008_daily_bin1225.fits scfile=/scratch/kocevski/262361/ft2_4FGL_J1200.7+2008_daily_bin1225.fits outfile=/scratch/kocevski/262361/cmap_556848001_557107201_4FGL_J1200.7+2008_daily_bin1225.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262361/ft1_filtered_4FGL_J1200.7+2008_daily_bin1225.fits scfile=/scratch/kocevski/262361/ft2_4FGL_J1200.7+2008_daily_bin1225.fits outfile=/scratch/kocevski/262361/cmap_HighResolution_556848001_557107201_4FGL_J1200.7+2008_daily_bin1225.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262361/ft1_filtered_4FGL_J1200.7+2008_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/262361/ft2_4FGL_J1200.7+2008_daily_bin1225.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262361/Model_4FGL_J1200.7+2008_daily_bin1225.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/262361/ft1_filtered_4FGL_J1200.7+2008_daily_bin1225.fits......................!
real 23.19
user 22.04
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11326E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    133.10       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.603       1.0000         .10000E-03   10000.    
     4 'Prefactor '    53.603       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    119.47       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.9594       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.886       1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.382       1.0000         .10000E-03   10000.    
    13 'Prefactor '    254.22       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.2740       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15469E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .29395       1.0000         .10000E-03   10000.    
    21 'norm      '    .11187E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.165       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1101       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2540       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=   1465.158     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3918 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10016E-03    7870.2        .10056E-03** at limit **
   2  norm          132.87        442.47       -.14747E-05   -.59970E-05
   3  Prefactor     25.710        176.21       -.12420E-04   -.18615E-04
   4  Prefactor     53.283        234.94       -.23326E-05   -.13110E-04
   5  Prefactor     .10000E-03    113.12        .80558E-07** at limit **
   6  Prefactor     119.51        108.03        .54857E-06   -.30999E-05
   7  Prefactor     .10000E-03    20.814       -.35712E-09** at limit **
   8  Prefactor     .10000E-03    2.6330       -.85922E-08** at limit **
   9  Prefactor     .10000E-03    19.309        .21300E-06** at limit **
  10  norm          2.9593        3.0607        .19972E-07   -.19333E-04
  11  Prefactor     30.912        65.991        .15288E-06    .45096E-05
  12  Prefactor     41.387        19.504        .16992E-07   -.29233E-04
  13  Prefactor     254.22        309.17        .33608E-06    .62614E-06
  14  Prefactor     .10000E-03    5.6259        .87830E-07** at limit **
  15  Prefactor     .10000E-03    4.4854        .15071E-06** at limit **
  16  norm          3.2745        4.5636       -.11264E-07   -.28404E-04
  17  Prefactor     .10000E-03    2.7911        .16706E-07** at limit **
  18  Prefactor     .10000E-03    4.8286        .36644E-06** at limit **
  19  Prefactor     .10000E-03    9.4890        .89540E-07** at limit **
  20  norm          .29363        .53940        .15013E-06    .11083E-03
  21  norm          .10000E-03    13.488        .18706E-06** at limit **
  22  Prefactor     11.166        13.211        .58288E-09   -.13546E-05
  23  Prefactor     .10000E-03    17.868        .11718E-06** at limit **
  24  Prefactor     .10000E-03    25.231        .12487E-06** at limit **
  25  Normalizat    1.1097        .47732       -.59833E-05    .67577E-05
  26  Prefactor     1.2544        .43776        .46273E-05   -.94063E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100163
  norm       = 132.874
  Prefactor  = 25.7096
  Prefactor  = 53.2827
  Prefactor  = 0.0001
  Prefactor  = 119.511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.9593
  Prefactor  = 30.9124
  Prefactor  = 41.3873
  Prefactor  = 254.216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.27449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.29363
  norm       = 0.0001
  Prefactor  = 11.1656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10971
  Prefactor  = 1.25441
 **********
 **   18 **HESSE 
 **********

 FCN=   1465.158     FROM HESSE     STATUS=OK           454 CALLS     4372 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10016E-03    8012.3        .20678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          132.87        442.48        .17453E-03   -1.3397    
   3  Prefactor     25.710        188.61        .79169E-04   -1.4693    
   4  Prefactor     53.283        234.37        .27392E-03   -1.4247    
   5  Prefactor     .10000E-03    113.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     119.51        108.15        .18408E-03   -1.3517    
   7  Prefactor     .10000E-03    20.819        .17062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6332        .60657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.324        .16431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9593        3.0619        .65588E-04   -1.5364    
  11  Prefactor     30.912        65.890        .72095E-04   -1.4595    
  12  Prefactor     41.387        19.495        .62314E-04   -1.4420    
  13  Prefactor     254.22        308.79        .12706E-03   -1.2505    
  14  Prefactor     .10000E-03    5.6555        .88611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.5040        .79153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.2745        4.5387        .93555E-04   -1.5346    
  17  Prefactor     .10000E-03    2.7940        .62374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.2810        .16148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.5174        .11514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .29363        .51708        .34173E-03   -1.5600    
  21  norm          .10000E-03    13.674        .13716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.166        13.211        .11990E-03   -1.5040    
  23  Prefactor     .10000E-03    17.924        .15805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    25.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1097        .52522        .30651E-03   -.89441    
  26  Prefactor     1.2544        .48787        .28427E-03   -.84673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79073e-10
Minuit parameter uncertainties:
  1  0.0716682
  2  454.306
  3  139.896
  4  224.995
  5  1.57953e-05
  6  108.328
  7  6.73376e-06
  8  1.10518e-06
  9  5.13791e-08
  10  3.06207
  11  66.0456
  12  19.4983
  13  310.803
  14  3.95525e-06
  15  2.32699e-06
  16  4.5392
  17  9.10455e-07
  18  2.02425e-06
  19  5.36738e-07
  20  0.517084
  21  1.50671e-05
  22  13.2139
  23  1.0023e-05
  24  9.55453e-06
  25  0.527722
  26  0.489652
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  4.139e+01  1.950e+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:  1.254e+00  4.897e-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.110e+00  5.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.46
Ra Dec: 180.187 20.135
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 4.03e-07 +/- 1.90e-07
Energy Flux (Fixed Index): 1.14e-04 +/- 5.39e-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) = 1465.01289841
delta logL = 0.145001990659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1464.92644881
delta logL = 0.231451590596

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.449       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1949       1.0000          .0000       10.000    
     3 'Normalizat'    1.1723       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2054       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=   1464.926     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      220 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.465        26.392        .29341E-05   -.58005E-04
   2  Index         2.1950        .44239        .16673E-04   -.20281E-04
   3  Normalizat    1.1720        .42689       -.49234E-05   -.89633E-04
   4  Prefactor     1.2055        .41272       -.55685E-06   -.12416E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.465
  Index      = 2.19496
  Normalizat = 1.17199
  Prefactor  = 1.2055
 **********
 **   18 **HESSE 
 **********

 FCN=   1464.926     FROM HESSE     STATUS=OK            29 CALLS      249 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.465        26.584        .27956E-03   -1.4272    
   2  Index         2.1950        .44580        .35157E-02   -.59560    
   3  Normalizat    1.1720        .49609        .29983E-03   -.87473    
   4  Prefactor     1.2055        .48113        .28872E-03   -.86162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.62014e-11
Minuit parameter uncertainties:
  1  26.5904
  2  0.446667
  3  0.498095
  4  0.482903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262361': 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) = 1464.9264482
delta logL = 0.231452196535

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  5.146e+01  2.659e+01  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.195e+00  4.467e-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:  1.206e+00  4.829e-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.172e+00  4.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.85
Ra Dec: 180.187 20.135
Photon Index (Free Index): 2.19 +/- 0.45
Photon Flux (Free Index): 3.34e-07 +/- 1.90e-07
Energy Flux (Free Index): 1.52e-04 +/- 1.07e-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/262361/cmap_HighResolution_556848001_557107201_4FGL_J1200.7+2008_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.03e-07', energy_flux2='1.52e-04', photon_flux_error='1.90e-07', dlogl='2.31e-01', energy_flux='1.14e-04', photon_flux2='3.34e-07', job_status='DONE', time_completed='2021-09-04 20:53:32.286200', photon_index_error2='0.45', photon_index2='2.19', ts='10.46', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='1.07e-04', EG='1.11', time_epoch_completed='1630814012.29', return_code='0', job_id='262361', GAL2='1.21', EG2='1.17', return_code2='0', energy_flux_error='5.39e-05', photon_flux_error2='1.90e-07', ts2='10.85', photon_index='2.52' WHERE bin_id='1225' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:53:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 262361: <4FGL_J1200.7+2008_daily_bin1225> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1225> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:45:47 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:45:49 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:49 2021
Terminated at Sat Sep  4 20:53:32 2021
Results reported at Sat Sep  4 20:53:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1225 180.187 20.1354 556848001 557107201 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 :                                   420.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   463 sec.
    Turnaround time :                            465 sec.

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

