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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1049
RA = 180.187, Dec = 20.1354
tmin = 511228801, tmax = 511488001
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='262082', job_status='RUN', time_executed='2021-09-04 20:45:41.059972', time_epoch_executed='1630813541.06' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262082

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262082/ft1_4FGL_J1200.7+2008_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262082/ft2_4FGL_J1200.7+2008_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262082/ft1_4FGL_J1200.7+2008_daily_bin1049.fits outfile=/scratch/kocevski/262082/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1049.fits ra=180.187 dec=20.1354 rad=12.0 tmin=511228801.0 tmax=511488001.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.45
user 3.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262082/ft1_filtered_4FGL_J1200.7+2008_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/262082/ft2_4FGL_J1200.7+2008_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/262082/ltcube_511228801_511488001_4FGL_J1200.7+2008_daily_bin1049.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/262082/ft2_4FGL_J1200.7+2008_daily_bin1049.fits
.....................!
real 12.09
user 11.73
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262082/ft1_filtered_4FGL_J1200.7+2008_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/262082/ft2_4FGL_J1200.7+2008_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/262082/ltcube_511228801_511488001_4FGL_J1200.7+2008_daily_bin1049.fits outfile=/scratch/kocevski/262082/expmap_511228801_511488001_4FGL_J1200.7+2008_daily_bin1049.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/262082/ltcube_511228801_511488001_4FGL_J1200.7+2008_daily_bin1049.fits
.....................!
real 193.66
user 188.66
sys 4.47

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/262082/ft1_filtered_4FGL_J1200.7+2008_daily_bin1049.fits scfile=/scratch/kocevski/262082/ft2_4FGL_J1200.7+2008_daily_bin1049.fits outfile=/scratch/kocevski/262082/cmap_511228801_511488001_4FGL_J1200.7+2008_daily_bin1049.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262082/ft1_filtered_4FGL_J1200.7+2008_daily_bin1049.fits scfile=/scratch/kocevski/262082/ft2_4FGL_J1200.7+2008_daily_bin1049.fits outfile=/scratch/kocevski/262082/cmap_HighResolution_511228801_511488001_4FGL_J1200.7+2008_daily_bin1049.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=180.187 yref=20.1354 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262082/ft1_filtered_4FGL_J1200.7+2008_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/262082/ft2_4FGL_J1200.7+2008_daily_bin1049.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262082/Model_4FGL_J1200.7+2008_daily_bin1049.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/262082/ft1_filtered_4FGL_J1200.7+2008_daily_bin1049.fits.....................!
real 51.70
user 50.39
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6821       1.0000         .10000E-03   10000.    
     2 'norm      '    11.463       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.388       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3233       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9869       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.042       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .68544       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11825E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1435       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    24.275       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0038       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .51094       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.2773       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.4522       1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.400       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .69030       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3553       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=   5540.245     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3215 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6818        3.5009       -.27629E-09   -.40888E-05
   2  norm          11.462        11.050        .90364E-07    .36936E-05
   3  Prefactor     12.387        10.930        .14443E-06    .23624E-04
   4  Prefactor     5.3176        32.152       -.22172E-05   -.72089E-04
   5  Prefactor     6.9846        13.850       -.62464E-07   -.23630E-04
   6  Prefactor     11.048        15.858       -.18467E-06    .46515E-05
   7  Prefactor     .10000E-03    3.3877        .44546E-07** at limit **
   8  Prefactor     .10000E-03    1.4051        .18300E-06** at limit **
   9  Prefactor     .10000E-03    2.9134        .13056E-07** at limit **
  10  norm          .68497        .97456        .76751E-06   -.10644E-02
  11  Prefactor     .10000E-03    10.582        .69032E-07** at limit **
  12  Prefactor     .10000E-03    2.3785        .13350E-06** at limit **
  13  Prefactor     .10000E-03    41.688        .15713E-06** at limit **
  14  Prefactor     6.1457        3.1346       -.39804E-08   -.81126E-04
  15  Prefactor     .10000E-03    2.1399        .34679E-07** at limit **
  16  norm          24.275        5.0439       -.69567E-07    .27476E-07
  17  Prefactor     .10000E-03    .99178        .55166E-08** at limit **
  18  Prefactor     1.0036        1.8222        .19910E-06   -.11541E-03
  19  Prefactor     .51313        3.8586       -.16276E-06    .73052E-04
  20  norm          .10000E-03    .69035E-01    .25592E-07** at limit **
  21  norm          9.2770        4.8779       -.52137E-07    .50817E-04
  22  Prefactor     .10000E-03    4.3610       -.80653E-07** at limit **
  23  Prefactor     7.4516        9.6173        .72037E-07    .57294E-05
  24  Prefactor     20.389        27.624       -.27638E-05   -.24891E-03
  25  Normalizat    .69031        .18376       -.50058E-06   -.47946E-04
  26  Prefactor     1.3555        .19024        .54962E-07   -.69993E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.68181
  norm       = 11.4621
  Prefactor  = 12.3872
  Prefactor  = 5.31758
  Prefactor  = 6.98458
  Prefactor  = 11.0476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.684975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.14573
  Prefactor  = 0.0001
  norm       = 24.2751
  Prefactor  = 0.0001
  Prefactor  = 1.00359
  Prefactor  = 0.513134
  norm       = 0.0001
  norm       = 9.27704
  Prefactor  = 0.0001
  Prefactor  = 7.45156
  Prefactor  = 20.3887
  Normalizat = 0.690308
  Prefactor  = 1.35547
 **********
 **   18 **HESSE 
 **********

 FCN=   5540.245     FROM HESSE     STATUS=OK           468 CALLS     3683 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6818        3.4932        .15508E-03   -1.5380    
   2  norm          11.462        11.056        .11833E-03   -1.5031    
   3  Prefactor     12.387        10.935        .11381E-03   -1.5004    
   4  Prefactor     5.3176        33.307        .17419E-03   -1.5247    
   5  Prefactor     6.9846        13.850        .15177E-03   -1.5179    
   6  Prefactor     11.048        15.740        .12056E-03   -1.5043    
   7  Prefactor     .10000E-03    3.3934        .13379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5149        .16681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.9159        .12408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .68497        1.0178        .24012E-03   -1.5542    
  11  Prefactor     .10000E-03    10.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.5267        .21957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    41.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.1457        3.0458        .87020E-04   -1.5212    
  15  Prefactor     .10000E-03    4.0017        .20438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          24.275        5.0218        .72688E-04   -1.4722    
  17  Prefactor     .10000E-03    .99748        .72293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.0036        1.7650        .12759E-03   -1.5508    
  19  Prefactor     .51313        18.116        .26505E-02   -1.5565    
  20  norm          .10000E-03    .82063E-01    .37853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.2770        4.9753        .10978E-03   -1.5099    
  22  Prefactor     .10000E-03    4.3695        .15182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.4516        9.5777        .14692E-03   -1.5162    
  24  Prefactor     20.389        29.463        .88678E-04   -1.4805    
  25  Normalizat    .69031        .21000        .28787E-03   -1.0428    
  26  Prefactor     1.3555        .22190        .23349E-03   -.81672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.89663e-10
Minuit parameter uncertainties:
  1  3.49346
  2  11.0577
  3  10.9371
  4  26.6384
  5  13.8566
  6  15.7457
  7  1.42218e-06
  8  2.98911e-05
  9  3.87338e-07
  10  1.01786
  11  4.93813e-06
  12  1.47521e-05
  13  3.30636e-05
  14  3.04583
  15  3.79392e-05
  16  5.02187
  17  1.46591e-07
  18  1.76513
  19  6.09923
  20  1.39587e-07
  21  4.9755
  22  2.26047e-05
  23  9.57963
  24  29.484
  25  0.210241
  26  0.222054
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.475e-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.355e+00  2.221e-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:  6.903e-01  2.102e-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.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/262082/likelihoodResults_511228801_511488001_4FGL_J1200.7+2008_daily_bin1049.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) = 5540.2457493
delta logL = -0.0010517598912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5540.2446989
delta logL = -1.3639782992e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5451       1.0000          .0000       10.000    
     3 'Normalizat'    .69005       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3558       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5540.245     FROM MIGRAD    STATUS=CONVERGED    200 CALLS      373 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96494E-02    1.0282        .21946E-01   -.12949E-02
   2  Index         3.7155        3.5772        .50000        .10854E-04
   3  Normalizat    .68997        .60588E-02    .28787E-03    .94352E-02
   4  Prefactor     1.3555        .66932E-02    .23349E-03   -.11870E-01
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00964939
  Index      = 3.7155
  Normalizat = 0.689969
  Prefactor  = 1.35545
 **********
 **   18 **HESSE 
 **********

 FCN=   5540.245     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      410 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96494E-02    29.761        .16115E-01   -1.5728    
   2  Index         3.7155        7.4909        .44533E-01   -.25981    
   3  Normalizat    .68997        .27028E-01    .57574E-04   -1.0429    
   4  Prefactor     1.3555        .29671E-01    .46697E-04   -.81673    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.09134e-08
Minuit parameter uncertainties:
  1  1.06673
  2  78.6701
  3  0.0270289
  4  0.0296709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262082': 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) = 5540.24459952
delta logL = 9.80181321211e-05

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  9.649e-03  1.067e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  3.715e+00  7.867e+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.355e+00  2.967e-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:  6.900e-01  2.703e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/262082/cmap_HighResolution_511228801_511488001_4FGL_J1200.7+2008_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.67e-08', time_completed='2021-09-04 20:58:21.682623', job_id='262082', GAL2='1.36', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1630814301.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='9.80e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1049' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:58:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 262082: <4FGL_J1200.7+2008_daily_bin1049> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1049> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:45:25 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:45:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 20:45:27 2021
Terminated at Sat Sep  4 20:58:22 2021
Results reported at Sat Sep  4 20:58:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1049 180.187 20.1354 511228801 511488001 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 :                                   751.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            777 sec.

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

