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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1437
RA = 180.187, Dec = 20.1354
tmin = 611798401, tmax = 612057601
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='263912', job_status='RUN', time_executed='2021-09-04 20:52:59.837420', time_epoch_executed='1630813979.84' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263912

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263912/ft1_4FGL_J1200.7+2008_daily_bin1437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263912/ft2_4FGL_J1200.7+2008_daily_bin1437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263912/ft1_4FGL_J1200.7+2008_daily_bin1437.fits outfile=/scratch/kocevski/263912/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1437.fits ra=180.187 dec=20.1354 rad=12.0 tmin=611798401.0 tmax=612057601.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.68
user 3.32
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263912/ft2_4FGL_J1200.7+2008_daily_bin1437.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/263912/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1437.fits evtable="EVENTS" outfile="/scratch/kocevski/263912/ft1_filtered_4FGL_J1200.7+2008_daily_bin1437.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.66
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263912/ft1_filtered_4FGL_J1200.7+2008_daily_bin1437.fits" evtable="EVENTS" scfile=/scratch/kocevski/263912/ft2_4FGL_J1200.7+2008_daily_bin1437.fits sctable="SC_DATA" outfile=/scratch/kocevski/263912/ltcube_611798401_612057601_4FGL_J1200.7+2008_daily_bin1437.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/263912/ft2_4FGL_J1200.7+2008_daily_bin1437.fits
.....................!
real 12.91
user 12.17
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263912/ft1_filtered_4FGL_J1200.7+2008_daily_bin1437.fits evtable="EVENTS" scfile=/scratch/kocevski/263912/ft2_4FGL_J1200.7+2008_daily_bin1437.fits sctable="SC_DATA" expcube=/scratch/kocevski/263912/ltcube_611798401_612057601_4FGL_J1200.7+2008_daily_bin1437.fits outfile=/scratch/kocevski/263912/expmap_611798401_612057601_4FGL_J1200.7+2008_daily_bin1437.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/263912/ltcube_611798401_612057601_4FGL_J1200.7+2008_daily_bin1437.fits
.....................!
real 192.10
user 185.63
sys 5.49

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/263912/ft1_filtered_4FGL_J1200.7+2008_daily_bin1437.fits scfile=/scratch/kocevski/263912/ft2_4FGL_J1200.7+2008_daily_bin1437.fits outfile=/scratch/kocevski/263912/cmap_611798401_612057601_4FGL_J1200.7+2008_daily_bin1437.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.56
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263912/ft1_filtered_4FGL_J1200.7+2008_daily_bin1437.fits evtable="EVENTS" scfile=/scratch/kocevski/263912/ft2_4FGL_J1200.7+2008_daily_bin1437.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263912/Model_4FGL_J1200.7+2008_daily_bin1437.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/263912/ft1_filtered_4FGL_J1200.7+2008_daily_bin1437.fits.....................!
real 51.12
user 49.30
sys 1.46

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.014       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0235       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.731       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .47086E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4271       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0895       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.709       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5667       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8143       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9726       1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.635       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3184       1.0000         .10000E-03   10000.    
    16 'norm      '    3.3686       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3475       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.2873       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    18.650       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.508       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1835       1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.930       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .79134       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94928       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=   5372.707     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3164 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7724        .24812E-06** at limit **
   2  norm          .10000E-03    3.2726       -.14186E-06** at limit **
   3  Prefactor     15.013        9.4452       -.10416E-07    .23314E-04
   4  Prefactor     5.0179        69.511       -.32673E-04   -.87547E-05
   5  Prefactor     23.732        15.253       -.89254E-06    .41925E-05
   6  Prefactor     .10009E-03    12.647       -.13981E-06** at limit **
   7  Prefactor     7.4254        12.811       -.33487E-05   -.32545E-05
   8  Prefactor     3.0898        1.7890       -.75958E-07    .10128E-03
   9  Prefactor     13.706        15.104        .22654E-05    .39557E-04
  10  norm          2.5667        1.3262       -.94633E-07    .68844E-04
  11  Prefactor     6.8143        13.475       -.47689E-05   -.21259E-04
  12  Prefactor     2.9721        4.1002        .27746E-06    .47207E-04
  13  Prefactor     39.629        103.07       -.81095E-05    .21252E-05
  14  Prefactor     .10000E-03    1.8905        .20105E-06** at limit **
  15  Prefactor     4.3179        3.5671       -.21866E-06   -.12189E-04
  16  norm          3.3685        2.7343       -.35655E-07   -.45842E-05
  17  Prefactor     2.3473        2.3486       -.48525E-07   -.13765E-04
  18  Prefactor     7.2858        3.1172       -.16883E-06    .33500E-04
  19  Prefactor     .10000E-03    6.7677       -.16570E-06** at limit **
  20  norm          .10000E-03    .60790E-01   -.83990E-07** at limit **
  21  norm          18.649        6.0602       -.13940E-06    .69569E-04
  22  Prefactor     21.508        14.540       -.10395E-05    .18313E-04
  23  Prefactor     1.1972        4.3659        .13765E-05   -.71089E-03
  24  Prefactor     21.910        36.104        .97875E-05    .30986E-04
  25  Normalizat    .79158        .19219        .98000E-06    .98178E-04
  26  Prefactor     .94909        .17915        .92844E-06    .71391E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.0134
  Prefactor  = 5.01794
  Prefactor  = 23.7315
  Prefactor  = 0.00010009
  Prefactor  = 7.42537
  Prefactor  = 3.08982
  Prefactor  = 13.7058
  norm       = 2.56668
  Prefactor  = 6.8143
  Prefactor  = 2.97213
  Prefactor  = 39.629
  Prefactor  = 0.0001
  Prefactor  = 4.31792
  norm       = 3.36852
  Prefactor  = 2.3473
  Prefactor  = 7.2858
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.6489
  Prefactor  = 21.5077
  Prefactor  = 1.19717
  Prefactor  = 21.9103
  Normalizat = 0.791584
  Prefactor  = 0.949091
 **********
 **   18 **HESSE 
 **********

 FCN=   5372.707     FROM HESSE     STATUS=OK           478 CALLS     3642 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7748        .95297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.2820        .12949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.013        9.4620        .10337E-03   -1.4933    
   4  Prefactor     5.0179        69.997        .17941E-03   -1.5260    
   5  Prefactor     23.732        15.289        .82227E-04   -1.4733    
   6  Prefactor     .10009E-03    18.015        .73328E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.4254        12.787        .14717E-03   -1.5163    
   8  Prefactor     3.0898        1.7899        .70364E-04   -1.5356    
   9  Prefactor     13.706        15.090        .10818E-03   -1.4967    
  10  norm          2.5667        1.3245        .57308E-04   -1.5388    
  11  Prefactor     6.8143        13.425        .15370E-03   -1.5186    
  12  Prefactor     2.9721        4.0764        .15915E-03   -1.5363    
  13  Prefactor     39.629        102.68        .63668E-04   -1.4448    
  14  Prefactor     .10000E-03    1.9225        .19516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.3179        3.5505        .11590E-03   -1.5292    
  16  norm          3.3685        2.7566        .98259E-04   -1.5341    
  17  Prefactor     2.3473        2.3673        .10081E-03   -1.5402    
  18  Prefactor     7.2858        3.2333        .77475E-04   -1.5168    
  19  Prefactor     .10000E-03    7.0175        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .70731E-01    .35062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          18.649        6.0573        .92743E-04   -1.4844    
  22  Prefactor     21.508        14.532        .86367E-04   -1.4780    
  23  Prefactor     1.1972        40.857        .20989E-02   -1.5489    
  24  Prefactor     21.910        36.127        .85532E-04   -1.4771    
  25  Normalizat    .79158        .21992        .25814E-03   -1.0038    
  26  Prefactor     .94909        .20313        .24907E-03   -.94446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19248e-09
Minuit parameter uncertainties:
  1  4.73613e-07
  2  2.03145e-06
  3  9.46295
  4  37.5359
  5  15.2917
  6  0.00254694
  7  12.792
  8  1.78989
  9  15.0939
  10  1.32452
  11  13.4312
  12  4.07678
  13  103.142
  14  2.20619e-06
  15  3.55063
  16  2.75672
  17  2.36735
  18  3.23339
  19  3.07289e-06
  20  3.22062e-07
  21  6.05752
  22  14.5339
  23  13.9973
  24  36.1631
  25  0.22017
  26  0.203288
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  2.972e+00  4.077e+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:  9.491e-01  2.033e-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:  7.916e-01  2.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.72
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263912/likelihoodResults_611798401_612057601_4FGL_J1200.7+2008_daily_bin1437.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): 0
logL (Free Index) = 5372.51493401
delta logL = 0.192319595151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5372.4992448
delta logL = 0.208008803983

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2278       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4508       1.0000          .0000       10.000    
     3 'Normalizat'    .76445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96898       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=   5372.499     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      243 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2260        27.334        .10154E-01    .74149E-03
   2  Index         3.4519        6.6567        .14790        .10324E-03
   3  Normalizat    .76445        .45462E-01    .43145E-01    .13580E-04
   4  Prefactor     .96898        .46957E-01    .45878E-01    .53710E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.22604
  Index      = 3.45193
  Normalizat = 0.764451
  Prefactor  = 0.968975
 **********
 **   18 **HESSE 
 **********

 FCN=   5372.499     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2260        63.728        .81678E-04   -1.5487    
   2  Index         3.4519        6.0677        .79591E-02   -.31479    
   3  Normalizat    .76445        .22701        .26229E-03   -1.0140    
   4  Prefactor     .96898        .24047        .24681E-03   -.93771    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02243e-09
Minuit parameter uncertainties:
  1  17.6978
  2  9.50219
  3  0.227289
  4  0.240736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263912': 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) = 5372.4992446
delta logL = 0.208009003316

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.226e+00  1.770e+01  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  3.452e+00  9.502e+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:  9.690e-01  2.407e-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:  7.645e-01  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 180.187 20.135
Photon Index (Free Index): 3.45 +/- 9.50
Photon Flux (Free Index): 4.70e-08 +/- 5.66e-08
Energy Flux (Free Index): 7.93e-06 +/- 1.86e-05

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/263912/cmap_HighResolution_611798401_612057601_4FGL_J1200.7+2008_daily_bin1437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.84e-03', comment='SUCCESS', energy_flux2='7.93e-06', dlogl='2.08e-01', photon_flux2='4.70e-08', job_status='DONE', time_completed='2021-09-04 21:05:56.992122', photon_index_error2='9.50', photon_index2='3.45', ts='0.72', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.86e-05', EG='0.79', time_epoch_completed='1630814756.99', return_code='0', job_id='263912', GAL2='0.97', EG2='0.76', return_code2='102', photon_flux_error2='5.66e-08', ts2='1.16', photon_index='2.52' WHERE bin_id='1437' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:05:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 263912: <4FGL_J1200.7+2008_daily_bin1437> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1437 180.187 20.1354 611798401 612057601 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 :                                   728.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            922 sec.

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

