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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1585
RA = 180.187, Dec = 20.1354
tmin = 650160001, tmax = 650419201
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='264162', job_status='RUN', time_executed='2021-09-04 20:51:08.653012', time_epoch_executed='1630813868.65' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264162

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264162/ft1_4FGL_J1200.7+2008_daily_bin1585.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264162/ft2_4FGL_J1200.7+2008_daily_bin1585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264162/ft1_4FGL_J1200.7+2008_daily_bin1585.fits outfile=/scratch/kocevski/264162/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1585.fits ra=180.187 dec=20.1354 rad=12.0 tmin=650160001.0 tmax=650419201.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 4.34
user 4.04
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264162/ft1_filtered_4FGL_J1200.7+2008_daily_bin1585.fits" evtable="EVENTS" scfile=/scratch/kocevski/264162/ft2_4FGL_J1200.7+2008_daily_bin1585.fits sctable="SC_DATA" outfile=/scratch/kocevski/264162/ltcube_650160001_650419201_4FGL_J1200.7+2008_daily_bin1585.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/264162/ft2_4FGL_J1200.7+2008_daily_bin1585.fits
.....................!
real 12.42
user 12.00
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264162/ft1_filtered_4FGL_J1200.7+2008_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/264162/ft2_4FGL_J1200.7+2008_daily_bin1585.fits sctable="SC_DATA" expcube=/scratch/kocevski/264162/ltcube_650160001_650419201_4FGL_J1200.7+2008_daily_bin1585.fits outfile=/scratch/kocevski/264162/expmap_650160001_650419201_4FGL_J1200.7+2008_daily_bin1585.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/264162/ltcube_650160001_650419201_4FGL_J1200.7+2008_daily_bin1585.fits
.....................!
real 190.53
user 185.43
sys 4.61

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/264162/ft1_filtered_4FGL_J1200.7+2008_daily_bin1585.fits scfile=/scratch/kocevski/264162/ft2_4FGL_J1200.7+2008_daily_bin1585.fits outfile=/scratch/kocevski/264162/cmap_650160001_650419201_4FGL_J1200.7+2008_daily_bin1585.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/264162/ft1_filtered_4FGL_J1200.7+2008_daily_bin1585.fits scfile=/scratch/kocevski/264162/ft2_4FGL_J1200.7+2008_daily_bin1585.fits outfile=/scratch/kocevski/264162/cmap_HighResolution_650160001_650419201_4FGL_J1200.7+2008_daily_bin1585.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9665       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1082       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13157E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9891       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13162E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.611       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19480E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19638E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .38572E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12733E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2149       1.0000         .10000E-03   10000.    
    16 'norm      '    8.6164       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5523       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .18701       1.0000         .10000E-03   10000.    
    21 'norm      '    56.421       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.616       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1422       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0313       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6950.013     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     3250 TOTAL
                     EDM=   .81E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9665        6.5303         .0000        .15864E-03
   2  norm          .10001E-03    25.450         .0000    ** at limit **
   3  Prefactor     1.1058        17.988         .0000        .14855E-01
   4  Prefactor     .10000E-03    58.385         .0000    ** at limit **
   5  Prefactor     .10000E-03    19.673         .0000    ** at limit **
   6  Prefactor     .10002E-03    19.056         .0000    ** at limit **
   7  Prefactor     2.9942        9.2090         .0000       -.13451E-02
   8  Prefactor     .10000E-03    1.1597         .0000    ** at limit **
   9  Prefactor     .10000E-03    6.5237         .0000    ** at limit **
  10  norm          12.609        2.3951         .0000        .61923E-04
  11  Prefactor     .10000E-03    79.384         .0000    ** at limit **
  12  Prefactor     .10000E-03    2.5433         .0000    ** at limit **
  13  Prefactor     .11537E-03    1226.5         .0000    ** at limit **
  14  Prefactor     .10000E-03    2.2663         .0000    ** at limit **
  15  Prefactor     5.2238        5.1336         .0000        .42690E-03
  16  norm          8.6160        3.8499         .0000       -.17009E-04
  17  Prefactor     4.5526        2.7775         .0000       -.81157E-05
  18  Prefactor     .10000E-03    .87722         .0000    ** at limit **
  19  Prefactor     .10000E-03    2.1334         .0000    ** at limit **
  20  norm          .18713        .22438         .0000        .20213E-02
  21  norm          56.419        9.5797         .0000        .90146E-03
  22  Prefactor     11.621        10.023         .0000        .50996E-03
  23  Prefactor     .10000E-03    3.0778         .0000    ** at limit **
  24  Prefactor     .10001E-03    24.472         .0000    ** at limit **
  25  Normalizat    1.1424        .19979         .0000        .20970E-04
  26  Prefactor     1.0310        .19143         .0000        .45143E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.9665
  norm       = 0.000100006
  Prefactor  = 1.10577
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100022
  Prefactor  = 2.9942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6094
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000115374
  Prefactor  = 0.0001
  Prefactor  = 5.22383
  norm       = 8.61601
  Prefactor  = 4.55257
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.187132
  norm       = 56.4194
  Prefactor  = 11.6206
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Normalizat = 1.1424
  Prefactor  = 1.031
 **********
 **   18 **HESSE 
 **********

 FCN=   6950.013     FROM HESSE     STATUS=OK           468 CALLS     3718 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9665        6.4988        .16439E-03   -1.5219    
   2  norm          .10001E-03    26.418        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1058        18.052        .22465E-02   -1.5498    
   4  Prefactor     .10000E-03    58.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    23.119        .95900E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.9942        9.1410        .23481E-03   -1.5362    
   8  Prefactor     .10000E-03    2.0510        .17051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.5490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.609        2.3962        .53058E-04   -1.4998    
  11  Prefactor     .10000E-03    81.711        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.247        .24493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11537E-03    1274.3        .42560E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.573        .20598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.2238        4.5834        .15321E-03   -1.5251    
  16  norm          8.6160        3.8555        .10192E-03   -1.5121    
  17  Prefactor     4.5526        2.7832        .10148E-03   -1.5281    
  18  Prefactor     .10000E-03    .88425        .76197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.1369        .11889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .18713        .20578        .40859E-03   -1.5621    
  21  norm          56.419        9.5730        .53406E-04   -1.4204    
  22  Prefactor     11.621        10.017        .11754E-03   -1.5026    
  23  Prefactor     .10000E-03    3.0795        .14284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    24.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1424        .24022        .28226E-03   -.88402    
  26  Prefactor     1.0310        .23133        .29453E-03   -.91703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16051e-08
Minuit parameter uncertainties:
  1  6.49953
  2  0.000823006
  3  8.93833
  4  0.000437831
  5  0.000273103
  6  0.0014332
  7  9.14522
  8  3.31038e-07
  9  2.84263e-06
  10  2.39624
  11  0.000796067
  12  7.45619e-06
  13  0.286252
  14  3.09637e-07
  15  4.58373
  16  3.85563
  17  2.78326
  18  2.4111e-06
  19  4.3924e-07
  20  0.205779
  21  9.57328
  22  10.0183
  23  5.62632e-06
  24  0.000940471
  25  0.240455
  26  0.231555
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  7.456e-06  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.031e+00  2.316e-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.142e+00  2.405e-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.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/264162/likelihoodResults_650160001_650419201_4FGL_J1200.7+2008_daily_bin1585.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) = 6950.01383277
delta logL = -0.000358796149158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6950.01347382
delta logL = 1.53521796165e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4859       1.0000          .0000       10.000    
     3 'Normalizat'    1.1424       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0310       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=   6950.013     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      244 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .22374        .71275E-01** at limit **
   2  Index         2.4532        5.0370        .50000        .18680E-04
   3  Normalizat    1.1424        .14928E-02    .63810E-01   -.56137E-03
   4  Prefactor     1.0310        .14956E-02    .66583E-01   -.41165E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.45323
  Normalizat = 1.1424
  Prefactor  = 1.031
 **********
 **   18 **HESSE 
 **********

 FCN=   6950.013     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      275 TOTAL
                     EDM=   .84E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    87.811        .25319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4532        5.8889        .50000       -.53443    
   3  Normalizat    1.1424        .12154E-01    .28226E-03   -.88402    
   4  Prefactor     1.0310        .12176E-01    .29453E-03   -.91703    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.41934e-07
Minuit parameter uncertainties:
  1  0.00090447
  2  218.478
  3  0.0121542
  4  0.0121757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264162': 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) = 6950.01347365
delta logL = 3.25037945004e-07

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  9.045e-04  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.453e+00  2.185e+02  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.031e+00  1.218e-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:  1.142e+00  1.215e-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/264162/cmap_HighResolution_650160001_650419201_4FGL_J1200.7+2008_daily_bin1585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.20e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-04 21:05:11.757307', job_id='264162', GAL2='1.03', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630814711.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1585' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:05:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 264162: <4FGL_J1200.7+2008_daily_bin1585> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1585 180.187 20.1354 650160001 650419201 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 :                                   829.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            862 sec.

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

