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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1019
RA = 180.187, Dec = 20.1354
tmin = 503452801, tmax = 503712001
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='262036', job_status='RUN', time_executed='2021-09-04 20:49:24.943571', time_epoch_executed='1630813764.94' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262036

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262036/ft1_4FGL_J1200.7+2008_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262036/ft2_4FGL_J1200.7+2008_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262036/ft1_4FGL_J1200.7+2008_daily_bin1019.fits outfile=/scratch/kocevski/262036/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1019.fits ra=180.187 dec=20.1354 rad=12.0 tmin=503452801.0 tmax=503712001.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 7.90
user 7.32
sys 0.36

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262036/ft1_filtered_4FGL_J1200.7+2008_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/262036/ft2_4FGL_J1200.7+2008_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/262036/ltcube_503452801_503712001_4FGL_J1200.7+2008_daily_bin1019.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/262036/ft2_4FGL_J1200.7+2008_daily_bin1019.fits
.....................!
real 11.93
user 11.49
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262036/ft1_filtered_4FGL_J1200.7+2008_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/262036/ft2_4FGL_J1200.7+2008_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/262036/ltcube_503452801_503712001_4FGL_J1200.7+2008_daily_bin1019.fits outfile=/scratch/kocevski/262036/expmap_503452801_503712001_4FGL_J1200.7+2008_daily_bin1019.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/262036/ltcube_503452801_503712001_4FGL_J1200.7+2008_daily_bin1019.fits
.....................!
real 190.83
user 185.27
sys 5.18

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/262036/ft1_filtered_4FGL_J1200.7+2008_daily_bin1019.fits scfile=/scratch/kocevski/262036/ft2_4FGL_J1200.7+2008_daily_bin1019.fits outfile=/scratch/kocevski/262036/cmap_503452801_503712001_4FGL_J1200.7+2008_daily_bin1019.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.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262036/ft1_filtered_4FGL_J1200.7+2008_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/262036/ft2_4FGL_J1200.7+2008_daily_bin1019.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262036/Model_4FGL_J1200.7+2008_daily_bin1019.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/262036/ft1_filtered_4FGL_J1200.7+2008_daily_bin1019.fits.....................!
real 46.76
user 45.43
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10867E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12561E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12203E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12413E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5596       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11917       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9334       1.0000         .10000E-03   10000.    
    10 'norm      '    5.1914       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .26262E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5194       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2634       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.534       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.012       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0761       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .12353       1.0000         .10000E-03   10000.    
    21 'norm      '    10.311       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3368       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12816E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1109       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0679       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=   4592.958     FROM MIGRAD    STATUS=CONVERGED    687 CALLS     2719 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4687       -.29241E-07** at limit **
   2  norm          .10000E-03    11.916        .48856E-07** at limit **
   3  Prefactor     .10000E-03    5.4756        .12048E-05** at limit **
   4  Prefactor     .10000E-03    54.873        .14650E-04** at limit **
   5  Prefactor     .10000E-03    51.923       -.18260E-04** at limit **
   6  Prefactor     .10000E-03    27.948       -.72067E-06** at limit **
   7  Prefactor     3.5631        12.425       -.45098E-05   -.10710E-03
   8  Prefactor     .11635        1.3605       -.56754E-06    .37179E-03
   9  Prefactor     4.9480        13.799        .11483E-04    .30754E-03
  10  norm          5.1916        1.9195        .88919E-08    .34833E-03
  11  Prefactor     .10000E-03    84.433        .27907E-04** at limit **
  12  Prefactor     5.5195        5.8808        .18400E-05    .27695E-04
  13  Prefactor     .18918E-03    219.91       -.21836E-04** at limit **
  14  Prefactor     11.533        5.3349       -.77190E-06    .10026E-03
  15  Prefactor     .10000E-03    5.1625        .38565E-06** at limit **
  16  norm          14.012        5.1249       -.13317E-06    .24199E-04
  17  Prefactor     .10000E-03    1.2139        .17888E-07** at limit **
  18  Prefactor     3.0722        2.8011        .38464E-07   -.62109E-04
  19  Prefactor     .10000E-03    5.6035       -.22608E-06** at limit **
  20  norm          .12351        .27192       -.11095E-06   -.21894E-02
  21  norm          10.315        6.4112       -.29862E-06    .37255E-04
  22  Prefactor     .10000E-03    5.4394       -.11909E-05** at limit **
  23  Prefactor     4.3356        8.8072       -.29498E-06   -.98266E-04
  24  Prefactor     .10000E-03    22.399        .17588E-06** at limit **
  25  Normalizat    1.1110        .23077        .60843E-06    .50383E-03
  26  Prefactor     1.0678        .22551       -.48521E-07    .42065E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.56315
  Prefactor  = 0.116346
  Prefactor  = 4.94802
  norm       = 5.19161
  Prefactor  = 0.000100001
  Prefactor  = 5.51947
  Prefactor  = 0.000189183
  Prefactor  = 11.5329
  Prefactor  = 0.0001
  norm       = 14.0119
  Prefactor  = 0.0001
  Prefactor  = 3.07218
  Prefactor  = 0.0001
  norm       = 0.123508
  norm       = 10.3152
  Prefactor  = 0.0001
  Prefactor  = 4.33563
  Prefactor  = 0.0001
  Normalizat = 1.11105
  Prefactor  = 1.06777
 **********
 **   18 **HESSE 
 **********

 FCN=   4592.958     FROM HESSE     STATUS=OK           464 CALLS     3183 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4709        .10399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4939        .15483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    54.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    52.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.5631        12.485        .21422E-03   -1.5330    
   8  Prefactor     .11635        8.4580        .14817E-02   -1.5640    
   9  Prefactor     4.9480        14.102        .18108E-03   -1.5263    
  10  norm          5.1916        1.9216        .54317E-04   -1.5252    
  11  Prefactor     .10000E-03    84.058        .42890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.5195        5.8355        .15549E-03   -1.5238    
  13  Prefactor     .18918E-03    222.62        .23950       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.533        5.2926        .97547E-04   -1.5029    
  15  Prefactor     .10000E-03    5.3231        .29903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.012        5.1139        .87655E-04   -1.4959    
  17  Prefactor     .10000E-03    1.2154        .72789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.0722        2.7946        .10139E-03   -1.5357    
  19  Prefactor     .10000E-03    5.6396        .15641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .12351        .26129        .48824E-04   -1.5638    
  21  norm          10.315        6.3871        .12478E-03   -1.5066    
  22  Prefactor     .10000E-03    5.4435        .15435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.3356        8.7903        .19343E-03   -1.5291    
  24  Prefactor     .10000E-03    22.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1110        .27419        .27081E-03   -.89398    
  26  Prefactor     1.0678        .26771        .28153E-03   -.90503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01999e-09
Minuit parameter uncertainties:
  1  3.6618e-07
  2  2.03658e-06
  3  1.02287e-06
  4  7.25132e-05
  5  0.000240247
  6  5.31396e-05
  7  12.4944
  8  1.98343
  9  14.1112
  10  1.92164
  11  0.000638192
  12  5.83615
  13  0.282864
  14  5.29284
  15  4.20371e-05
  16  5.11408
  17  1.34799e-06
  18  2.79467
  19  1.22242e-05
  20  0.26129
  21  6.3875
  22  9.94801e-08
  23  8.7929
  24  1.01592e-07
  25  0.274547
  26  0.268042
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  5.519e+00  5.836e+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:  1.068e+00  2.680e-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.111e+00  2.745e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.64
Ra Dec: 180.187 20.135
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 5.38e-08 +/- 5.68e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.61e-05

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

Saving results to:
/scratch/kocevski/262036/likelihoodResults_503452801_503712001_4FGL_J1200.7+2008_daily_bin1019.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) = 4591.93645079
delta logL = 1.02197213418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4591.92573705
delta logL = 1.03268586924

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2155       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4865       1.0000          .0000       10.000    
     3 'Normalizat'    1.1483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0431       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=   4591.926     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      219 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2134        4.9963        .44004E-02   -.12295E-04
   2  Index         1.4872        .39385        .18894       -.59077E-04
   3  Normalizat    1.1480        .21844        .60380E-01    .70704E-05
   4  Prefactor     1.0437        .22410        .64257E-01    .84977E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.2134
  Index      = 1.48721
  Normalizat = 1.14805
  Prefactor  = 1.04372
 **********
 **   18 **HESSE 
 **********

 FCN=   4591.926     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2134        6.3991        .14243E-03   -1.5251    
   2  Index         1.4872        .58159        .72475E-02   -.77899    
   3  Normalizat    1.1480        .25979        .26704E-03   -.88224    
   4  Prefactor     1.0437        .26651        .28422E-03   -.91286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40763e-12
Minuit parameter uncertainties:
  1  6.39996
  2  0.584216
  3  0.260082
  4  0.266853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262036': 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) = 4591.92573102
delta logL = 1.03269190161

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  5.213e+00  6.400e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  1.487e+00  5.842e-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.044e+00  2.669e-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.148e+00  2.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.72
Ra Dec: 180.187 20.135
Photon Index (Free Index): 1.49 +/- 0.58
Photon Flux (Free Index): 1.97e-08 +/- 2.55e-08
Energy Flux (Free Index): 6.51e-05 +/- 9.34e-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/262036/cmap_HighResolution_503452801_503712001_4FGL_J1200.7+2008_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', photon_flux='5.38e-08', energy_flux2='6.51e-05', photon_flux_error='5.68e-08', dlogl='1.03e+00', energy_flux='1.53e-05', photon_flux2='1.97e-08', job_status='DONE', time_completed='2021-09-04 21:01:33.743594', photon_index_error2='0.58', photon_index2='1.49', ts='1.64', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='9.34e-05', EG='1.11', time_epoch_completed='1630814493.74', return_code='0', job_id='262036', GAL2='1.04', EG2='1.15', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='2.55e-08', ts2='3.72', photon_index='2.52' WHERE bin_id='1019' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:01:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 262036: <4FGL_J1200.7+2008_daily_bin1019> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1019 180.187 20.1354 503452801 503712001 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 :                                   640.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             254.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

