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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1315
RA = 180.187, Dec = 20.1354
tmin = 580176001, tmax = 580435201
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='263736', job_status='RUN', time_executed='2021-09-04 20:53:07.178128', time_epoch_executed='1630813987.18' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263736/ft1_4FGL_J1200.7+2008_daily_bin1315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263736/ft2_4FGL_J1200.7+2008_daily_bin1315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263736/ft1_4FGL_J1200.7+2008_daily_bin1315.fits outfile=/scratch/kocevski/263736/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1315.fits ra=180.187 dec=20.1354 rad=12.0 tmin=580176001.0 tmax=580435201.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.65
user 4.43
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263736/ft1_filtered_4FGL_J1200.7+2008_daily_bin1315.fits" evtable="EVENTS" scfile=/scratch/kocevski/263736/ft2_4FGL_J1200.7+2008_daily_bin1315.fits sctable="SC_DATA" outfile=/scratch/kocevski/263736/ltcube_580176001_580435201_4FGL_J1200.7+2008_daily_bin1315.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/263736/ft2_4FGL_J1200.7+2008_daily_bin1315.fits
.....................!
real 12.71
user 12.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263736/ft1_filtered_4FGL_J1200.7+2008_daily_bin1315.fits evtable="EVENTS" scfile=/scratch/kocevski/263736/ft2_4FGL_J1200.7+2008_daily_bin1315.fits sctable="SC_DATA" expcube=/scratch/kocevski/263736/ltcube_580176001_580435201_4FGL_J1200.7+2008_daily_bin1315.fits outfile=/scratch/kocevski/263736/expmap_580176001_580435201_4FGL_J1200.7+2008_daily_bin1315.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/263736/ltcube_580176001_580435201_4FGL_J1200.7+2008_daily_bin1315.fits
.....................!
real 190.30
user 185.40
sys 4.50

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/263736/ft1_filtered_4FGL_J1200.7+2008_daily_bin1315.fits scfile=/scratch/kocevski/263736/ft2_4FGL_J1200.7+2008_daily_bin1315.fits outfile=/scratch/kocevski/263736/cmap_580176001_580435201_4FGL_J1200.7+2008_daily_bin1315.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=180.187 yref=20.1354 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263736/ft1_filtered_4FGL_J1200.7+2008_daily_bin1315.fits scfile=/scratch/kocevski/263736/ft2_4FGL_J1200.7+2008_daily_bin1315.fits outfile=/scratch/kocevski/263736/cmap_HighResolution_580176001_580435201_4FGL_J1200.7+2008_daily_bin1315.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263736/ft1_filtered_4FGL_J1200.7+2008_daily_bin1315.fits evtable="EVENTS" scfile=/scratch/kocevski/263736/ft2_4FGL_J1200.7+2008_daily_bin1315.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263736/Model_4FGL_J1200.7+2008_daily_bin1315.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/263736/ft1_filtered_4FGL_J1200.7+2008_daily_bin1315.fits.....................!
real 53.83
user 52.43
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2605       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.567       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9860       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1652       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.062       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4593       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6730       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12325E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16972E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6752       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4951       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4626       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13321E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .39815       1.0000         .10000E-03   10000.    
    21 'norm      '    14.272       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.233       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.055       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12146E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .83441       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1463       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=   5847.459     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     3170 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2609        3.8750        .11273E-05   -.54452E-03
   2  norm          .10000E-03    3.9829       -.24498E-08** at limit **
   3  Prefactor     .10000E-03    6.2382        .20365E-07** at limit **
   4  Prefactor     .10000E-03    9.5529        .23872E-05** at limit **
   5  Prefactor     .10000E-03    4.1099        .47229E-07** at limit **
   6  Prefactor     28.569        21.229        .21512E-06   -.30391E-04
   7  Prefactor     4.9874        10.891       -.14202E-06   -.75239E-04
   8  Prefactor     7.1651        2.6111        .34186E-07   -.15132E-03
   9  Prefactor     11.062        9.6175        .46460E-07   -.12448E-04
  10  norm          1.4592        .89484        .72474E-08   -.10503E-03
  11  Prefactor     3.6731        12.507        .20409E-05   -.15860E-03
  12  Prefactor     .10000E-03    3.0738        .19816E-06** at limit **
  13  Prefactor     .10000E-03    35.800       -.82124E-06** at limit **
  14  Prefactor     .10002E-03    5.6227        .74159E-05** at limit **
  15  Prefactor     .10001E-03    1.5430       -.18805E-05** at limit **
  16  norm          2.6753        1.8975        .26233E-08   -.32332E-04
  17  Prefactor     2.4951        1.6637        .74420E-08   -.29170E-04
  18  Prefactor     4.4625        2.5215        .37300E-07   -.26979E-03
  19  Prefactor     .10002E-03    5.4432       -.65406E-05** at limit **
  20  norm          .39813        .22265       -.70550E-08   -.20672E-02
  21  norm          14.271        4.9607       -.70844E-06   -.79235E-03
  22  Prefactor     10.231        12.560        .97022E-06   -.10047E-03
  23  Prefactor     14.055        10.595        .15776E-06   -.39235E-04
  24  Prefactor     .10006E-03    115.85       -.39674E-05** at limit **
  25  Normalizat    .83442        .18650       -.81424E-06   -.41639E-03
  26  Prefactor     1.1463        .19283        .99554E-07   -.34545E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.26086
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.5691
  Prefactor  = 4.9874
  Prefactor  = 7.16515
  Prefactor  = 11.0617
  norm       = 1.45924
  Prefactor  = 3.6731
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 0.000100007
  norm       = 2.67525
  Prefactor  = 2.49511
  Prefactor  = 4.46255
  Prefactor  = 0.000100021
  norm       = 0.398127
  norm       = 14.2705
  Prefactor  = 10.2309
  Prefactor  = 14.0547
  Prefactor  = 0.000100057
  Normalizat = 0.834424
  Prefactor  = 1.14626
 **********
 **   18 **HESSE 
 **********

 FCN=   5847.459     FROM HESSE     STATUS=OK           464 CALLS     3634 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2609        5.8384        .11214E-02   -1.5347    
   2  norm          .10000E-03    4.0008        .14903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.2685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.5532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1134        .15140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.569        21.283        .74957E-04   -1.4638    
   7  Prefactor     4.9874        10.879        .18010E-03   -1.5261    
   8  Prefactor     7.1651        2.6115        .68323E-04   -1.5173    
   9  Prefactor     11.062        9.6170        .12046E-03   -1.5043    
  10  norm          1.4592        .89411        .54604E-04   -1.5466    
  11  Prefactor     3.6731        14.160        .10538E-02   -1.5325    
  12  Prefactor     .10000E-03    3.1494        .26138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    35.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    9.6499        .16104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    17.436        .16214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6753        1.9006        .85462E-04   -1.5381    
  17  Prefactor     2.4951        1.6697        .77865E-04   -1.5392    
  18  Prefactor     4.4625        2.5154        .85505E-04   -1.5285    
  19  Prefactor     .10002E-03    9.4416        .24366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .39813        .22005        .25610E-04   -1.5582    
  21  norm          14.271        4.9663        .97261E-04   -1.4952    
  22  Prefactor     10.231        12.521        .12526E-03   -1.5068    
  23  Prefactor     14.055        10.590        .10684E-03   -1.4958    
  24  Prefactor     .10006E-03    119.63        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .83442        .21799        .26916E-03   -.98804    
  26  Prefactor     1.1463        .22736        .25138E-03   -.88001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8567e-09
Minuit parameter uncertainties:
  1  5.83947
  2  1.08374e-06
  3  9.55831e-06
  4  2.43839e-05
  5  1.6434e-08
  6  21.2889
  7  10.8834
  8  2.61155
  9  9.61831
  10  0.894117
  11  14.1731
  12  9.6207e-06
  13  4.3437e-05
  14  0.000926248
  15  0.000697368
  16  1.90067
  17  1.66974
  18  2.51542
  19  0.000890266
  20  0.22005
  21  4.96648
  22  12.524
  23  10.591
  24  0.00525128
  25  0.218216
  26  0.227558
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  9.621e-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.146e+00  2.276e-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.344e-01  2.182e-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: 8.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263736/likelihoodResults_580176001_580435201_4FGL_J1200.7+2008_daily_bin1315.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) = 5847.46007569
delta logL = -0.00151555474804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5847.4585603
delta logL = -1.66011886904e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5182       1.0000          .0000       10.000    
     3 'Normalizat'    .83445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1463       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=   5847.459     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3429        .90712E-02** at limit **
   2  Index         2.5164        6.2503        .50000        .51556E-05
   3  Normalizat    .83443        .58571E-02    .44058E-01   -.36071E-04
   4  Prefactor     1.1463        .63394E-02    .56849E-01   -.49793E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.51636
  Normalizat = 0.834426
  Prefactor  = 1.14626
 **********
 **   18 **HESSE 
 **********

 FCN=   5847.459     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    214.63        .26145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5164        8.0598        .50000       -.51982    
   3  Normalizat    .83443        .39837E-01    .26916E-03   -.98804    
   4  Prefactor     1.1463        .43111E-01    .25138E-03   -.88002    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.5657e-07
Minuit parameter uncertainties:
  1  0.000276858
  2  539.532
  3  0.0398387
  4  0.0431118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263736': 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) = 5847.45856013
delta logL = 4.7730281949e-09

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.769e-04  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.516e+00  5.395e+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.146e+00  4.311e-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.344e-01  3.984e-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/263736/cmap_HighResolution_580176001_580435201_4FGL_J1200.7+2008_daily_bin1315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.32e-03', job_status='DONE', photon_flux_upper_limit='8.12e-08', time_completed='2021-09-04 21:06:36.073891', job_id='263736', GAL2='1.15', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630814796.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='4.77e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1315' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:06:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 263736: <4FGL_J1200.7+2008_daily_bin1315> in cluster <slac> Done

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

Your job looked like:

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

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

