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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin121
RA = 180.187, Dec = 20.1354
tmin = 270691201, tmax = 270950401
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='257002', job_status='RUN', time_executed='2021-09-04 20:30:51.203370', time_epoch_executed='1630812651.2' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257002

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257002/ft1_4FGL_J1200.7+2008_daily_bin121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257002/ft2_4FGL_J1200.7+2008_daily_bin121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257002/ft1_4FGL_J1200.7+2008_daily_bin121.fits outfile=/scratch/kocevski/257002/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin121.fits ra=180.187 dec=20.1354 rad=12.0 tmin=270691201.0 tmax=270950401.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.65
user 1.44
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/257002/ft1_filtered_4FGL_J1200.7+2008_daily_bin121.fits" evtable="EVENTS" scfile=/scratch/kocevski/257002/ft2_4FGL_J1200.7+2008_daily_bin121.fits sctable="SC_DATA" outfile=/scratch/kocevski/257002/ltcube_270691201_270950401_4FGL_J1200.7+2008_daily_bin121.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/257002/ft2_4FGL_J1200.7+2008_daily_bin121.fits
.....................!
real 12.65
user 12.30
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257002/ft1_filtered_4FGL_J1200.7+2008_daily_bin121.fits evtable="EVENTS" scfile=/scratch/kocevski/257002/ft2_4FGL_J1200.7+2008_daily_bin121.fits sctable="SC_DATA" expcube=/scratch/kocevski/257002/ltcube_270691201_270950401_4FGL_J1200.7+2008_daily_bin121.fits outfile=/scratch/kocevski/257002/expmap_270691201_270950401_4FGL_J1200.7+2008_daily_bin121.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/257002/ltcube_270691201_270950401_4FGL_J1200.7+2008_daily_bin121.fits
.....................!
real 191.50
user 186.95
sys 4.15

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/257002/ft1_filtered_4FGL_J1200.7+2008_daily_bin121.fits scfile=/scratch/kocevski/257002/ft2_4FGL_J1200.7+2008_daily_bin121.fits outfile=/scratch/kocevski/257002/cmap_270691201_270950401_4FGL_J1200.7+2008_daily_bin121.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/257002/ft1_filtered_4FGL_J1200.7+2008_daily_bin121.fits scfile=/scratch/kocevski/257002/ft2_4FGL_J1200.7+2008_daily_bin121.fits outfile=/scratch/kocevski/257002/cmap_HighResolution_270691201_270950401_4FGL_J1200.7+2008_daily_bin121.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.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/257002/ft1_filtered_4FGL_J1200.7+2008_daily_bin121.fits evtable="EVENTS" scfile=/scratch/kocevski/257002/ft2_4FGL_J1200.7+2008_daily_bin121.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/257002/Model_4FGL_J1200.7+2008_daily_bin121.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/257002/ft1_filtered_4FGL_J1200.7+2008_daily_bin121.fits.....................!
real 74.56
user 73.17
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.577       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46342E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2048       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9575       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8613       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22777       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.5452       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2826       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9580       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .20594       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.181       1.0000         .10000E-03   10000.    
    23 'Prefactor '    47.976       1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.720       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2375       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97469       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=   8618.084     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3150 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5424        .90712E-02** at limit **
   2  norm          10.577        10.973        .30800E-02    .14821E-02
   3  Prefactor     .10001E-03    5.8452        .96526E-01** at limit **
   4  Prefactor     .10000E-03    10.543        .90712E-02** at limit **
   5  Prefactor     .10000E-03    13.821        .90712E-02** at limit **
   6  Prefactor     .10000E-03    16.512        .90712E-02** at limit **
   7  Prefactor     .10000E-03    5.9088        .90712E-02** at limit **
   8  Prefactor     .10000E-03    .70120        .29778E-01** at limit **
   9  Prefactor     .10000E-03    2.1702        .90712E-02** at limit **
  10  norm          1.2047        .96708        .10325E-01    .86741E-03
  11  Prefactor     8.9562        11.338        .33480E-02    .11164E-02
  12  Prefactor     2.8616        2.6712        .60081E-02    .15333E-03
  13  Prefactor     .10000E-03    27.351        .90712E-02** at limit **
  14  Prefactor     .22795        .78044        .42582E-01    .19353E-02
  15  Prefactor     .10000E-03    .59241        .90712E-02** at limit **
  16  norm          3.5452        3.1173        .53668E-02    .52032E-03
  17  Prefactor     2.2826        2.1430        .67937E-02    .11524E-03
  18  Prefactor     1.9581        1.5090        .74119E-02    .17921E-03
  19  Prefactor     .10000E-03    1.6850        .90712E-02** at limit **
  20  norm          .20594        .15825        .69262E-02    .86817E-03
  21  norm          .10000E-03    2.0566        .90712E-02** at limit **
  22  Prefactor     13.183        9.9542        .27582E-02    .11267E-03
  23  Prefactor     47.978        14.016        .14473E-02    .73110E-03
  24  Prefactor     25.706        25.796        .19747E-02   -.83455E-03
  25  Normalizat    1.2374        .16266        .55231E-01   -.19164E-04
  26  Prefactor     .97488        .16206        .45950E-01   -.49671E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.5774
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.20471
  Prefactor  = 8.95617
  Prefactor  = 2.86159
  Prefactor  = 0.0001
  Prefactor  = 0.227953
  Prefactor  = 0.0001
  norm       = 3.54517
  Prefactor  = 2.28258
  Prefactor  = 1.95807
  Prefactor  = 0.0001
  norm       = 0.205942
  norm       = 0.0001
  Prefactor  = 13.1827
  Prefactor  = 47.9782
  Prefactor  = 25.7064
  Normalizat = 1.2374
  Prefactor  = 0.974881
 **********
 **   18 **HESSE 
 **********

 FCN=   8618.084     FROM HESSE     STATUS=OK           468 CALLS     3618 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5652        .14452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.577        11.010        .61599E-03   -1.5057    
   3  Prefactor     .10001E-03    9.1805        .69369E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.2071        .15010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1729        .13356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2047        .94651        .78361E-04   -1.5488    
  11  Prefactor     8.9562        11.334        .66960E-03   -1.5109    
  12  Prefactor     2.8616        2.6624        .14001E-03   -1.5370    
  13  Prefactor     .10000E-03    27.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .22795        1.0315        .14529E-02   -1.5612    
  15  Prefactor     .10000E-03    .59534        .69740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.5452        3.1255        .13022E-03   -1.5331    
  17  Prefactor     2.2826        2.1575        .11296E-03   -1.5406    
  18  Prefactor     1.9581        1.5030        .95537E-04   -1.5428    
  19  Prefactor     .10000E-03    1.6924        .11766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .20594        .15581        .30916E-04   -1.5617    
  21  norm          .10000E-03    2.0847        .12994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.183        9.9465        .11033E-03   -1.4982    
  23  Prefactor     47.978        14.009        .57891E-04   -1.4322    
  24  Prefactor     25.706        25.778        .78988E-04   -1.4694    
  25  Normalizat    1.2374        .19155        .24422E-03   -.85455    
  26  Prefactor     .97488        .19187        .27813E-03   -.93572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15642e-09
Minuit parameter uncertainties:
  1  2.55922e-07
  2  11.0122
  3  0.000608714
  4  2.39654e-07
  5  2.60422e-05
  6  2.81516e-05
  7  1.0394e-06
  8  9.16361e-07
  9  4.48937e-08
  10  0.946518
  11  11.3367
  12  2.66251
  13  7.56282e-07
  14  0.969615
  15  2.11308e-07
  16  3.12561
  17  2.15755
  18  1.50304
  19  5.65224e-07
  20  0.155814
  21  3.39192e-07
  22  9.94776
  23  14.0099
  24  25.7888
  25  0.191659
  26  0.192008
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  2.862e+00  2.663e+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:  9.749e-01  1.920e-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.237e+00  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.22
Ra Dec: 180.187 20.135
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 2.79e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 7.91e-06 +/- 7.36e-06

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

Saving results to:
/scratch/kocevski/257002/likelihoodResults_270691201_270950401_4FGL_J1200.7+2008_daily_bin121.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) = 8617.61535897
delta logL = 0.468517007817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8617.60332036
delta logL = 0.480555619728

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3976       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7591       1.0000          .0000       10.000    
     3 'Normalizat'    1.2553       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96725       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=   8617.603     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      205 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3975        2.4782        .66115E-02    .22880E-02
   2  Index         1.7593        .48833        .27390       -.48188E-04
   3  Normalizat    1.2553        .15664        .54883E-01    .61799E-05
   4  Prefactor     .96725        .16108        .45856E-01    .18658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.39754
  Index      = 1.75933
  Normalizat = 1.25534
  Prefactor  = 0.967252
 **********
 **   18 **HESSE 
 **********

 FCN=   8617.603     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3975        3.0730        .14152E-03   -1.5398    
   2  Index         1.7593        .77143        .11359E-01   -.70513    
   3  Normalizat    1.2553        .18543        .24268E-03   -.84910    
   4  Prefactor     .96725        .19069        .27908E-03   -.93829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84103e-09
Minuit parameter uncertainties:
  1  3.07321
  2  0.776805
  3  0.18553
  4  0.190822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257002': 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) = 8617.60332026
delta logL = 0.480555719734

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  2.398e+00  3.073e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  1.759e+00  7.768e-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:  9.673e-01  1.908e-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.255e+00  1.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.18
Ra Dec: 180.187 20.135
Photon Index (Free Index): 1.76 +/- 0.78
Photon Flux (Free Index): 1.03e-08 +/- 1.72e-08
Energy Flux (Free Index): 1.39e-05 +/- 2.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/257002/cmap_HighResolution_270691201_270950401_4FGL_J1200.7+2008_daily_bin121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.20e-03', comment='SUCCESS', photon_flux='2.79e-08', energy_flux2='1.39e-05', photon_flux_error='2.59e-08', dlogl='4.81e-01', energy_flux='7.91e-06', photon_flux2='1.03e-08', job_status='DONE', time_completed='2021-09-04 20:46:23.806570', photon_index_error2='0.78', photon_index2='1.76', ts='3.22', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='9.24e-08', energy_flux_error2='2.05e-05', EG='1.24', time_epoch_completed='1630813583.81', return_code='0', job_id='257002', GAL2='0.97', EG2='1.26', return_code2='0', energy_flux_error='7.36e-06', photon_flux_error2='1.72e-08', ts2='4.18', photon_index='2.52' WHERE bin_id='121' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:46:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 257002: <4FGL_J1200.7+2008_daily_bin121> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin121 180.187 20.1354 270691201 270950401 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 :                                   931.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            949 sec.

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

