/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 0 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 = 7686
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1200.7+2008_daily_bin114
RA = 180.187, Dec = 20.1354
tmin = 268876801, tmax = 269136001
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='256991', job_status='RUN', time_executed='2021-09-04 20:30:44.871042', time_epoch_executed='1630812644.87' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='114'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256991

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256991/ft1_4FGL_J1200.7+2008_daily_bin114.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256991/ft2_4FGL_J1200.7+2008_daily_bin114.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256991/ft1_4FGL_J1200.7+2008_daily_bin114.fits outfile=/scratch/kocevski/256991/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin114.fits ra=180.187 dec=20.1354 rad=12.0 tmin=268876801.0 tmax=269136001.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 1.69
user 1.51
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256991/ft1_filtered_4FGL_J1200.7+2008_daily_bin114.fits" evtable="EVENTS" scfile=/scratch/kocevski/256991/ft2_4FGL_J1200.7+2008_daily_bin114.fits sctable="SC_DATA" outfile=/scratch/kocevski/256991/ltcube_268876801_269136001_4FGL_J1200.7+2008_daily_bin114.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/256991/ft2_4FGL_J1200.7+2008_daily_bin114.fits
.....................!
real 12.62
user 12.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256991/ft1_filtered_4FGL_J1200.7+2008_daily_bin114.fits evtable="EVENTS" scfile=/scratch/kocevski/256991/ft2_4FGL_J1200.7+2008_daily_bin114.fits sctable="SC_DATA" expcube=/scratch/kocevski/256991/ltcube_268876801_269136001_4FGL_J1200.7+2008_daily_bin114.fits outfile=/scratch/kocevski/256991/expmap_268876801_269136001_4FGL_J1200.7+2008_daily_bin114.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/256991/ltcube_268876801_269136001_4FGL_J1200.7+2008_daily_bin114.fits
.....................!
real 190.59
user 185.44
sys 4.72

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/256991/ft1_filtered_4FGL_J1200.7+2008_daily_bin114.fits scfile=/scratch/kocevski/256991/ft2_4FGL_J1200.7+2008_daily_bin114.fits outfile=/scratch/kocevski/256991/cmap_268876801_269136001_4FGL_J1200.7+2008_daily_bin114.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256991/ft1_filtered_4FGL_J1200.7+2008_daily_bin114.fits scfile=/scratch/kocevski/256991/ft2_4FGL_J1200.7+2008_daily_bin114.fits outfile=/scratch/kocevski/256991/cmap_HighResolution_268876801_269136001_4FGL_J1200.7+2008_daily_bin114.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/256991/ft1_filtered_4FGL_J1200.7+2008_daily_bin114.fits evtable="EVENTS" scfile=/scratch/kocevski/256991/ft2_4FGL_J1200.7+2008_daily_bin114.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/256991/Model_4FGL_J1200.7+2008_daily_bin114.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/256991/ft1_filtered_4FGL_J1200.7+2008_daily_bin114.fits.....................!
real 72.35
user 70.88
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.822       1.0000         .10000E-03   10000.    
     2 'norm      '    42.546       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    60.222       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9793       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.724       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3956       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.838       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1157       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1757       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19997E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .63971       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .86234       1.0000         .10000E-03   10000.    
    16 'norm      '    4.3845       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0456       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4141       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0364       1.0000         .10000E-03   10000.    
    20 'norm      '    .92521       1.0000         .10000E-03   10000.    
    21 'norm      '    2.1606       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.3194       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.6546       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .86730       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2824       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=   8250.810     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3242 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.821        6.3131        .15673E-08    .18683E-04
   2  norm          42.543        14.334       -.15029E-06   -.10007E-03
   3  Prefactor     .10000E-03    9.3805        .15389E-06** at limit **
   4  Prefactor     60.213        37.449       -.13587E-05   -.24291E-03
   5  Prefactor     2.9787        6.4871        .51937E-06   -.10195E-02
   6  Prefactor     14.721        15.299       -.38718E-06   -.72244E-04
   7  Prefactor     3.3941        11.347       -.40188E-06    .62005E-05
   8  Prefactor     .10000E-03    .44993       -.44859E-08** at limit **
   9  Prefactor     14.838        10.755       -.34333E-07    .31108E-04
  10  norm          1.1156        1.0270       -.60115E-08   -.15437E-03
  11  Prefactor     3.1731        9.3022        .50713E-06   -.65347E-03
  12  Prefactor     .10000E-03    1.8447       -.39151E-06** at limit **
  13  Prefactor     .10000E-03    25.751       -.22112E-07** at limit **
  14  Prefactor     .64079        4.0276        .17838E-05    .10295E-03
  15  Prefactor     .86291        3.8977       -.24141E-05   -.80099E-04
  16  norm          4.3842        3.5094        .55401E-07    .75192E-04
  17  Prefactor     2.0457        2.7064       -.41666E-07   -.14479E-03
  18  Prefactor     8.4136        3.0764       -.16394E-07    .81124E-04
  19  Prefactor     6.0362        5.4642       -.86400E-07   -.84169E-04
  20  norm          .92514        .25816       -.92352E-08    .10030E-02
  21  norm          2.1603        3.8689       -.34286E-06   -.41647E-03
  22  Prefactor     8.3203        8.5682       -.14580E-07   -.67087E-05
  23  Prefactor     7.6539        7.2390       -.14688E-07    .21435E-04
  24  Prefactor     .10000E-03    7.2338       -.11947E-06** at limit **
  25  Normalizat    .86762        .18020        .53689E-06    .10433E-03
  26  Prefactor     1.2821        .17209       -.13765E-06    .22565E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8212
  norm       = 42.5431
  Prefactor  = 0.0001
  Prefactor  = 60.2127
  Prefactor  = 2.97872
  Prefactor  = 14.7205
  Prefactor  = 3.39406
  Prefactor  = 0.0001
  Prefactor  = 14.8376
  norm       = 1.11559
  Prefactor  = 3.17308
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.64079
  Prefactor  = 0.862913
  norm       = 4.38423
  Prefactor  = 2.04575
  Prefactor  = 8.41355
  Prefactor  = 6.0362
  norm       = 0.925142
  norm       = 2.16034
  Prefactor  = 8.32033
  Prefactor  = 7.65386
  Prefactor  = 0.0001
  Normalizat = 0.867623
  Prefactor  = 1.2821
 **********
 **   18 **HESSE 
 **********

 FCN=   8250.810     FROM HESSE     STATUS=OK           474 CALLS     3716 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.821        6.3146        .11651E-03   -1.5020    
   2  norm          42.543        14.361        .61459E-04   -1.4403    
   3  Prefactor     .10000E-03    9.6930        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     60.213        38.135        .51702E-04   -1.4154    
   5  Prefactor     2.9787        8.3886        .11761E-02   -1.5363    
   6  Prefactor     14.721        15.314        .10438E-03   -1.4940    
   7  Prefactor     3.3941        11.260        .21956E-03   -1.5339    
   8  Prefactor     .10000E-03    .45727        .59454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.838        10.752        .10398E-03   -1.4937    
  10  norm          1.1156        .95008        .83997E-03   -1.5497    
  11  Prefactor     3.1731        11.013        .11371E-02   -1.5352    
  12  Prefactor     .10000E-03    5.4896        .22183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .64079        5.5722        .22288E-02   -1.5548    
  15  Prefactor     .86291        4.3533        .26179E-03   -1.5522    
  16  norm          4.3842        3.5059        .12601E-03   -1.5289    
  17  Prefactor     2.0457        2.6862        .14353E-03   -1.5422    
  18  Prefactor     8.4136        3.0712        .87052E-04   -1.5128    
  19  Prefactor     6.0362        5.4386        .16342E-03   -1.5217    
  20  norm          .92514        .25758        .23010E-04   -1.5516    
  21  norm          2.1603        3.8855        .22485E-03   -1.5414    
  22  Prefactor     8.3203        8.5787        .13899E-03   -1.5131    
  23  Prefactor     7.6539        7.2401        .14494E-03   -1.5155    
  24  Prefactor     .10000E-03    7.2443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .86762        .20988        .29667E-03   -.97607    
  26  Prefactor     1.2821        .20294        .26190E-03   -.83841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69998e-09
Minuit parameter uncertainties:
  1  6.31499
  2  14.3625
  3  7.91697e-06
  4  38.1507
  5  8.39186
  6  15.3184
  7  11.2667
  8  2.4248e-07
  9  10.7532
  10  0.950092
  11  11.0201
  12  8.61081e-05
  13  1.57287e-05
  14  3.77941
  15  3.87657
  16  3.50603
  17  2.68639
  18  3.07121
  19  5.43908
  20  0.257578
  21  3.88596
  22  8.57994
  23  7.24093
  24  1.95724e-05
  25  0.210076
  26  0.203064
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  1.282e+00  2.031e-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:  8.676e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/256991/likelihoodResults_268876801_269136001_4FGL_J1200.7+2008_daily_bin114.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8250.8105963
delta logL = -0.000867760731126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8250.80972864
delta logL = -9.9102180684e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10741E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5623       1.0000          .0000       10.000    
     3 'Normalizat'    .86769       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2821       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=   8250.810     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      245 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0268        .61098E-01** at limit **
   2  Index         2.6094        6.2873        .50000       -.74089E-04
   3  Normalizat    .86762        .49835E-02    .67059E-01    .96414E-04
   4  Prefactor     1.2821        .52561E-02    .59225E-01    .31341E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.60939
  Normalizat = 0.867624
  Prefactor  = 1.2821
 **********
 **   18 **HESSE 
 **********

 FCN=   8250.810     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      280 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    732.80        .21225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6094        8.6243        .50000       -.49851    
   3  Normalizat    .86762        .53217E-01    .29667E-03   -.97607    
   4  Prefactor     1.2821        .56000E-01    .26190E-03   -.83841    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05807e-06
Minuit parameter uncertainties:
  1  0.00306812
  2  47.1467
  3  0.0532206
  4  0.0560025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256991': 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) = 8250.80972707
delta logL = 1.46973980009e-06

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  3.068e-03  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.609e+00  4.715e+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.282e+00  5.600e-02  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:  8.676e-01  5.322e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.187 20.135

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/256991/cmap_HighResolution_268876801_269136001_4FGL_J1200.7+2008_daily_bin114.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.95e-03', job_status='DONE', photon_flux_upper_limit='7.64e-08', time_completed='2021-09-04 20:46:30.776547', job_id='256991', GAL2='1.28', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630813590.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='1.47e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='114' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:46:30 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin114 180.187 20.1354 268876801 269136001 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 :                                   944.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             362.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            957 sec.

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

