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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1427
RA = 180.187, Dec = 20.1354
tmin = 609206401, tmax = 609465601
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='263898', job_status='RUN', time_executed='2021-09-04 20:52:39.544170', time_epoch_executed='1630813959.54' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263898

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263898/ft1_4FGL_J1200.7+2008_daily_bin1427.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263898/ft2_4FGL_J1200.7+2008_daily_bin1427.fits


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

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

Done.
real 3.01
user 2.77
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263898/ft2_4FGL_J1200.7+2008_daily_bin1427.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/263898/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1427.fits evtable="EVENTS" outfile="/scratch/kocevski/263898/ft1_filtered_4FGL_J1200.7+2008_daily_bin1427.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.53
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263898/ft1_filtered_4FGL_J1200.7+2008_daily_bin1427.fits" evtable="EVENTS" scfile=/scratch/kocevski/263898/ft2_4FGL_J1200.7+2008_daily_bin1427.fits sctable="SC_DATA" outfile=/scratch/kocevski/263898/ltcube_609206401_609465601_4FGL_J1200.7+2008_daily_bin1427.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/263898/ft2_4FGL_J1200.7+2008_daily_bin1427.fits
.....................!
real 12.08
user 11.69
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263898/ft1_filtered_4FGL_J1200.7+2008_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/263898/ft2_4FGL_J1200.7+2008_daily_bin1427.fits sctable="SC_DATA" expcube=/scratch/kocevski/263898/ltcube_609206401_609465601_4FGL_J1200.7+2008_daily_bin1427.fits outfile=/scratch/kocevski/263898/expmap_609206401_609465601_4FGL_J1200.7+2008_daily_bin1427.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/263898/ltcube_609206401_609465601_4FGL_J1200.7+2008_daily_bin1427.fits
.....................!
real 190.92
user 186.44
sys 4.10

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/263898/ft1_filtered_4FGL_J1200.7+2008_daily_bin1427.fits scfile=/scratch/kocevski/263898/ft2_4FGL_J1200.7+2008_daily_bin1427.fits outfile=/scratch/kocevski/263898/cmap_609206401_609465601_4FGL_J1200.7+2008_daily_bin1427.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.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263898/ft1_filtered_4FGL_J1200.7+2008_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/263898/ft2_4FGL_J1200.7+2008_daily_bin1427.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263898/Model_4FGL_J1200.7+2008_daily_bin1427.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/263898/ft1_filtered_4FGL_J1200.7+2008_daily_bin1427.fits.....................!
real 58.68
user 56.78
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10435E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    21.590       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.0487       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.768       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9281       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20262E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.1365       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4580       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5266       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8838       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3630       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6536       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13940E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .41703       1.0000         .10000E-03   10000.    
    21 'norm      '    7.6345       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.803       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15263E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2566       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84131       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=   6111.180     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3149 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    5.3745       -.10706E-05** at limit **
   2  norm          21.589        11.498       -.28104E-06    .67465E-04
   3  Prefactor     9.0478        11.187       -.80679E-07    .91967E-04
   4  Prefactor     29.739        57.489       -.37581E-04    .14911E-04
   5  Prefactor     7.9279        10.854       -.50237E-06   -.21241E-04
   6  Prefactor     .10000E-03    15.870       -.14862E-05** at limit **
   7  Prefactor     .10000E-03    10.200       -.11311E-05** at limit **
   8  Prefactor     .10000E-03    .84616       -.32283E-06** at limit **
   9  Prefactor     .10000E-03    6.2140       -.12800E-06** at limit **
  10  norm          6.1364        1.5536       -.10900E-06    .17304E-03
  11  Prefactor     5.4450        27.320        .94764E-05   -.11731E-04
  12  Prefactor     4.5268        4.6202        .26945E-05   -.11390E-03
  13  Prefactor     .10000E-03    161.18       -.31668E-05** at limit **
  14  Prefactor     5.8838        3.7169       -.10340E-05   -.16490E-03
  15  Prefactor     .10000E-03    2.6628        .46847E-07** at limit **
  16  norm          .10000E-03    1.4007       -.37632E-07** at limit **
  17  Prefactor     2.3627        1.5794       -.27882E-07   -.27093E-04
  18  Prefactor     2.6530        1.9707       -.19661E-06   -.56660E-03
  19  Prefactor     .10001E-03    4.3839        .55485E-06** at limit **
  20  norm          .41707        .30153       -.11612E-06   -.18393E-02
  21  norm          7.6344        4.4945       -.46434E-06   -.13441E-02
  22  Prefactor     11.803        16.613       -.97119E-06   -.15322E-04
  23  Prefactor     .10031E-03    5.4399        .19142E-05** at limit **
  24  Prefactor     .10000E-03    13.140        .22217E-06** at limit **
  25  Normalizat    1.2568        .21151        .22977E-05    .18598E-04
  26  Prefactor     .84123        .20534        .96718E-06    .64839E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100025
  norm       = 21.5893
  Prefactor  = 9.04781
  Prefactor  = 29.7385
  Prefactor  = 7.92794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 6.1364
  Prefactor  = 5.44495
  Prefactor  = 4.52681
  Prefactor  = 0.000100002
  Prefactor  = 5.88377
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.36273
  Prefactor  = 2.65302
  Prefactor  = 0.000100008
  norm       = 0.417072
  norm       = 7.6344
  Prefactor  = 11.8031
  Prefactor  = 0.000100308
  Prefactor  = 0.0001
  Normalizat = 1.25676
  Prefactor  = 0.84123
 **********
 **   18 **HESSE 
 **********

 FCN=   6111.180     FROM HESSE     STATUS=OK           470 CALLS     3619 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    22.714        .34526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          21.589        11.529        .86202E-04   -1.4778    
   3  Prefactor     9.0478        11.106        .13324E-03   -1.5106    
   4  Prefactor     29.739        57.666        .73433E-04   -1.4617    
   5  Prefactor     7.9279        10.848        .14240E-03   -1.5145    
   6  Prefactor     .10000E-03    15.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.9937        .13685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.2188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.1364        1.5578        .46280E-04   -1.5212    
  11  Prefactor     5.4450        27.089        .17199E-03   -1.5241    
  12  Prefactor     4.5268        4.5978        .15884E-03   -1.5282    
  13  Prefactor     .10000E-03    161.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.8838        3.7034        .11266E-03   -1.5223    
  15  Prefactor     .10000E-03    2.7070        .12417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.4403        .18022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.3627        1.5822        .77530E-04   -1.5401    
  18  Prefactor     2.6530        1.9571        .89421E-04   -1.5382    
  19  Prefactor     .10001E-03    14.142        .30886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .41707        .29242        .33808E-04   -1.5579    
  21  norm          7.6344        4.4407        .60366E-03   -1.5155    
  22  Prefactor     11.803        16.620        .11660E-03   -1.5021    
  23  Prefactor     .10031E-03    32.083        .35042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2568        .25205        .25842E-03   -.84866    
  26  Prefactor     .84123        .24462        .31162E-03   -.98226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14836e-08
Minuit parameter uncertainties:
  1  0.00149974
  2  11.5303
  3  11.109
  4  57.7744
  5  10.8509
  6  5.09697e-05
  7  4.1419e-05
  8  0.000221044
  9  1.41625e-05
  10  1.55781
  11  24.3073
  12  4.59814
  13  0.00109209
  14  3.70356
  15  5.26023e-06
  16  4.9716e-06
  17  1.58223
  18  1.95713
  19  0.000677447
  20  0.292422
  21  4.44088
  22  16.6262
  23  0.00628692
  24  5.16989e-07
  25  0.252298
  26  0.24494
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  4.527e+00  4.598e+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.412e-01  2.449e-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.257e+00  2.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.64
Ra Dec: 180.187 20.135
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 4.41e-08 +/- 4.47e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.27e-05

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

Saving results to:
/scratch/kocevski/263898/likelihoodResults_609206401_609465601_4FGL_J1200.7+2008_daily_bin1427.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) = 6111.15978825
delta logL = 0.0199028622965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6111.1580789
delta logL = 0.0216122099082

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7799       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3584       1.0000          .0000       10.000    
     3 'Normalizat'    1.2645       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83601       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=   6111.158     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7789        172.02        .46006E-02    .47844E-03
   2  Index         2.3586        5.7921        .24067        .44844E-04
   3  Normalizat    1.2640        .92592E-01    .58291E-01    .14999E-03
   4  Prefactor     .83664        .82291E-01    .70598E-01   -.25068E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.77886
  Index      = 2.35859
  Normalizat = 1.26401
  Prefactor  = 0.83664
 **********
 **   18 **HESSE 
 **********

 FCN=   6111.158     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7789        4.9416        .16695E-03   -1.5271    
   2  Index         2.3586        .77473        .99865E-02   -.55658    
   3  Normalizat    1.2640        .24148        .25778E-03   -.84647    
   4  Prefactor     .83664        .24211        .31238E-03   -.98392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11948e-09
Minuit parameter uncertainties:
  1  4.94202
  2  0.779098
  3  0.241699
  4  0.242422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263898': 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) = 6111.15807541
delta logL = 0.0216156999131

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  4.779e+00  4.942e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.359e+00  7.791e-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.366e-01  2.424e-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.264e+00  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 180.187 20.135
Photon Index (Free Index): 2.36 +/- 0.78
Photon Flux (Free Index): 3.78e-08 +/- 4.92e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.39e-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/263898/cmap_HighResolution_609206401_609465601_4FGL_J1200.7+2008_daily_bin1427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='4.41e-08', energy_flux2='1.31e-05', photon_flux_error='4.47e-08', dlogl='2.16e-02', energy_flux='1.25e-05', photon_flux2='3.78e-08', job_status='DONE', time_completed='2021-09-04 21:05:35.251460', photon_index_error2='0.78', photon_index2='2.36', ts='1.64', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.39e-05', EG='1.26', time_epoch_completed='1630814735.25', return_code='0', job_id='263898', GAL2='0.84', EG2='1.26', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='4.92e-08', ts2='1.68', photon_index='2.52' WHERE bin_id='1427' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:05:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 263898: <4FGL_J1200.7+2008_daily_bin1427> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1427 180.187 20.1354 609206401 609465601 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 :                                   745.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

