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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1408
RA = 180.187, Dec = 20.1354
tmin = 604281601, tmax = 604540801
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='263871', job_status='RUN', time_executed='2021-09-04 20:50:49.791030', time_epoch_executed='1630813849.79' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1408'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263871

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263871/ft1_4FGL_J1200.7+2008_daily_bin1408.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263871/ft2_4FGL_J1200.7+2008_daily_bin1408.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263871/ft1_4FGL_J1200.7+2008_daily_bin1408.fits outfile=/scratch/kocevski/263871/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1408.fits ra=180.187 dec=20.1354 rad=12.0 tmin=604281601.0 tmax=604540801.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 2.70
user 2.50
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263871/ft1_filtered_4FGL_J1200.7+2008_daily_bin1408.fits" evtable="EVENTS" scfile=/scratch/kocevski/263871/ft2_4FGL_J1200.7+2008_daily_bin1408.fits sctable="SC_DATA" outfile=/scratch/kocevski/263871/ltcube_604281601_604540801_4FGL_J1200.7+2008_daily_bin1408.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/263871/ft2_4FGL_J1200.7+2008_daily_bin1408.fits
.....................!
real 8.61
user 8.30
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263871/ft1_filtered_4FGL_J1200.7+2008_daily_bin1408.fits evtable="EVENTS" scfile=/scratch/kocevski/263871/ft2_4FGL_J1200.7+2008_daily_bin1408.fits sctable="SC_DATA" expcube=/scratch/kocevski/263871/ltcube_604281601_604540801_4FGL_J1200.7+2008_daily_bin1408.fits outfile=/scratch/kocevski/263871/expmap_604281601_604540801_4FGL_J1200.7+2008_daily_bin1408.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/263871/ltcube_604281601_604540801_4FGL_J1200.7+2008_daily_bin1408.fits
.....................!
real 145.79
user 142.27
sys 3.28

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/263871/ft1_filtered_4FGL_J1200.7+2008_daily_bin1408.fits scfile=/scratch/kocevski/263871/ft2_4FGL_J1200.7+2008_daily_bin1408.fits outfile=/scratch/kocevski/263871/cmap_604281601_604540801_4FGL_J1200.7+2008_daily_bin1408.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.45
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263871/ft1_filtered_4FGL_J1200.7+2008_daily_bin1408.fits scfile=/scratch/kocevski/263871/ft2_4FGL_J1200.7+2008_daily_bin1408.fits outfile=/scratch/kocevski/263871/cmap_HighResolution_604281601_604540801_4FGL_J1200.7+2008_daily_bin1408.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.45
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263871/ft1_filtered_4FGL_J1200.7+2008_daily_bin1408.fits evtable="EVENTS" scfile=/scratch/kocevski/263871/ft2_4FGL_J1200.7+2008_daily_bin1408.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263871/Model_4FGL_J1200.7+2008_daily_bin1408.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/263871/ft1_filtered_4FGL_J1200.7+2008_daily_bin1408.fits....................!
real 45.53
user 44.41
sys 1.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.5162       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16618E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4766       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2555       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1875       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5390       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15243       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1449       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.7760       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .97006       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10533E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .14144       1.0000         .10000E-03   10000.    
    21 'norm      '    4.4441       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .20160E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.6090       1.0000         .10000E-03   10000.    
    24 'Prefactor '    30.673       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0455       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1223       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6254.767     FROM MIGRAD    STATUS=CONVERGED   1186 CALLS     4192 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9725        .10842E-02** at limit **
   2  norm          .10000E-03    4.5401        .16433E-02** at limit **
   3  Prefactor     .10000E-03    3.3693        .14165E-02** at limit **
   4  Prefactor     5.4989        101.68        .17107E-03   -.39675E-04
   5  Prefactor     .10000E-03    19.204        .18142E-02** at limit **
   6  Prefactor     .10000E-03    7.5016        .18142E-02** at limit **
   7  Prefactor     .10000E-03    2.9434        .13242E-02** at limit **
   8  Prefactor     1.4754        2.0666        .12713E-03    .54548E-05
   9  Prefactor     .10000E-03    6.5703        .18142E-02** at limit **
  10  norm          1.2555        1.0168        .70218E-04    .88562E-04
  11  Prefactor     1.0801        163.52        .65086E-02    .89082E-04
  12  Prefactor     3.5387        2.9572        .11997E-03    .55057E-04
  13  Prefactor     .11047E-03    125.78        .21360    ** at limit **
  14  Prefactor     3.1451        2.5237        .10770E-03    .59221E-04
  15  Prefactor     .10000E-03    1.1966        .83989E-03** at limit **
  16  norm          3.7774        3.2118        .11284E-03    .12382E-03
  17  Prefactor     .96899        2.1983        .16562E-02    .18863E-03
  18  Prefactor     .10000E-03    9.1380        .16308E-02** at limit **
  19  Prefactor     .10000E-03    6.9330        .36285E-03** at limit **
  20  norm          .14141        .14568        .31317E-03   -.60824E-03
  21  norm          4.4416        4.1411        .14915E-03    .12394E-03
  22  Prefactor     .10029E-03    167.44        .48901E-02** at limit **
  23  Prefactor     2.6108        11.049        .12627E-02   -.29585E-04
  24  Prefactor     30.692        34.416        .72344E-04   -.70245E-04
  25  Normalizat    1.0461        .22672        .25745E-03    .12077E-03
  26  Prefactor     1.1219        .22044        .25530E-03   -.11489E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.49894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.47538
  Prefactor  = 0.0001
  norm       = 1.25547
  Prefactor  = 1.08014
  Prefactor  = 3.53874
  Prefactor  = 0.000110472
  Prefactor  = 3.14507
  Prefactor  = 0.0001
  norm       = 3.7774
  Prefactor  = 0.968986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.141413
  norm       = 4.44161
  Prefactor  = 0.000100292
  Prefactor  = 2.61079
  Prefactor  = 30.6921
  Normalizat = 1.04613
  Prefactor  = 1.12192
 **********
 **   18 **HESSE 
 **********

 FCN=   6254.767     FROM HESSE     STATUS=OK           450 CALLS     4642 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9725        .21684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.5405        .32866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.3695        .28330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.4989        101.65        .68427E-05   -1.5239    
   5  Prefactor     .10000E-03    19.218        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.5020        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9435        .26484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4754        2.0648        .50854E-05   -1.5465    
   9  Prefactor     .10000E-03    6.5713        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2555        1.0165        .28087E-05   -1.5484    
  11  Prefactor     1.0801        146.38        .26034E-03   -1.5500    
  12  Prefactor     3.5387        2.9570        .47988E-05   -1.5332    
  13  Prefactor     .11047E-03    117.99        .20810       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1451        2.5235        .43079E-05   -1.5353    
  15  Prefactor     .10000E-03    1.1967        .16798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7774        3.2046        .45136E-05   -1.5319    
  17  Prefactor     .96899        2.1915        .66250E-04   -1.5511    
  18  Prefactor     .10000E-03    9.2120        .32615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.9334        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .14141        .14560        .12527E-04   -1.5633    
  21  norm          4.4416        4.1393        .59660E-05   -1.5286    
  22  Prefactor     .10029E-03    171.89        .19560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.6108        11.019        .50509E-04   -1.5385    
  24  Prefactor     30.692        34.212        .28938E-05   -1.4599    
  25  Normalizat    1.0461        .22618        .10298E-04   -.91501    
  26  Prefactor     1.1219        .22059        .10212E-04   -.88769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98622e-09
Minuit parameter uncertainties:
  1  9.21562e-07
  2  3.18893e-06
  3  3.21652e-06
  4  47.3774
  5  2.37016e-05
  6  1.1866e-06
  7  1.71066e-06
  8  2.0649
  9  7.10809e-07
  10  1.0165
  11  25.2104
  12  2.95712
  13  0.0704402
  14  2.52354
  15  1.10444e-06
  16  3.20478
  17  2.19171
  18  6.159e-06
  19  1.51246e-05
  20  0.145604
  21  4.13953
  22  0.0142138
  23  10.7304
  24  34.2343
  25  0.226386
  26  0.220769
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  3.539e+00  2.957e+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.122e+00  2.208e-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  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.00
Ra Dec: 180.187 20.135
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 3.45e-08 +/- 2.88e-08
Energy Flux (Fixed Index): 9.79e-06 +/- 8.18e-06

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

Saving results to:
/scratch/kocevski/263871/likelihoodResults_604281601_604540801_4FGL_J1200.7+2008_daily_bin1408.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) = 6250.49446971
delta logL = 4.27203498615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6250.3996966
delta logL = 4.36680809962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5731       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1034       1.0000          .0000       10.000    
     3 'Normalizat'    1.0597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1159       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=   6250.400     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      219 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5713        1.8583        .63613E-02   -.19846E-03
   2  Index         1.1031        .26028        .13748       -.80226E-04
   3  Normalizat    1.0596        .17635        .57860E-01    .73527E-05
   4  Prefactor     1.1161        .18107        .57792E-01   -.94219E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.57132
  Index      = 1.10315
  Normalizat = 1.05964
  Prefactor  = 1.11607
 **********
 **   18 **HESSE 
 **********

 FCN=   6250.400     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5713        2.6665        .81102E-04   -1.5387    
   2  Index         1.1031        .38956        .58226E-02   -.89366    
   3  Normalizat    1.0596        .21303        .25586E-03   -.91058    
   4  Prefactor     1.1161        .21879        .25556E-03   -.88955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71712e-09
Minuit parameter uncertainties:
  1  2.66664
  2  0.390573
  3  0.213205
  4  0.218966
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263871': 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) = 6250.39969612
delta logL = 4.36680857576

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  2.571e+00  2.667e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  1.103e+00  3.906e-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:  1.116e+00  2.190e-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.060e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.73
Ra Dec: 180.187 20.135
Photon Index (Free Index): 1.10 +/- 0.39
Photon Flux (Free Index): 1.13e-08 +/- 8.63e-09
Energy Flux (Free Index): 1.25e-04 +/- 1.19e-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/263871/cmap_HighResolution_604281601_604540801_4FGL_J1200.7+2008_daily_bin1408.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.37e-03', comment='SUCCESS', photon_flux='3.45e-08', energy_flux2='1.25e-04', photon_flux_error='2.88e-08', dlogl='4.37e+00', energy_flux='9.79e-06', photon_flux2='1.13e-08', job_status='DONE', time_completed='2021-09-04 21:02:07.955651', photon_index_error2='0.39', photon_index2='1.10', ts='3.00', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.19e-04', EG='1.05', time_epoch_completed='1630814527.96', return_code='0', job_id='263871', GAL2='1.12', EG2='1.06', return_code2='0', energy_flux_error='8.18e-06', photon_flux_error2='8.63e-09', ts2='11.73', photon_index='2.52' WHERE bin_id='1408' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:02:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 263871: <4FGL_J1200.7+2008_daily_bin1408> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1408 180.187 20.1354 604281601 604540801 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 :                                   669.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            696 sec.

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

