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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1350
RA = 180.187, Dec = 20.1354
tmin = 589248001, tmax = 589507201
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='263786', job_status='RUN', time_executed='2021-09-04 20:54:22.847467', time_epoch_executed='1630814062.85' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263786

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263786/ft1_4FGL_J1200.7+2008_daily_bin1350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263786/ft2_4FGL_J1200.7+2008_daily_bin1350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263786/ft1_4FGL_J1200.7+2008_daily_bin1350.fits outfile=/scratch/kocevski/263786/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1350.fits ra=180.187 dec=20.1354 rad=12.0 tmin=589248001.0 tmax=589507201.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.15
user 2.94
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263786/ft2_4FGL_J1200.7+2008_daily_bin1350.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/263786/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1350.fits evtable="EVENTS" outfile="/scratch/kocevski/263786/ft1_filtered_4FGL_J1200.7+2008_daily_bin1350.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/263786/ft1_filtered_4FGL_J1200.7+2008_daily_bin1350.fits" evtable="EVENTS" scfile=/scratch/kocevski/263786/ft2_4FGL_J1200.7+2008_daily_bin1350.fits sctable="SC_DATA" outfile=/scratch/kocevski/263786/ltcube_589248001_589507201_4FGL_J1200.7+2008_daily_bin1350.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/263786/ft2_4FGL_J1200.7+2008_daily_bin1350.fits
.....................!
real 13.19
user 12.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263786/ft1_filtered_4FGL_J1200.7+2008_daily_bin1350.fits evtable="EVENTS" scfile=/scratch/kocevski/263786/ft2_4FGL_J1200.7+2008_daily_bin1350.fits sctable="SC_DATA" expcube=/scratch/kocevski/263786/ltcube_589248001_589507201_4FGL_J1200.7+2008_daily_bin1350.fits outfile=/scratch/kocevski/263786/expmap_589248001_589507201_4FGL_J1200.7+2008_daily_bin1350.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/263786/ltcube_589248001_589507201_4FGL_J1200.7+2008_daily_bin1350.fits
.....................!
real 190.82
user 185.59
sys 4.55

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263786/ft1_filtered_4FGL_J1200.7+2008_daily_bin1350.fits evtable="EVENTS" scfile=/scratch/kocevski/263786/ft2_4FGL_J1200.7+2008_daily_bin1350.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263786/Model_4FGL_J1200.7+2008_daily_bin1350.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/263786/ft1_filtered_4FGL_J1200.7+2008_daily_bin1350.fits.....................!
real 26.93
user 25.64
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    296.44       1.0000         .10000E-03   10000.    
     2 'norm      '    75.428       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11154E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4877       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2853       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.1353       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5125       1.0000         .10000E-03   10000.    
    16 'norm      '    9.9926       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17966       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10243E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.6348       1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.745       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.0414       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1641       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0955       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=   1928.875     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3099 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     296.29        261.59       -.15155E-05   -.50419E-04
   2  norm          75.437        124.03       -.22449E-05   -.16932E-04
   3  Prefactor     .10000E-03    73.022       -.12062E-05** at limit **
   4  Prefactor     .10000E-03    231.17        .68187E-06** at limit **
   5  Prefactor     .10000E-03    32.872       -.53596E-06** at limit **
   6  Prefactor     3.3759        218.82        .93093E-05    .62591E-04
   7  Prefactor     .10000E-03    21.833        .12418E-07** at limit **
   8  Prefactor     5.2873        5.6620       -.51070E-06   -.11110E-03
   9  Prefactor     .10000E-03    8.5895        .64270E-07** at limit **
  10  norm          .10000E-03    2.7112       -.25865E-05** at limit **
  11  Prefactor     .10000E-03    25.551        .39117E-07** at limit **
  12  Prefactor     6.1339        9.5163       -.35548E-06   -.10127E-03
  13  Prefactor     .10000E-03    49.362       -.29031E-07** at limit **
  14  Prefactor     .10000E-03    2.6398        .15693E-06** at limit **
  15  Prefactor     7.5145        6.5818       -.13601E-06   -.22868E-03
  16  norm          9.9923        6.7473        .15538E-06    .70439E-03
  17  Prefactor     .10000E-03    1.7875        .16803E-06** at limit **
  18  Prefactor     .20029        4.6997       -.16348E-05    .76961E-03
  19  Prefactor     .10000E-03    12.866        .86485E-06** at limit **
  20  norm          .10000E-03    .36174        .63509E-06** at limit **
  21  norm          .10000E-03    14.206        .14172E-05** at limit **
  22  Prefactor     6.6515        19.524       -.14518E-05   -.10314E-03
  23  Prefactor     22.724        18.735       -.73569E-06   -.19343E-04
  24  Prefactor     7.9797        113.72        .41029E-05   -.19634E-04
  25  Normalizat    1.1645        .41064        .85107E-05   -.12265E-04
  26  Prefactor     1.0947        .37509       -.10326E-04   -.56972E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 296.286
  norm       = 75.4372
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.37589
  Prefactor  = 0.0001
  Prefactor  = 5.28726
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.13392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.51447
  norm       = 9.99233
  Prefactor  = 0.0001
  Prefactor  = 0.20029
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.65152
  Prefactor  = 22.7242
  Prefactor  = 7.97973
  Normalizat = 1.16455
  Prefactor  = 1.0947
 **********
 **   18 **HESSE 
 **********

 FCN=   1928.875     FROM HESSE     STATUS=OK           456 CALLS     3555 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     296.29        261.11        .11792E-03   -1.2248    
   2  norm          75.437        123.86        .46233E-04   -1.3969    
   3  Prefactor     .10000E-03    73.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    231.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3759        231.20        .21651E-03   -1.5340    
   7  Prefactor     .10000E-03    21.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.2873        5.6555        .10065E-03   -1.5248    
   9  Prefactor     .10000E-03    8.5908        .12574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.5760        .12371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.1339        9.5186        .16059E-03   -1.5213    
  13  Prefactor     .10000E-03    49.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.6458        .69668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.5145        6.5826        .99840E-04   -1.5160    
  16  norm          9.9923        6.7332        .86720E-04   -1.5076    
  17  Prefactor     .10000E-03    1.7903        .57328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .20029        23.147        .15421E-02   -1.5618    
  19  Prefactor     .10000E-03    13.102        .15376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .43983        .50107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    14.816        .32306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.6515        19.268        .15579E-03   -1.5192    
  23  Prefactor     22.724        18.881        .83989E-04   -1.4754    
  24  Prefactor     7.9797        111.18        .14139E-03   -1.5143    
  25  Normalizat    1.1645        .44137        .27744E-03   -.87706    
  26  Prefactor     1.0947        .40857        .27995E-03   -.89636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.36199e-09
Minuit parameter uncertainties:
  1  262.151
  2  124.282
  3  0.000316678
  4  0.00117019
  5  2.08418e-05
  6  56.1011
  7  3.11998e-05
  8  5.65605
  9  6.68975e-06
  10  8.31756e-05
  11  4.24062e-05
  12  9.52093
  13  4.25927e-05
  14  7.55799e-06
  15  6.58325
  16  6.73367
  17  1.0809e-05
  18  4.30697
  19  8.70179e-05
  20  6.6323e-06
  21  0.000169131
  22  19.2861
  23  18.8861
  24  59.7068
  25  0.442786
  26  0.409749
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  6.134e+00  9.521e+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

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  1.095e+00  4.097e-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.165e+00  4.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.66
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 3.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.48e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263786/likelihoodResults_589248001_589507201_4FGL_J1200.7+2008_daily_bin1350.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) = 1928.42338691
delta logL = 0.451772590988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1928.27281317
delta logL = 0.602346326498

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.3722       1.0000          .0000       10.000    
     3 'Normalizat'    1.0464       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1940       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=   1928.273     FROM MIGRAD    STATUS=CONVERGED    245 CALLS      614 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13868E-03    .12911E-03    .19914E-03** at limit **
   2  Index         9.3780        .55429        .19714        .24428E-04
   3  Normalizat    1.0460        .35282        .65481E-01   -.18306E-04
   4  Prefactor     1.1941        .34506        .61019E-01   -.19184E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000138683
  Index      = 9.37801
  Normalizat = 1.04603
  Prefactor  = 1.19414
 **********
 **   18 **HESSE 
 **********

 FCN=   1928.273     FROM HESSE     STATUS=OK            35 CALLS      649 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13868E-03    .24287E-02    .84666E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.3780        1.9836        .92291E-02    1.0667    
   3  Normalizat    1.0460        .42026        .28966E-03   -.91504    
   4  Prefactor     1.1941        .41088        .26986E-03   -.86512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84117e-11
Minuit parameter uncertainties:
  1  0.000613023
  2  2.32743
  3  0.421607
  4  0.411992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263786': 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): 0
logL (Free Index) = 1928.27281066
delta logL = 0.602348840853

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.387e-04  6.130e-04  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  9.378e+00  2.327e+00  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.194e+00  4.120e-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.046e+00  4.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.98
Ra Dec: 180.187 20.135
Photon Index (Free Index): 9.38 +/- 2.33
Photon Flux (Free Index): 2.02e-07 +/- 1.71e-06
Energy Flux (Free Index): 2.28e-05 +/- 1.94e-04

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/263786/cmap_HighResolution_589248001_589507201_4FGL_J1200.7+2008_daily_bin1350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-02', comment='SUCCESS', energy_flux2='2.28e-05', dlogl='6.02e-01', photon_flux2='2.02e-07', job_status='DONE', time_completed='2021-09-04 21:04:17.738997', photon_index_error2='2.33', photon_index2='9.38', ts='0.66', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='3.18e-07', energy_flux_error2='1.94e-04', EG='1.16', time_epoch_completed='1630814657.74', return_code='0', job_id='263786', GAL2='1.19', EG2='1.05', return_code2='0', photon_flux_error2='1.71e-06', ts2='1.98', photon_index='2.52' WHERE bin_id='1350' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:04:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 263786: <4FGL_J1200.7+2008_daily_bin1350> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1350 180.187 20.1354 589248001 589507201 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 :                                   459.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             222.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            831 sec.

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

