/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 116 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 = 7431
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1200.7+2008_daily_bin78
RA = 180.187, Dec = 20.1354
tmin = 259545601, tmax = 259804801
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='256935', job_status='RUN', time_executed='2021-09-04 20:32:36.993870', time_epoch_executed='1630812756.99' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='78'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256935

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256935/ft1_4FGL_J1200.7+2008_daily_bin78.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256935/ft2_4FGL_J1200.7+2008_daily_bin78.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256935/ft1_4FGL_J1200.7+2008_daily_bin78.fits outfile=/scratch/kocevski/256935/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin78.fits ra=180.187 dec=20.1354 rad=12.0 tmin=259545601.0 tmax=259804801.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 1.66
user 1.47
sys 0.17

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256935/ft1_filtered_4FGL_J1200.7+2008_daily_bin78.fits evtable="EVENTS" scfile=/scratch/kocevski/256935/ft2_4FGL_J1200.7+2008_daily_bin78.fits sctable="SC_DATA" expcube=/scratch/kocevski/256935/ltcube_259545601_259804801_4FGL_J1200.7+2008_daily_bin78.fits outfile=/scratch/kocevski/256935/expmap_259545601_259804801_4FGL_J1200.7+2008_daily_bin78.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/256935/ltcube_259545601_259804801_4FGL_J1200.7+2008_daily_bin78.fits
.....................!
real 193.49
user 188.29
sys 4.76

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/256935/ft1_filtered_4FGL_J1200.7+2008_daily_bin78.fits scfile=/scratch/kocevski/256935/ft2_4FGL_J1200.7+2008_daily_bin78.fits outfile=/scratch/kocevski/256935/cmap_259545601_259804801_4FGL_J1200.7+2008_daily_bin78.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256935/ft1_filtered_4FGL_J1200.7+2008_daily_bin78.fits scfile=/scratch/kocevski/256935/ft2_4FGL_J1200.7+2008_daily_bin78.fits outfile=/scratch/kocevski/256935/cmap_HighResolution_259545601_259804801_4FGL_J1200.7+2008_daily_bin78.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 1.21
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/256935/ft1_filtered_4FGL_J1200.7+2008_daily_bin78.fits evtable="EVENTS" scfile=/scratch/kocevski/256935/ft2_4FGL_J1200.7+2008_daily_bin78.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/256935/Model_4FGL_J1200.7+2008_daily_bin78.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/256935/ft1_filtered_4FGL_J1200.7+2008_daily_bin78.fits.....................!
real 62.16
user 60.79
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8436       1.0000         .10000E-03   10000.    
     2 'norm      '    6.3078       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2498       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2515       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6053       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4341       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1975       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.9849       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2040       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5254       1.0000         .10000E-03   10000.    
    13 'Prefactor '    204.35       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.4062       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1551       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0690       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2860       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8738       1.0000         .10000E-03   10000.    
    20 'norm      '    .20059       1.0000         .10000E-03   10000.    
    21 'norm      '    .76310       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.408       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .46411E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.7442       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .75074       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2058       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6950.527     FROM MIGRAD    STATUS=CONVERGED     89 CALLS     2625 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8432        2.7941       -.14970E-06   -.43783E-02
   2  norm          6.3067        1.2197        .20268E-06   -.15926E-03
   3  Prefactor     .10000E-03    9.5046       -.15673E-05** at limit **
   4  Prefactor     3.2505        1.2076       -.22517E-06    .59546E-03
   5  Prefactor     3.2509        1.0507        .61581E-07    .19836E-03
   6  Prefactor     5.6042        1.1896        .18183E-06   -.47852E-03
   7  Prefactor     6.4330        1.6248        .31256E-06   -.63670E-03
   8  Prefactor     2.1973        1.6576        .92300E-07    .24329E-03
   9  Prefactor     .10000E-03    2.5110        .20657E-06** at limit **
  10  norm          4.9848        1.3821        .23272E-06    .15518E-02
  11  Prefactor     7.1977        2.1948        .61531E-06   -.14717E-02
  12  Prefactor     1.5268        2.6478        .11951E-06    .10356E-03
  13  Prefactor     204.35        1.0387       -.34182E-08   -.16806E-02
  14  Prefactor     .10000E-03    2.1236        .99117E-06** at limit **
  15  Prefactor     8.4110        3.6728       -.17257E-06   -.12431E-03
  16  norm          1.1552        2.0096        .71820E-06    .92766E-03
  17  Prefactor     5.0685        2.7177       -.23457E-06   -.37292E-02
  18  Prefactor     3.2854        2.2041        .13612E-06    .98724E-03
  19  Prefactor     6.8733        4.7199       -.42328E-06   -.46741E-02
  20  norm          .20056        .16214        .46160E-07    .94091E-03
  21  norm          .76297        3.1317        .45198E-06    .12767E-03
  22  Prefactor     14.412        11.903        .68059E-07    .21337E-02
  23  Prefactor     .15485E-03    55.355        .12077E-04** at limit **
  24  Prefactor     4.6506        33.715        .75092E-05    .38526E-02
  25  Normalizat    .75092        .20239        .12790E-05    .20881E-03
  26  Prefactor     1.2057        .21007       -.10848E-05    .16617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.84323
  norm       = 6.30665
  Prefactor  = 0.000100001
  Prefactor  = 3.25054
  Prefactor  = 3.25089
  Prefactor  = 5.60418
  Prefactor  = 6.433
  Prefactor  = 2.19731
  Prefactor  = 0.0001
  norm       = 4.98477
  Prefactor  = 7.19765
  Prefactor  = 1.52685
  Prefactor  = 204.347
  Prefactor  = 0.0001
  Prefactor  = 8.41096
  norm       = 1.15523
  Prefactor  = 5.06848
  Prefactor  = 3.2854
  Prefactor  = 6.87328
  norm       = 0.200562
  norm       = 0.762973
  Prefactor  = 14.4117
  Prefactor  = 0.000154855
  Prefactor  = 4.65062
  Normalizat = 0.750924
  Prefactor  = 1.2057
 **********
 **   18 **HESSE 
 **********

 FCN=   6950.527     FROM HESSE     STATUS=OK           534 CALLS     3159 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8432        5.0100        .45696E-02   -1.5268    
   2  norm          6.3067        8.1525        .39956E-02   -1.5206    
   3  Prefactor     .10000E-03    9.4127        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.2505        36.168        .56167E-02   -1.5347    
   5  Prefactor     3.2509        7.6869        .56152E-02   -1.5347    
   6  Prefactor     5.6042        11.657        .42420E-02   -1.5234    
   7  Prefactor     6.4330        8.2967        .39557E-02   -1.5201    
   8  Prefactor     2.1973        1.6942        .69394E-02   -1.5411    
   9  Prefactor     .10000E-03    2.5093        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.9848        1.3871        .45030E-02   -1.5261    
  11  Prefactor     7.1977        18.944        .37362E-02   -1.5171    
  12  Prefactor     1.5268        2.6965        .86440E-02   -1.5461    
  13  Prefactor     204.35        109.86        .70681E-03   -1.2839    
  14  Prefactor     .10000E-03    1.3965        .36133E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.4110        3.8284        .34567E-02   -1.5128    
  16  norm          1.1552        2.0742        .10743E-01   -1.5493    
  17  Prefactor     5.0685        2.7472        .44647E-02   -1.5258    
  18  Prefactor     3.2854        2.2506        .55841E-02   -1.5345    
  19  Prefactor     6.8733        5.7716        .38257E-02   -1.5184    
  20  norm          .20056        .16448        .65406E-02   -1.5618    
  21  norm          .76297        3.4234        .12302E-01   -1.5533    
  22  Prefactor     14.412        12.423        .26380E-02   -1.4949    
  23  Prefactor     .15485E-03    5.8978        .10597       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.6506        56.624        .46183E-02   -1.5277    
  25  Normalizat    .75092        .17680        .65440E-01   -1.0192    
  26  Prefactor     1.2057        .17765        .56101E-01   -.86156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80762e-07
Minuit parameter uncertainties:
  1  5.01039
  2  8.15392
  3  0.000147365
  4  21.7017
  5  7.68922
  6  11.6616
  7  8.29823
  8  1.69419
  9  1.02207e-05
  10  1.38714
  11  18.9602
  12  2.69669
  13  109.972
  14  2.65359e-05
  15  3.8285
  16  2.07432
  17  2.74731
  18  2.25065
  19  5.77208
  20  0.16448
  21  3.23242
  22  12.4257
  23  0.0359769
  24  32.4932
  25  0.176931
  26  0.177742
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.527e+00  2.697e+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.206e+00  1.777e-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.509e-01  1.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/256935/likelihoodResults_259545601_259804801_4FGL_J1200.7+2008_daily_bin78.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) = 6949.75839934
delta logL = 0.768927650872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6949.59756998
delta logL = 0.929757006626

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1666       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6310       1.0000          .0000       10.000    
     3 'Normalizat'    .76847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1849       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=   6949.598     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      214 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1666        3.2678        .56939E-02    .14407E-02
   2  Index         1.6310        .42725        .24002       -.48782E-04
   3  Normalizat    .76838        .16505        .64739E-01    .24571E-04
   4  Prefactor     1.1850        .17596        .56455E-01    .41534E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1666
  Index      = 1.63103
  Normalizat = 0.768377
  Prefactor  = 1.18497
 **********
 **   18 **HESSE 
 **********

 FCN=   6949.598     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1666        3.2947        .13978E-03   -1.5352    
   2  Index         1.6310        .51745        .88422E-02   -.73933    
   3  Normalizat    .76838        .19562        .28640E-03   -1.0125    
   4  Prefactor     1.1850        .20887        .24963E-03   -.86795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.2316e-10
Minuit parameter uncertainties:
  1  3.29485
  2  0.519155
  3  0.195801
  4  0.209012
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256935': 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) = 6949.59756986
delta logL = 0.929757132493

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  3.167e+00  3.295e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  1.631e+00  5.192e-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.185e+00  2.090e-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.684e-01  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 180.187 20.135
Photon Index (Free Index): 1.63 +/- 0.52
Photon Flux (Free Index): 1.26e-08 +/- 1.46e-08
Energy Flux (Free Index): 2.57e-05 +/- 3.71e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/256935/cmap_HighResolution_259545601_259804801_4FGL_J1200.7+2008_daily_bin78.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', comment='SUCCESS', energy_flux2='2.57e-05', dlogl='9.30e-01', photon_flux2='1.26e-08', job_status='DONE', time_completed='2021-09-04 20:45:34.680392', photon_index_error2='0.52', photon_index2='1.63', ts='0.45', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='8.25e-08', energy_flux_error2='3.71e-05', EG='0.75', time_epoch_completed='1630813534.68', return_code='0', job_id='256935', GAL2='1.18', EG2='0.77', return_code2='0', photon_flux_error2='1.46e-08', ts2='2.32', photon_index='2.52' WHERE bin_id='78' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:45:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 256935: <4FGL_J1200.7+2008_daily_bin78> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin78> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:30:30 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:30:32 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:30:32 2021
Terminated at Sat Sep  4 20:45:35 2021
Results reported at Sat Sep  4 20:45:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin78 180.187 20.1354 259545601 259804801 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 :                                   777.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            905 sec.

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

