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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1297
RA = 180.187, Dec = 20.1354
tmin = 575510401, tmax = 575769601
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='262467', job_status='RUN', time_executed='2021-09-04 20:48:56.488397', time_epoch_executed='1630813736.49' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1297'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262467

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262467/ft1_4FGL_J1200.7+2008_daily_bin1297.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262467/ft2_4FGL_J1200.7+2008_daily_bin1297.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262467/ft1_4FGL_J1200.7+2008_daily_bin1297.fits outfile=/scratch/kocevski/262467/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1297.fits ra=180.187 dec=20.1354 rad=12.0 tmin=575510401.0 tmax=575769601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.21
user 4.97
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262467/ft1_filtered_4FGL_J1200.7+2008_daily_bin1297.fits" evtable="EVENTS" scfile=/scratch/kocevski/262467/ft2_4FGL_J1200.7+2008_daily_bin1297.fits sctable="SC_DATA" outfile=/scratch/kocevski/262467/ltcube_575510401_575769601_4FGL_J1200.7+2008_daily_bin1297.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/262467/ft2_4FGL_J1200.7+2008_daily_bin1297.fits
.....................!
real 11.73
user 11.27
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262467/ft1_filtered_4FGL_J1200.7+2008_daily_bin1297.fits evtable="EVENTS" scfile=/scratch/kocevski/262467/ft2_4FGL_J1200.7+2008_daily_bin1297.fits sctable="SC_DATA" expcube=/scratch/kocevski/262467/ltcube_575510401_575769601_4FGL_J1200.7+2008_daily_bin1297.fits outfile=/scratch/kocevski/262467/expmap_575510401_575769601_4FGL_J1200.7+2008_daily_bin1297.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/262467/ltcube_575510401_575769601_4FGL_J1200.7+2008_daily_bin1297.fits
.....................!
real 190.73
user 185.93
sys 4.46

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/262467/ft1_filtered_4FGL_J1200.7+2008_daily_bin1297.fits scfile=/scratch/kocevski/262467/ft2_4FGL_J1200.7+2008_daily_bin1297.fits outfile=/scratch/kocevski/262467/cmap_575510401_575769601_4FGL_J1200.7+2008_daily_bin1297.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262467/ft1_filtered_4FGL_J1200.7+2008_daily_bin1297.fits scfile=/scratch/kocevski/262467/ft2_4FGL_J1200.7+2008_daily_bin1297.fits outfile=/scratch/kocevski/262467/cmap_HighResolution_575510401_575769601_4FGL_J1200.7+2008_daily_bin1297.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262467/ft1_filtered_4FGL_J1200.7+2008_daily_bin1297.fits evtable="EVENTS" scfile=/scratch/kocevski/262467/ft2_4FGL_J1200.7+2008_daily_bin1297.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262467/Model_4FGL_J1200.7+2008_daily_bin1297.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/262467/ft1_filtered_4FGL_J1200.7+2008_daily_bin1297.fits.....................!
real 51.98
user 50.37
sys 1.49

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4048       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.643       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2268       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.716       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .63565E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6428       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6484       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1336       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.0426       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5082       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11648E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .95080E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    8.8315       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.824       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0134       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85364       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=   5309.948     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     3097 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4049        7.1466        .92883E-07   -.18067E-03
   2  norm          .10000E-03    8.1975       -.92380E-06** at limit **
   3  Prefactor     15.644        11.322        .15346E-07    .21293E-04
   4  Prefactor     .10000E-03    18.875        .38548E-06** at limit **
   5  Prefactor     .10000E-03    6.5328       -.27575E-06** at limit **
   6  Prefactor     1.2002        7.9110        .60982E-05   -.10050E-02
   7  Prefactor     23.717        12.668        .73726E-07    .90220E-04
   8  Prefactor     .10000E-03    .67927       -.17373E-06** at limit **
   9  Prefactor     .10000E-03    5.5908        .18356E-05** at limit **
  10  norm          2.6433        1.1764       -.13844E-07    .28232E-03
  11  Prefactor     .10000E-03    4.8727       -.15499E-06** at limit **
  12  Prefactor     5.6486        3.2683        .29229E-07    .19907E-03
  13  Prefactor     .10000E-03    20.505       -.73231E-06** at limit **
  14  Prefactor     1.1335        1.9743        .61597E-07    .69408E-04
  15  Prefactor     .10000E-03    1.3990        .11455E-06** at limit **
  16  norm          6.0422        3.6714        .60408E-07    .56496E-03
  17  Prefactor     6.5082        3.5679        .13877E-06    .82688E-03
  18  Prefactor     .10000E-03    1.4238        .87584E-07** at limit **
  19  Prefactor     .10001E-03    7.3592        .62494E-05** at limit **
  20  norm          .95060E-01    .15285       -.16816E-07   -.11248E-02
  21  norm          8.8318        4.6376        .55866E-06    .12516E-02
  22  Prefactor     .10000E-03    6.4751        .18657E-05** at limit **
  23  Prefactor     .10000E-03    5.7685        .40885E-06** at limit **
  24  Prefactor     18.834        27.865       -.35693E-06    .32418E-04
  25  Normalizat    1.0133        .17976       -.11737E-05    .23539E-03
  26  Prefactor     .85381        .18101        .14423E-05    .33396E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.40495
  norm       = 0.000100002
  Prefactor  = 15.6438
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.20016
  Prefactor  = 23.717
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.64331
  Prefactor  = 0.0001
  Prefactor  = 5.6486
  Prefactor  = 0.000100003
  Prefactor  = 1.13353
  Prefactor  = 0.0001
  norm       = 6.04222
  Prefactor  = 6.50821
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 0.0950601
  norm       = 8.83182
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 18.8338
  Normalizat = 1.01325
  Prefactor  = 0.853806
 **********
 **   18 **HESSE 
 **********

 FCN=   5309.948     FROM HESSE     STATUS=OK           458 CALLS     3555 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4049        7.1536        .69139E-03   -1.5128    
   2  norm          .10000E-03    8.3440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.644        11.336        .10127E-03   -1.4917    
   4  Prefactor     .10000E-03    18.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2002        20.491        .20322E-02   -1.5489    
   7  Prefactor     23.717        12.689        .82254E-04   -1.4734    
   8  Prefactor     .10000E-03    1.9360        .11677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.033        .32694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6433        1.1781        .50749E-04   -1.5383    
  11  Prefactor     .10000E-03    4.8806        .15715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.6486        3.2646        .95983E-04   -1.5233    
  13  Prefactor     .10000E-03    20.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1335        1.9293        .12905E-03   -1.5495    
  15  Prefactor     .10000E-03    1.4222        .83994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.0422        3.6844        .97302E-04   -1.5216    
  17  Prefactor     6.5082        3.5814        .91185E-04   -1.5198    
  18  Prefactor     .10000E-03    1.4572        .16934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    9.5828        .26828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .95060E-01    .13430        .34601E-03   -1.5646    
  21  norm          8.8318        4.5809        .10846E-03   -1.5114    
  22  Prefactor     .10000E-03    6.7763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.8175        .17132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.834        28.028        .92314E-04   -1.4840    
  25  Normalizat    1.0133        .20609        .23232E-03   -.92588    
  26  Prefactor     .85381        .20766        .26272E-03   -.97774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12366e-08
Minuit parameter uncertainties:
  1  7.15432
  2  0.000262324
  3  11.3374
  4  0.000290715
  5  6.74627e-05
  6  9.92169
  7  12.6904
  8  1.43753e-05
  9  0.000271804
  10  1.17815
  11  3.96403e-05
  12  3.26466
  13  0.000466421
  14  1.92943
  15  9.73899e-06
  16  3.68454
  17  3.58155
  18  5.24175e-06
  19  0.000644371
  20  0.134304
  21  4.58106
  22  0.000331348
  23  0.000127204
  24  28.0475
  25  0.206251
  26  0.207854
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  5.649e+00  3.265e+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:  8.538e-01  2.079e-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.013e+00  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.56
Ra Dec: 180.187 20.135
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 5.50e-08 +/- 3.18e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 9.03e-06

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) = 5306.58580914
delta logL = 3.36176192688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5306.5563519
delta logL = 3.39121916543

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4310       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4186       1.0000          .0000       10.000    
     3 'Normalizat'    1.0453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83820       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=   5306.556     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      202 TOTAL
                     EDM=   .85E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4310        3.5231        .43107E-02    .97480E-04
   2  Index         1.4186        .29443        .13583       -.11639E-04
   3  Normalizat    1.0453        .17252        .40879E-01    .31576E-04
   4  Prefactor     .83820        .18147        .44212E-01   -.12166E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.431
  Index      = 1.41863
  Normalizat = 1.04534
  Prefactor  = 0.838197
 **********
 **   18 **HESSE 
 **********

 FCN=   5306.556     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4310        4.4420        .10191E-03   -1.5242    
   2  Index         1.4186        .39141        .56999E-02   -.79845    
   3  Normalizat    1.0453        .19663        .22916E-03   -.91527    
   4  Prefactor     .83820        .20682        .26490E-03   -.98335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23242e-11
Minuit parameter uncertainties:
  1  4.44226
  2  0.392233
  3  0.196768
  4  0.207011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262467': 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) = 5306.5563519
delta logL = 3.39121916827

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  5.431e+00  4.442e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  1.419e+00  3.922e-01  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  8.382e-01  2.070e-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.045e+00  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.35
Ra Dec: 180.187 20.135
Photon Index (Free Index): 1.42 +/- 0.39
Photon Flux (Free Index): 2.04e-08 +/- 1.67e-08
Energy Flux (Free Index): 8.48e-05 +/- 8.35e-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/262467/cmap_HighResolution_575510401_575769601_4FGL_J1200.7+2008_daily_bin1297.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.50e-08', energy_flux2='8.48e-05', photon_flux_error='3.18e-08', dlogl='3.39e+00', energy_flux='1.56e-05', photon_flux2='2.04e-08', job_status='DONE', time_completed='2021-09-04 20:59:46.135147', photon_index_error2='0.39', photon_index2='1.42', ts='9.56', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='8.35e-05', EG='1.01', time_epoch_completed='1630814386.14', return_code='0', job_id='262467', GAL2='0.84', EG2='1.05', return_code2='0', energy_flux_error='9.03e-06', photon_flux_error2='1.67e-08', ts2='16.35', photon_index='2.52' WHERE bin_id='1297' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:59:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 262467: <4FGL_J1200.7+2008_daily_bin1297> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1297> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:45:55 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:45:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 20:45:56 2021
Terminated at Sat Sep  4 20:59:47 2021
Results reported at Sat Sep  4 20:59:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1297 180.187 20.1354 575510401 575769601 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 :                                   644.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            832 sec.

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

