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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1018
RA = 180.187, Dec = 20.1354
tmin = 503193601, tmax = 503452801
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='262035', job_status='RUN', time_executed='2021-09-04 20:47:57.364344', time_epoch_executed='1630813677.36' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1018'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262035

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262035/ft1_4FGL_J1200.7+2008_daily_bin1018.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262035/ft2_4FGL_J1200.7+2008_daily_bin1018.fits


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

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

Done.
real 5.08
user 4.84
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262035/ft1_filtered_4FGL_J1200.7+2008_daily_bin1018.fits" evtable="EVENTS" scfile=/scratch/kocevski/262035/ft2_4FGL_J1200.7+2008_daily_bin1018.fits sctable="SC_DATA" outfile=/scratch/kocevski/262035/ltcube_503193601_503452801_4FGL_J1200.7+2008_daily_bin1018.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/262035/ft2_4FGL_J1200.7+2008_daily_bin1018.fits
.....................!
real 11.60
user 11.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262035/ft1_filtered_4FGL_J1200.7+2008_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/262035/ft2_4FGL_J1200.7+2008_daily_bin1018.fits sctable="SC_DATA" expcube=/scratch/kocevski/262035/ltcube_503193601_503452801_4FGL_J1200.7+2008_daily_bin1018.fits outfile=/scratch/kocevski/262035/expmap_503193601_503452801_4FGL_J1200.7+2008_daily_bin1018.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/262035/ltcube_503193601_503452801_4FGL_J1200.7+2008_daily_bin1018.fits
.....................!
real 191.71
user 186.76
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/262035/ft1_filtered_4FGL_J1200.7+2008_daily_bin1018.fits scfile=/scratch/kocevski/262035/ft2_4FGL_J1200.7+2008_daily_bin1018.fits outfile=/scratch/kocevski/262035/cmap_503193601_503452801_4FGL_J1200.7+2008_daily_bin1018.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262035/ft1_filtered_4FGL_J1200.7+2008_daily_bin1018.fits scfile=/scratch/kocevski/262035/ft2_4FGL_J1200.7+2008_daily_bin1018.fits outfile=/scratch/kocevski/262035/cmap_HighResolution_503193601_503452801_4FGL_J1200.7+2008_daily_bin1018.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262035/ft1_filtered_4FGL_J1200.7+2008_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/262035/ft2_4FGL_J1200.7+2008_daily_bin1018.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262035/Model_4FGL_J1200.7+2008_daily_bin1018.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/262035/ft1_filtered_4FGL_J1200.7+2008_daily_bin1018.fits.....................!
real 58.37
user 56.44
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88178E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.7809       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.907       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.9541       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12097E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8364       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.4410       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2639       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7553       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.9632       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.1411       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .97515       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .21303       1.0000         .10000E-03   10000.    
    21 'norm      '    8.3386       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .26166       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.339       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .51191       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4508       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=   6211.856     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     3115 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7418       -.27483E-05** at limit **
   2  norm          3.7837        5.9510        .26731E-05    .14478E-04
   3  Prefactor     .10000E-03    11.652        .51971E-06** at limit **
   4  Prefactor     .10000E-03    77.276        .72833E-06** at limit **
   5  Prefactor     13.910        12.365        .15073E-06    .48047E-05
   6  Prefactor     9.9628        22.359       -.10872E-05   -.46536E-05
   7  Prefactor     .10000E-03    5.6055        .31210E-05** at limit **
   8  Prefactor     4.8371        2.4008        .15868E-06    .96110E-04
   9  Prefactor     .10000E-03    4.2737       -.59392E-07** at limit **
  10  norm          6.4416        1.6638        .29897E-07    .36785E-04
  11  Prefactor     .10000E-03    6.0012       -.34571E-07** at limit **
  12  Prefactor     4.2653        4.3887        .40685E-06    .16859E-03
  13  Prefactor     .10000E-03    31.889       -.42055E-05** at limit **
  14  Prefactor     6.7559        3.4887       -.26568E-07    .82488E-04
  15  Prefactor     .10000E-03    2.0019       -.28450E-09** at limit **
  16  norm          8.9637        3.8135       -.12955E-06    .62888E-04
  17  Prefactor     6.1414        2.9986        .61660E-07   -.12528E-03
  18  Prefactor     .97588        1.9082        .16621E-06    .38561E-04
  19  Prefactor     .10000E-03    1.3292       -.57928E-08** at limit **
  20  norm          .21315        .20755        .77885E-08   -.41257E-03
  21  norm          8.3397        4.2502        .47161E-07   -.42581E-05
  22  Prefactor     .33885        24.095        .11886E-04   -.14215E-03
  23  Prefactor     11.341        9.0008        .72822E-07   -.35972E-05
  24  Prefactor     .10000E-03    9.3681       -.10529E-06** at limit **
  25  Normalizat    .51180        .19261       -.51224E-06    .61262E-04
  26  Prefactor     1.4505        .19537       -.11932E-06    .14422E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 3.78368
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9101
  Prefactor  = 9.96277
  Prefactor  = 0.000100004
  Prefactor  = 4.83714
  Prefactor  = 0.0001
  norm       = 6.44162
  Prefactor  = 0.0001
  Prefactor  = 4.26531
  Prefactor  = 0.0001
  Prefactor  = 6.75588
  Prefactor  = 0.0001
  norm       = 8.96372
  Prefactor  = 6.14136
  Prefactor  = 0.975876
  Prefactor  = 0.0001
  norm       = 0.213154
  norm       = 8.33972
  Prefactor  = 0.338854
  Prefactor  = 11.3408
  Prefactor  = 0.0001
  Normalizat = 0.511799
  Prefactor  = 1.45048
 **********
 **   18 **HESSE 
 **********

 FCN=   6211.856     FROM HESSE     STATUS=OK           468 CALLS     3583 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.796        .37041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.7837        8.4416        .10381E-02   -1.5319    
   3  Prefactor     .10000E-03    11.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    77.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.910        12.359        .10741E-03   -1.4962    
   6  Prefactor     9.9628        22.361        .12701E-03   -1.5077    
   7  Prefactor     .10000E-03    14.428        .32894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8371        2.4088        .38827E-03   -1.5268    
   9  Prefactor     .10000E-03    4.2895        .15913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.4416        1.6617        .48775E-04   -1.5200    
  11  Prefactor     .10000E-03    6.0113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2653        4.3631        .15381E-03   -1.5295    
  13  Prefactor     .10000E-03    31.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.7559        3.4705        .97189E-04   -1.5188    
  15  Prefactor     .10000E-03    2.0394        .10863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.9637        3.8150        .90943E-04   -1.5109    
  17  Prefactor     6.1414        3.0030        .86930E-04   -1.5212    
  18  Prefactor     .97588        1.8565        .14296E-03   -1.5510    
  19  Prefactor     .10000E-03    1.3299        .88734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .21315        .19667        .33439E-03   -1.5616    
  21  norm          8.3397        4.2449        .11196E-03   -1.5130    
  22  Prefactor     .33885        32.699        .38242E-02   -1.5592    
  23  Prefactor     11.341        8.9878        .59486E-03   -1.5034    
  24  Prefactor     .10000E-03    9.3748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .51180        .21718        .34533E-03   -1.1187    
  26  Prefactor     1.4505        .22506        .23331E-03   -.78936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84128e-10
Minuit parameter uncertainties:
  1  0.000330277
  2  8.44429
  3  6.87201e-05
  4  0.000330168
  5  12.3611
  6  22.3801
  7  0.000505642
  8  2.40888
  9  2.41932e-06
  10  1.66167
  11  3.09295e-06
  12  4.36338
  13  5.85881e-05
  14  3.47062
  15  3.99849e-07
  16  3.81514
  17  3.00304
  18  1.85657
  19  1.37291e-06
  20  0.19667
  21  4.24508
  22  6.66012
  23  8.98887
  24  5.96027e-06
  25  0.217536
  26  0.22521
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  4.265e+00  4.363e+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.450e+00  2.252e-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:  5.118e-01  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.37
Ra Dec: 180.187 20.135
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 4.15e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.21e-05

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

Saving results to:
/scratch/kocevski/262035/likelihoodResults_503193601_503452801_4FGL_J1200.7+2008_daily_bin1018.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) = 6211.83113033
delta logL = 0.0248356903166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6211.82462313
delta logL = 0.03134289013

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7689       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6962       1.0000          .0000       10.000    
     3 'Normalizat'    .50640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4539       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=   6211.825     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      219 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7689        109.67        .51988E-02    .67851E-03
   2  Index         2.6962        6.3093        .16521        .13607E-03
   3  Normalizat    .50639        .65991E-01    .78363E-01    .28469E-03
   4  Prefactor     1.4539        .71028E-01    .52721E-01    .45443E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.7689
  Index      = 2.69619
  Normalizat = 0.506392
  Prefactor  = 1.45393
 **********
 **   18 **HESSE 
 **********

 FCN=   6211.825     FROM HESSE     STATUS=OK            31 CALLS      250 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7689        4.6303        .13956E-03   -1.5320    
   2  Index         2.6962        .75597        .84273E-02   -.47885    
   3  Normalizat    .50639        .20458        .34705E-03   -1.1212    
   4  Prefactor     1.4539        .22144        .23307E-03   -.78838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51602e-10
Minuit parameter uncertainties:
  1  4.63078
  2  0.759675
  3  0.204884
  4  0.221584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262035': 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) = 6211.82462313
delta logL = 0.0313428919881

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  3.769e+00  4.631e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.696e+00  7.597e-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.454e+00  2.216e-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:  5.064e-01  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.44
Ra Dec: 180.187 20.135
Photon Index (Free Index): 2.70 +/- 0.76
Photon Flux (Free Index): 4.66e-08 +/- 4.69e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.14e-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/262035/cmap_HighResolution_503193601_503452801_4FGL_J1200.7+2008_daily_bin1018.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='4.15e-08', energy_flux2='1.13e-05', photon_flux_error='4.25e-08', dlogl='3.13e-02', energy_flux='1.18e-05', photon_flux2='4.66e-08', job_status='DONE', time_completed='2021-09-04 21:01:42.892876', photon_index_error2='0.76', photon_index2='2.70', ts='1.37', fit_tolerance='1e-08', GAL='1.45', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='1.14e-05', EG='0.51', time_epoch_completed='1630814502.89', return_code='0', job_id='262035', GAL2='1.45', EG2='0.51', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='4.69e-08', ts2='1.44', photon_index='2.52' WHERE bin_id='1018' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:01:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 262035: <4FGL_J1200.7+2008_daily_bin1018> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1018> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:45:22 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:45:24 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:24 2021
Terminated at Sat Sep  4 21:01:43 2021
Results reported at Sat Sep  4 21:01:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1018 180.187 20.1354 503193601 503452801 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 :                                   774.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

