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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin59
RA = 180.187, Dec = 20.1354
tmin = 254620801, tmax = 254880001
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='255921', job_status='RUN', time_executed='2021-09-04 20:28:06.480447', time_epoch_executed='1630812486.48' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='59'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255921

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255921/ft1_4FGL_J1200.7+2008_daily_bin59.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255921/ft2_4FGL_J1200.7+2008_daily_bin59.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255921/ft1_4FGL_J1200.7+2008_daily_bin59.fits outfile=/scratch/kocevski/255921/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin59.fits ra=180.187 dec=20.1354 rad=12.0 tmin=254620801.0 tmax=254880001.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.37
user 1.13
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255921/ft1_filtered_4FGL_J1200.7+2008_daily_bin59.fits" evtable="EVENTS" scfile=/scratch/kocevski/255921/ft2_4FGL_J1200.7+2008_daily_bin59.fits sctable="SC_DATA" outfile=/scratch/kocevski/255921/ltcube_254620801_254880001_4FGL_J1200.7+2008_daily_bin59.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/255921/ft2_4FGL_J1200.7+2008_daily_bin59.fits
.....................!
real 11.35
user 10.94
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255921/ft1_filtered_4FGL_J1200.7+2008_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/255921/ft2_4FGL_J1200.7+2008_daily_bin59.fits sctable="SC_DATA" expcube=/scratch/kocevski/255921/ltcube_254620801_254880001_4FGL_J1200.7+2008_daily_bin59.fits outfile=/scratch/kocevski/255921/expmap_254620801_254880001_4FGL_J1200.7+2008_daily_bin59.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/255921/ltcube_254620801_254880001_4FGL_J1200.7+2008_daily_bin59.fits
.....................!
real 190.10
user 185.10
sys 4.56

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/255921/ft1_filtered_4FGL_J1200.7+2008_daily_bin59.fits scfile=/scratch/kocevski/255921/ft2_4FGL_J1200.7+2008_daily_bin59.fits outfile=/scratch/kocevski/255921/cmap_254620801_254880001_4FGL_J1200.7+2008_daily_bin59.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255921/ft1_filtered_4FGL_J1200.7+2008_daily_bin59.fits scfile=/scratch/kocevski/255921/ft2_4FGL_J1200.7+2008_daily_bin59.fits outfile=/scratch/kocevski/255921/cmap_HighResolution_254620801_254880001_4FGL_J1200.7+2008_daily_bin59.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.54
user 0.35
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/255921/ft1_filtered_4FGL_J1200.7+2008_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/255921/ft2_4FGL_J1200.7+2008_daily_bin59.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255921/Model_4FGL_J1200.7+2008_daily_bin59.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/255921/ft1_filtered_4FGL_J1200.7+2008_daily_bin59.fits.....................!
real 47.23
user 45.87
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/255921/ft1_filtered_4FGL_J1200.7+2008_daily_bin59.fits', '/scratch/kocevski/255921/ft2_4FGL_J1200.7+2008_daily_bin59.fits', expMap='/scratch/kocevski/255921/expmap_254620801_254880001_4FGL_J1200.7+2008_daily_bin59.fits', expCube='/scratch/kocevski/255921/ltcube_254620801_254880001_4FGL_J1200.7+2008_daily_bin59.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/255921/Model_4FGL_J1200.7+2008_daily_bin59.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/255921/ft1_filtered_4FGL_J1200.7+2008_daily_bin59.fits
Spacecraft file(s): /scratch/kocevski/255921/ft2_4FGL_J1200.7+2008_daily_bin59.fits
Exposure map: /scratch/kocevski/255921/expmap_254620801_254880001_4FGL_J1200.7+2008_daily_bin59.fits
Exposure cube: /scratch/kocevski/255921/ltcube_254620801_254880001_4FGL_J1200.7+2008_daily_bin59.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/255921/Model_4FGL_J1200.7+2008_daily_bin59.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5019.59263305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.582       1.0000         .10000E-03   10000.    
     2 'norm      '    10.375       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.857       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.305       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1373       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2104       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.6462       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8456       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1639       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .60964       1.0000         .10000E-03   10000.    
    16 'norm      '    4.5547       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2659       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5458       1.0000         .10000E-03   10000.    
    20 'norm      '    .60858E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    5.7126       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.007       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.173       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98911       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .69444       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=   5019.470     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2654 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.582        8.4405        .25366E-02   -.22813E-04
   2  norm          10.376        11.433        .31098E-02    .10786E-02
   3  Prefactor     .10001E-03    9.9813        .90712E-02** at limit **
   4  Prefactor     14.857        17.667        .25978E-02    .19286E-04
   5  Prefactor     17.306        15.624        .24070E-02   -.73073E-04
   6  Prefactor     7.1383        21.050        .37537E-02   -.62729E-03
   7  Prefactor     4.2133        14.584        .49098E-02   -.27188E-03
   8  Prefactor     .10000E-03    .84517        .90712E-02** at limit **
   9  Prefactor     .10000E-03    3.4017        .90712E-02** at limit **
  10  norm          3.6463        1.5643        .52889E-02   -.77414E-05
  11  Prefactor     .10001E-03    11.777        .90712E-02** at limit **
  12  Prefactor     4.8443        4.9357        .45686E-02    .28432E-02
  13  Prefactor     .10000E-03    22.828        .90712E-02** at limit **
  14  Prefactor     3.1663        4.1008        .56964E-02   -.13880E-02
  15  Prefactor     .60788        3.6516        .37340E-01    .15722E-02
  16  norm          4.5548        3.5100        .47156E-02    .15132E-03
  17  Prefactor     5.2659        3.2585        .43789E-02   -.16017E-04
  18  Prefactor     .10000E-03    1.0830        .90712E-02** at limit **
  19  Prefactor     5.5459        4.8772        .42651E-02   -.94846E-03
  20  norm          .60865E-01    .12359        .65853E-02    .38567E-02
  21  norm          5.7128        5.1327        .42014E-02   -.10169E-02
  22  Prefactor     23.007        10.422        .20877E-02   -.58016E-04
  23  Prefactor     14.173        11.405        .26598E-02   -.19729E-03
  24  Prefactor     .10000E-03    7.4190        .90712E-02** at limit **
  25  Normalizat    .98903        .18366        .46030E-01    .10595E-03
  26  Prefactor     .69452        .17234        .61330E-01    .13061E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5821
  norm       = 10.3757
  Prefactor  = 0.000100007
  Prefactor  = 14.8571
  Prefactor  = 17.3055
  Prefactor  = 7.1383
  Prefactor  = 4.21327
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.64631
  Prefactor  = 0.000100006
  Prefactor  = 4.84435
  Prefactor  = 0.0001
  Prefactor  = 3.1663
  Prefactor  = 0.607881
  norm       = 4.5548
  Prefactor  = 5.26592
  Prefactor  = 0.0001
  Prefactor  = 5.5459
  norm       = 0.0608649
  norm       = 5.71275
  Prefactor  = 23.007
  Prefactor  = 14.1728
  Prefactor  = 0.000100001
  Normalizat = 0.989031
  Prefactor  = 0.694522
 **********
 **   18 **HESSE 
 **********

 FCN=   5019.470     FROM HESSE     STATUS=OK           464 CALLS     3118 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.582        8.4466        .10146E-03   -1.4918    
   2  norm          10.376        11.454        .62196E-03   -1.5064    
   3  Prefactor     .10001E-03    10.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.857        17.670        .10391E-03   -1.4937    
   5  Prefactor     17.306        15.623        .96279E-04   -1.4876    
   6  Prefactor     7.1383        21.034        .15015E-03   -1.5174    
   7  Prefactor     4.2133        14.528        .19639E-03   -1.5297    
   8  Prefactor     .10000E-03    .85820        .63481E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4157        .12761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6463        1.5621        .54336E-04   -1.5326    
  11  Prefactor     .10001E-03    11.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.8443        4.8890        .14059E-03   -1.5268    
  13  Prefactor     .10000E-03    22.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1663        3.6992        .11763E-03   -1.5352    
  15  Prefactor     .60788        4.6746        .19518E-02   -1.5552    
  16  norm          4.5548        3.5320        .10322E-03   -1.5281    
  17  Prefactor     5.2659        3.2815        .89121E-04   -1.5249    
  18  Prefactor     .10000E-03    1.0986        .71853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.5459        4.8730        .13851E-03   -1.5237    
  20  norm          .60865E-01    .10422        .34097E-03   -1.5659    
  21  norm          5.7128        5.1250        .14136E-03   -1.5230    
  22  Prefactor     23.007        10.422        .83509E-04   -1.4748    
  23  Prefactor     14.173        11.396        .10639E-03   -1.4955    
  24  Prefactor     .10000E-03    7.4253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .98903        .21397        .22700E-03   -.93399    
  26  Prefactor     .69452        .19994        .27129E-03   -1.0374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50163e-08
Minuit parameter uncertainties:
  1  8.44725
  2  11.456
  3  0.000541863
  4  17.6765
  5  15.6269
  6  21.056
  7  14.5398
  8  1.36116e-06
  9  5.23662e-06
  10  1.56211
  11  0.000534687
  12  4.8894
  13  0.000194094
  14  3.6995
  15  3.37148
  16  3.53218
  17  3.28156
  18  4.5566e-07
  19  4.87339
  20  0.104218
  21  5.12541
  22  10.4224
  23  11.3973
  24  0.000124514
  25  0.214153
  26  0.200143
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  4.844e+00  4.889e+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:  6.945e-01  2.001e-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.890e-01  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.44
Ra Dec: 180.187 20.135
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 4.72e-08 +/- 4.76e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.35e-05

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

Saving results to:
/scratch/kocevski/255921/likelihoodResults_254620801_254880001_4FGL_J1200.7+2008_daily_bin59.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) = 5019.46245072
delta logL = 0.00773048175415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5019.45846207
delta logL = 0.0117191373502

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3628       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6562       1.0000          .0000       10.000    
     3 'Normalizat'    .98314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69905       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5019.458     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      244 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3625        5.9432        .13106E-03   -.23742E-03
   2  Index         2.6563        .99219        .84524E-02   -.35039E-04
   3  Normalizat    .98316        .20081        .22760E-03   -.18989E-03
   4  Prefactor     .69903        .20161        .27049E-03   -.23213E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.36248
  Index      = 2.65626
  Normalizat = 0.983162
  Prefactor  = 0.699035
 **********
 **   18 **HESSE 
 **********

 FCN=   5019.458     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3625        5.4694        .52423E-05   -1.5290    
   2  Index         2.6563        .91286        .33810E-03   -.48787    
   3  Normalizat    .98316        .20053        .45520E-04   -.93597    
   4  Prefactor     .69903        .20122        .10820E-04   -1.0356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37631e-10
Minuit parameter uncertainties:
  1  5.47002
  2  0.919485
  3  0.200688
  4  0.201431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255921': 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) = 5019.45846206
delta logL = 0.0117191451418

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  4.362e+00  5.470e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.656e+00  9.195e-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:  6.990e-01  2.014e-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.832e-01  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 180.187 20.135
Photon Index (Free Index): 2.66 +/- 0.92
Photon Flux (Free Index): 5.11e-08 +/- 5.32e-08
Energy Flux (Free Index): 1.27e-05 +/- 1.28e-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/255921/cmap_HighResolution_254620801_254880001_4FGL_J1200.7+2008_daily_bin59.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='4.72e-08', energy_flux2='1.27e-05', photon_flux_error='4.76e-08', dlogl='1.17e-02', energy_flux='1.34e-05', photon_flux2='5.11e-08', job_status='DONE', time_completed='2021-09-04 20:38:39.118429', photon_index_error2='0.92', photon_index2='2.66', ts='1.44', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='1.28e-05', EG='0.99', time_epoch_completed='1630813119.12', return_code='0', job_id='255921', GAL2='0.70', EG2='0.98', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='5.32e-08', ts2='1.45', photon_index='2.52' WHERE bin_id='59' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:38:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 255921: <4FGL_J1200.7+2008_daily_bin59> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin59> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 20:26:10 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:26:12 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:26:12 2021
Terminated at Sat Sep  4 20:38:39 2021
Results reported at Sat Sep  4 20:38:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin59 180.187 20.1354 254620801 254880001 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 :                                   632.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            749 sec.

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

