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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1008
RA = 180.187, Dec = 20.1354
tmin = 500601601, tmax = 500860801
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='262019', job_status='RUN', time_executed='2021-09-04 20:47:03.614959', time_epoch_executed='1630813623.61' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262019

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262019/ft1_4FGL_J1200.7+2008_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262019/ft2_4FGL_J1200.7+2008_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262019/ft1_4FGL_J1200.7+2008_daily_bin1008.fits outfile=/scratch/kocevski/262019/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1008.fits ra=180.187 dec=20.1354 rad=12.0 tmin=500601601.0 tmax=500860801.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 5.20
user 4.92
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262019/ft1_filtered_4FGL_J1200.7+2008_daily_bin1008.fits" evtable="EVENTS" scfile=/scratch/kocevski/262019/ft2_4FGL_J1200.7+2008_daily_bin1008.fits sctable="SC_DATA" outfile=/scratch/kocevski/262019/ltcube_500601601_500860801_4FGL_J1200.7+2008_daily_bin1008.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/262019/ft2_4FGL_J1200.7+2008_daily_bin1008.fits
.....................!
real 11.84
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262019/ft1_filtered_4FGL_J1200.7+2008_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/262019/ft2_4FGL_J1200.7+2008_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/262019/ltcube_500601601_500860801_4FGL_J1200.7+2008_daily_bin1008.fits outfile=/scratch/kocevski/262019/expmap_500601601_500860801_4FGL_J1200.7+2008_daily_bin1008.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/262019/ltcube_500601601_500860801_4FGL_J1200.7+2008_daily_bin1008.fits
.....................!
real 189.74
user 184.39
sys 4.98

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/262019/ft1_filtered_4FGL_J1200.7+2008_daily_bin1008.fits scfile=/scratch/kocevski/262019/ft2_4FGL_J1200.7+2008_daily_bin1008.fits outfile=/scratch/kocevski/262019/cmap_500601601_500860801_4FGL_J1200.7+2008_daily_bin1008.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262019/ft1_filtered_4FGL_J1200.7+2008_daily_bin1008.fits scfile=/scratch/kocevski/262019/ft2_4FGL_J1200.7+2008_daily_bin1008.fits outfile=/scratch/kocevski/262019/cmap_HighResolution_500601601_500860801_4FGL_J1200.7+2008_daily_bin1008.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262019/ft1_filtered_4FGL_J1200.7+2008_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/262019/ft2_4FGL_J1200.7+2008_daily_bin1008.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262019/Model_4FGL_J1200.7+2008_daily_bin1008.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/262019/ft1_filtered_4FGL_J1200.7+2008_daily_bin1008.fits.....................!
real 52.92
user 50.63
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/262019/ft1_filtered_4FGL_J1200.7+2008_daily_bin1008.fits', '/scratch/kocevski/262019/ft2_4FGL_J1200.7+2008_daily_bin1008.fits', expMap='/scratch/kocevski/262019/expmap_500601601_500860801_4FGL_J1200.7+2008_daily_bin1008.fits', expCube='/scratch/kocevski/262019/ltcube_500601601_500860801_4FGL_J1200.7+2008_daily_bin1008.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/262019/Model_4FGL_J1200.7+2008_daily_bin1008.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/262019/ft1_filtered_4FGL_J1200.7+2008_daily_bin1008.fits
Spacecraft file(s): /scratch/kocevski/262019/ft2_4FGL_J1200.7+2008_daily_bin1008.fits
Exposure map: /scratch/kocevski/262019/expmap_500601601_500860801_4FGL_J1200.7+2008_daily_bin1008.fits
Exposure cube: /scratch/kocevski/262019/ltcube_500601601_500860801_4FGL_J1200.7+2008_daily_bin1008.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/262019/Model_4FGL_J1200.7+2008_daily_bin1008.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5110.89150167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .52873       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3265       1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.195       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.188       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9936       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.0255       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13452E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12102E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.424       1.0000         .10000E-03   10000.    
    16 'norm      '    28.682       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1955       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .70656       1.0000         .10000E-03   10000.    
    21 'norm      '    .11844E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4078       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .68242       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=   5110.728     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     2707 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3718       -.18117E-07** at limit **
   2  norm          .46910        8.9500       -.93137E-06    .74292E-04
   3  Prefactor     3.3249        9.6589       -.56816E-06   -.14310E-03
   4  Prefactor     39.182        37.508        .17906E-05    .39136E-05
   5  Prefactor     10.189        11.468        .61392E-06    .27061E-04
   6  Prefactor     .10000E-03    7.9210       -.62618E-07** at limit **
   7  Prefactor     4.9905        12.129       -.24951E-05   -.96902E-04
   8  Prefactor     .10000E-03    .81632        .21440E-08** at limit **
   9  Prefactor     .10000E-03    19.541       -.76022E-05** at limit **
  10  norm          3.0253        1.5051       -.85133E-07   -.18441E-04
  11  Prefactor     .10000E-03    18.162        .33715E-05** at limit **
  12  Prefactor     .10000E-03    4.1825        .33744E-07** at limit **
  13  Prefactor     .10000E-03    345.21       -.48687E-05** at limit **
  14  Prefactor     .10000E-03    2.5818        .12615E-06** at limit **
  15  Prefactor     13.426        6.0454       -.42343E-07   -.22094E-03
  16  norm          28.681        7.1768        .15307E-05    .41519E-05
  17  Prefactor     .10000E-03    1.2806       -.79848E-07** at limit **
  18  Prefactor     4.1950        4.0612       -.12689E-05   -.45375E-03
  19  Prefactor     .10000E-03    3.4402       -.64164E-09** at limit **
  20  norm          .70653        .32756        .33513E-08   -.53971E-03
  21  norm          .10000E-03    6.5217        .39350E-06** at limit **
  22  Prefactor     .10000E-03    5.5284        .11541E-06** at limit **
  23  Prefactor     .10000E-03    9.8797       -.44162E-07** at limit **
  24  Prefactor     .10000E-03    20.910        .47079E-05** at limit **
  25  Normalizat    1.4081        .22741        .22322E-06    .33933E-04
  26  Prefactor     .68243        .21082       -.22819E-06    .29297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.469097
  Prefactor  = 3.32493
  Prefactor  = 39.1818
  Prefactor  = 10.1891
  Prefactor  = 0.0001
  Prefactor  = 4.99054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.02525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4261
  norm       = 28.6809
  Prefactor  = 0.0001
  Prefactor  = 4.19499
  Prefactor  = 0.0001
  norm       = 0.706532
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.40809
  Prefactor  = 0.682432
 **********
 **   18 **HESSE 
 **********

 FCN=   5110.728     FROM HESSE     STATUS=OK           466 CALLS     3173 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3736        .10752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .46910        87.469        .40304E-02   -1.5571    
   3  Prefactor     3.3249        9.6937        .22194E-03   -1.5343    
   4  Prefactor     39.182        37.538        .64023E-04   -1.4455    
   5  Prefactor     10.189        11.471        .12553E-03   -1.5069    
   6  Prefactor     .10000E-03    7.9298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.9905        12.224        .17996E-03   -1.5261    
   8  Prefactor     .10000E-03    .82585        .63042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.0253        1.5063        .59474E-04   -1.5360    
  11  Prefactor     .10000E-03    18.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.2498        .14250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    346.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.471        .19995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.426        5.6064        .10189E-03   -1.4975    
  16  norm          28.681        7.1984        .74808E-04   -1.4636    
  17  Prefactor     .10000E-03    1.2876        .78964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.1950        4.1293        .12741E-03   -1.5298    
  19  Prefactor     .10000E-03    3.4500        .12939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .70653        .32606        .26370E-04   -1.5540    
  21  norm          .10000E-03    7.8315        .48324E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.5446        .16416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.9130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4081        .27176        .24373E-03   -.80395    
  26  Prefactor     .68243        .24928        .32839E-03   -1.0422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52704e-10
Minuit parameter uncertainties:
  1  8.49624e-07
  2  12.8289
  3  9.6983
  4  37.5606
  5  11.4733
  6  1.44267e-06
  7  12.2299
  8  7.51868e-07
  9  7.68797e-05
  10  1.50637
  11  5.74275e-06
  12  1.21282e-05
  13  0.000332501
  14  7.88641e-05
  15  5.60665
  16  7.19866
  17  9.65788e-06
  18  4.12959
  19  6.86676e-07
  20  0.326063
  21  0.00023789
  22  9.15882e-07
  23  1.55219e-05
  24  5.34953e-06
  25  0.272036
  26  0.249689
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.213e-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:  6.824e-01  2.497e-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.408e+00  2.720e-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: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/262019/likelihoodResults_500601601_500860801_4FGL_J1200.7+2008_daily_bin1008.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) = 5110.72878966
delta logL = -0.00112028191779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5110.72767389
delta logL = -4.5072983994e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12291E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5476       1.0000          .0000       10.000    
     3 'Normalizat'    1.4076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68296       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=   5110.728     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4808        .90712E-02** at limit **
   2  Index         2.5753        6.2835        .50000       -.59713E-04
   3  Normalizat    1.4081        .21362        .55122E-01   -.25711E-03
   4  Prefactor     .68243        .20910        .74183E-01   -.18399E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.57532
  Normalizat = 1.40808
  Prefactor  = 0.682431
 **********
 **   18 **HESSE 
 **********

 FCN=   5110.728     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      242 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    848.31        .14673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5753        6.1963        .50000       -.50629    
   3  Normalizat    1.4081        .11512        .24373E-03   -.80395    
   4  Prefactor     .68243        .11233        .32839E-03   -1.0422    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.73252e-07
Minuit parameter uncertainties:
  1  0.000453541
  2  60.7904
  3  0.11514
  4  0.112368
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262019': 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) = 5110.72766866
delta logL = 7.2190323408e-07

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  4.535e-04  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.575e+00  6.079e+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:  6.824e-01  1.124e-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.408e+00  1.151e-01  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/262019/cmap_HighResolution_500601601_500860801_4FGL_J1200.7+2008_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.56e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-04 20:58:12.202689', job_id='262019', GAL2='0.68', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1630814292.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='7.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1008' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:58:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 262019: <4FGL_J1200.7+2008_daily_bin1008> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1008 180.187 20.1354 500601601 500860801 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 :                                   660.17 sec.
    Max Memory :                                 1116 MB
    Average Memory :                             297.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            772 sec.

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

