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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1290
RA = 180.187, Dec = 20.1354
tmin = 573696001, tmax = 573955201
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='262460', job_status='RUN', time_executed='2021-09-04 20:48:23.987008', time_epoch_executed='1630813703.99' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1290'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262460

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262460/ft1_4FGL_J1200.7+2008_daily_bin1290.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262460/ft2_4FGL_J1200.7+2008_daily_bin1290.fits


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

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

Done.
real 4.45
user 4.20
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262460/ft1_filtered_4FGL_J1200.7+2008_daily_bin1290.fits" evtable="EVENTS" scfile=/scratch/kocevski/262460/ft2_4FGL_J1200.7+2008_daily_bin1290.fits sctable="SC_DATA" outfile=/scratch/kocevski/262460/ltcube_573696001_573955201_4FGL_J1200.7+2008_daily_bin1290.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/262460/ft2_4FGL_J1200.7+2008_daily_bin1290.fits
.....................!
real 11.65
user 11.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262460/ft1_filtered_4FGL_J1200.7+2008_daily_bin1290.fits evtable="EVENTS" scfile=/scratch/kocevski/262460/ft2_4FGL_J1200.7+2008_daily_bin1290.fits sctable="SC_DATA" expcube=/scratch/kocevski/262460/ltcube_573696001_573955201_4FGL_J1200.7+2008_daily_bin1290.fits outfile=/scratch/kocevski/262460/expmap_573696001_573955201_4FGL_J1200.7+2008_daily_bin1290.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/262460/ltcube_573696001_573955201_4FGL_J1200.7+2008_daily_bin1290.fits
.....................!
real 191.26
user 186.35
sys 4.54

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/262460/ft1_filtered_4FGL_J1200.7+2008_daily_bin1290.fits scfile=/scratch/kocevski/262460/ft2_4FGL_J1200.7+2008_daily_bin1290.fits outfile=/scratch/kocevski/262460/cmap_573696001_573955201_4FGL_J1200.7+2008_daily_bin1290.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262460/ft1_filtered_4FGL_J1200.7+2008_daily_bin1290.fits scfile=/scratch/kocevski/262460/ft2_4FGL_J1200.7+2008_daily_bin1290.fits outfile=/scratch/kocevski/262460/cmap_HighResolution_573696001_573955201_4FGL_J1200.7+2008_daily_bin1290.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=180.187 yref=20.1354 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262460/ft1_filtered_4FGL_J1200.7+2008_daily_bin1290.fits evtable="EVENTS" scfile=/scratch/kocevski/262460/ft2_4FGL_J1200.7+2008_daily_bin1290.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262460/Model_4FGL_J1200.7+2008_daily_bin1290.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/262460/ft1_filtered_4FGL_J1200.7+2008_daily_bin1290.fits.....................!
real 55.99
user 53.85
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1619       1.0000         .10000E-03   10000.    
     2 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0526       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17100E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.243       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8745       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5506       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3262       1.0000         .10000E-03   10000.    
    10 'norm      '    6.8553       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .60073E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0420       1.0000         .10000E-03   10000.    
    16 'norm      '    12.168       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .36037       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .12453       1.0000         .10000E-03   10000.    
    21 'norm      '    6.5254       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    36.240       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .95024       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0911       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=   5703.226     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     3219 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1616        5.1744       -.24403E-06    .19653E-03
   2  norm          .10000E-03    6.2466       -.21696E-06** at limit **
   3  Prefactor     2.0502        8.1208        .66209E-05    .56152E-04
   4  Prefactor     .10243E-03    71.460       -.13557E-04** at limit **
   5  Prefactor     30.248        20.739        .30609E-06   -.62146E-04
   6  Prefactor     .10000E-03    9.9418       -.16160E-06** at limit **
   7  Prefactor     3.8818        10.742        .14378E-05    .19780E-03
   8  Prefactor     1.5497        2.2324        .27276E-07   -.28995E-04
   9  Prefactor     2.3250        5.3699        .30232E-05    .15412E-04
  10  norm          6.8550        1.9252        .21962E-07    .17143E-03
  11  Prefactor     .10000E-03    8.6771       -.75284E-08** at limit **
  12  Prefactor     .10000E-03    2.1757        .77129E-06** at limit **
  13  Prefactor     .10000E-03    54.068        .23117E-07** at limit **
  14  Prefactor     .10000E-03    1.7502       -.99829E-06** at limit **
  15  Prefactor     6.0513        5.2621        .12636E-05    .98544E-03
  16  norm          12.170        4.8453        .23174E-08   -.24311E-04
  17  Prefactor     .36035        3.0815       -.46994E-07   -.18719E-03
  18  Prefactor     .10000E-03    2.0458       -.12017E-06** at limit **
  19  Prefactor     .10000E-03    4.0975       -.82541E-07** at limit **
  20  norm          .12436        .27335        .12808E-06    .14222E-02
  21  norm          6.5254        4.0912        .12569E-07    .45279E-04
  22  Prefactor     .10000E-03    3.9131        .73800E-06** at limit **
  23  Prefactor     .10000E-03    12.414       -.17464E-06** at limit **
  24  Prefactor     36.210        42.312       -.10907E-05    .12724E-03
  25  Normalizat    .95026        .20753        .23940E-06    .80435E-03
  26  Prefactor     1.0914        .19939       -.10559E-05    .67913E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.16156
  norm       = 0.0001
  Prefactor  = 2.05015
  Prefactor  = 0.000102433
  Prefactor  = 30.2475
  Prefactor  = 0.0001
  Prefactor  = 3.88184
  Prefactor  = 1.5497
  Prefactor  = 2.32499
  norm       = 6.85503
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 6.05131
  norm       = 12.1704
  Prefactor  = 0.360346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.124357
  norm       = 6.52537
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 36.2098
  Normalizat = 0.950261
  Prefactor  = 1.09143
 **********
 **   18 **HESSE 
 **********

 FCN=   5703.226     FROM HESSE     STATUS=OK           476 CALLS     3695 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1616        5.1756        .16707E-03   -1.5254    
   2  norm          .10000E-03    6.2685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0502        8.1182        .14426E-02   -1.5422    
   4  Prefactor     .10243E-03    50.638        .13707       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.248        20.730        .72856E-04   -1.4607    
   6  Prefactor     .10000E-03    9.9534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.8818        10.714        .20500E-03   -1.5314    
   8  Prefactor     1.5497        2.2060        .12736E-03   -1.5459    
   9  Prefactor     2.3250        5.3537        .12962E-02   -1.5403    
  10  norm          6.8550        1.9261        .52925E-04   -1.5184    
  11  Prefactor     .10000E-03    8.7119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.289        .20788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    54.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    35.229        .17536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.0513        5.0237        .69894E-03   -1.5216    
  16  norm          12.170        4.8602        .86060E-04   -1.5010    
  17  Prefactor     .36035        6.1965        .21728E-02   -1.5588    
  18  Prefactor     .10000E-03    2.1260        .21001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1331        .14913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .12436        .27543        .52419E-03   -1.5637    
  21  norm          6.5254        4.0851        .11699E-03   -1.5197    
  22  Prefactor     .10000E-03    3.9465        .14647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.758        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     36.210        42.384        .66572E-04   -1.4504    
  25  Normalizat    .95026        .24179        .27564E-03   -.94716    
  26  Prefactor     1.0914        .23300        .26438E-03   -.89741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73446e-08
Minuit parameter uncertainties:
  1  5.17607
  2  4.00137e-05
  3  8.12255
  4  0.0222182
  5  20.7346
  6  6.5428e-05
  7  10.7191
  8  2.20613
  9  5.3548
  10  1.92616
  11  3.32868e-06
  12  9.52246e-05
  13  2.42242e-05
  14  0.00059796
  15  5.02407
  16  4.86034
  17  2.98852
  18  1.26591e-05
  19  1.34162e-05
  20  0.275437
  21  4.08524
  22  0.000105985
  23  5.6247e-05
  24  42.4188
  25  0.242066
  26  0.233215
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  9.522e-05  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.091e+00  2.332e-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:  9.503e-01  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 8.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/262460/likelihoodResults_573696001_573955201_4FGL_J1200.7+2008_daily_bin1290.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) = 5703.22615143
delta logL = -0.000462602641164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5703.22568849
delta logL = 3.38906829711e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46572E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3882       1.0000          .0000       10.000    
     3 'Normalizat'    .95046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0912       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5703.210     FROM MIGRAD    STATUS=CONVERGED    148 CALLS      335 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53542        4.6517        .31508E-03   -.31752E-05
   2  Index         1.8992        1.6719        .21323E-01   -.61647E-04
   3  Normalizat    .95226        .22459        .27539E-03   -.37856E-04
   4  Prefactor     1.0869        .23112        .26487E-03   -.45969E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.535417
  Index      = 1.89917
  Normalizat = 0.952261
  Prefactor  = 1.08692
 **********
 **   18 **HESSE 
 **********

 FCN=   5703.210     FROM HESSE     STATUS=OK            25 CALLS      360 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53542        4.6712        .12603E-04   -1.5854    
   2  Index         1.8992        1.6773        .42646E-02   -.66896    
   3  Normalizat    .95226        .22478        .11015E-04   -.94647    
   4  Prefactor     1.0869        .23132        .10595E-04   -.89886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79166e-12
Minuit parameter uncertainties:
  1  3.16296
  2  1.7332
  3  0.225003
  4  0.231529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262460': 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) = 5703.20959019
delta logL = 0.0160986434284

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  5.354e-01  3.163e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  1.899e+00  1.733e+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.087e+00  2.315e-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:  9.523e-01  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.187 20.135

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/262460/cmap_HighResolution_573696001_573955201_4FGL_J1200.7+2008_daily_bin1290.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.78e-03', job_status='DONE', photon_flux_upper_limit='8.70e-08', time_completed='2021-09-04 21:00:49.062883', job_id='262460', GAL2='1.09', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630814449.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.61e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1290' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:00:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 262460: <4FGL_J1200.7+2008_daily_bin1290> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1290> 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) <bullet0041>, 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 21:00:49 2021
Results reported at Sat Sep  4 21:00:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1290 180.187 20.1354 573696001 573955201 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 :                                   737.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            894 sec.

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

