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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1525
RA = 180.187, Dec = 20.1354
tmin = 634608001, tmax = 634867201
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='264077', job_status='RUN', time_executed='2021-09-04 20:53:22.027101', time_epoch_executed='1630814002.03' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264077

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264077/ft1_4FGL_J1200.7+2008_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264077/ft2_4FGL_J1200.7+2008_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264077/ft1_4FGL_J1200.7+2008_daily_bin1525.fits outfile=/scratch/kocevski/264077/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1525.fits ra=180.187 dec=20.1354 rad=12.0 tmin=634608001.0 tmax=634867201.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.10
user 2.88
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264077/ft1_filtered_4FGL_J1200.7+2008_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/264077/ft2_4FGL_J1200.7+2008_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/264077/ltcube_634608001_634867201_4FGL_J1200.7+2008_daily_bin1525.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/264077/ft2_4FGL_J1200.7+2008_daily_bin1525.fits
.....................!
real 12.70
user 12.32
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264077/ft1_filtered_4FGL_J1200.7+2008_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/264077/ft2_4FGL_J1200.7+2008_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/264077/ltcube_634608001_634867201_4FGL_J1200.7+2008_daily_bin1525.fits outfile=/scratch/kocevski/264077/expmap_634608001_634867201_4FGL_J1200.7+2008_daily_bin1525.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/264077/ltcube_634608001_634867201_4FGL_J1200.7+2008_daily_bin1525.fits
.....................!
real 190.19
user 185.17
sys 4.67

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/264077/ft1_filtered_4FGL_J1200.7+2008_daily_bin1525.fits scfile=/scratch/kocevski/264077/ft2_4FGL_J1200.7+2008_daily_bin1525.fits outfile=/scratch/kocevski/264077/cmap_634608001_634867201_4FGL_J1200.7+2008_daily_bin1525.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=180.187 yref=20.1354 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264077/ft1_filtered_4FGL_J1200.7+2008_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/264077/ft2_4FGL_J1200.7+2008_daily_bin1525.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264077/Model_4FGL_J1200.7+2008_daily_bin1525.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/264077/ft1_filtered_4FGL_J1200.7+2008_daily_bin1525.fits......................!
real 24.71
user 23.40
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    139.73       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10758E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.057       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.9877       1.0000         .10000E-03   10000.    
     9 'Prefactor '    72.479       1.0000         .10000E-03   10000.    
    10 'norm      '    8.0347       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13402E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12875E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.018       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0605       1.0000         .10000E-03   10000.    
    21 'norm      '    21.748       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3025       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .53191       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=   1486.587     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3069 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.749        .63477E-06** at limit **
   2  norm          139.85        179.87       -.13387E-05   -.20894E-04
   3  Prefactor     .10000E-03    131.74        .30337E-05** at limit **
   4  Prefactor     .10000E-03    101.72        .64006E-07** at limit **
   5  Prefactor     .10000E-03    68.801       -.15475E-05** at limit **
   6  Prefactor     15.488        386.22       -.35425E-04   -.64355E-04
   7  Prefactor     .10000E-03    23.112        .40366E-06** at limit **
   8  Prefactor     9.0058        12.280        .89524E-06   -.23243E-03
   9  Prefactor     72.410        49.031       -.14650E-05   -.54039E-04
  10  norm          8.0395        5.1077       -.25253E-06   -.28501E-03
  11  Prefactor     .10001E-03    480.37       -.98459E-05** at limit **
  12  Prefactor     .10000E-03    7.1247        .23318E-06** at limit **
  13  Prefactor     .10000E-03    211.72       -.57922E-06** at limit **
  14  Prefactor     .10000E-03    2.5206        .11421E-06** at limit **
  15  Prefactor     .10000E-03    5.4214        .26118E-06** at limit **
  16  norm          .10000E-03    3.8090        .22626E-06** at limit **
  17  Prefactor     .10000E-03    2.4219        .94561E-07** at limit **
  18  Prefactor     14.021        6.6713       -.26950E-06   -.10788E-03
  19  Prefactor     .10000E-03    11.160        .13780E-06** at limit **
  20  norm          1.0609        .59561       -.22812E-06   -.12984E-03
  21  norm          21.750        12.494       -.54560E-06    .68798E-05
  22  Prefactor     .10000E-03    15.315        .14890E-06** at limit **
  23  Prefactor     .10000E-03    17.878        .22233E-06** at limit **
  24  Prefactor     .10000E-03    26.229        .24873E-06** at limit **
  25  Normalizat    1.3015        .50056        .23924E-04   -.20458E-03
  26  Prefactor     .53243        .42483       -.32113E-04   -.73520E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 139.85
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4878
  Prefactor  = 0.0001
  Prefactor  = 9.00577
  Prefactor  = 72.4097
  norm       = 8.03955
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0207
  Prefactor  = 0.0001
  norm       = 1.06086
  norm       = 21.7503
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.30149
  Prefactor  = 0.532434
 **********
 **   18 **HESSE 
 **********

 FCN=   1486.587     FROM HESSE     STATUS=OK           442 CALLS     3511 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          139.85        179.71        .17039E-03   -1.3337    
   3  Prefactor     .10000E-03    132.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    101.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    68.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.488        404.38        .99952E-04   -1.4921    
   7  Prefactor     .10000E-03    23.134        .18112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.0058        12.301        .11436E-03   -1.5108    
   9  Prefactor     72.410        48.904        .23578E-03   -1.4004    
  10  norm          8.0395        5.1090        .64102E-04   -1.5141    
  11  Prefactor     .10001E-03    495.49        .41114E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.1444        .10051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    211.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.5245        .59778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.5558        .17525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.8396        .73471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.4296        .58593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.021        6.6641        .65382E-04   -1.4959    
  19  Prefactor     .10000E-03    11.282        .12571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0609        .59482        .20593E-04   -1.5502    
  21  norm          21.750        12.479        .85889E-04   -1.4775    
  22  Prefactor     .10000E-03    15.406        .14738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    17.974        .15924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    26.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3015        .50453        .26373E-03   -.83522    
  26  Prefactor     .53243        .42670        .35780E-03   -1.1051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.61985e-10
Minuit parameter uncertainties:
  1  0.00016281
  2  180.42
  3  0.000989093
  4  9.73261e-05
  5  0.000351326
  6  159.492
  7  5.99853e-05
  8  12.3044
  9  48.931
  10  5.10929
  11  0.00452535
  12  8.83615e-06
  13  0.000110895
  14  9.8185e-07
  15  3.08163e-05
  16  1.6297e-05
  17  5.15307e-06
  18  6.66441
  19  2.21339e-05
  20  0.594822
  21  12.4805
  22  6.20476e-05
  23  6.58027e-06
  24  3.10465e-06
  25  0.506455
  26  0.429312
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  8.836e-06  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:  5.324e-01  4.293e-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.301e+00  5.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/264077/likelihoodResults_634608001_634867201_4FGL_J1200.7+2008_daily_bin1525.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) = 1486.58760899
delta logL = -0.000646173717996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1486.58696282
delta logL = -4.81350070913e-10

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 'Index     '    2.5196       1.0000          .0000       10.000    
     3 'Normalizat'    1.3015       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53242       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=   1486.587     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      249 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    12.157        .10050E-02** at limit **
   2  Index         2.5024        5.8447        .50000        .61586E-06
   3  Normalizat    1.3015        .46296        .26370E-03   -.50656E-06
   4  Prefactor     .53243        .41873        .35786E-03    .13899E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Index      = 2.50241
  Normalizat = 1.30149
  Prefactor  = 0.53243
 **********
 **   18 **HESSE 
 **********

 FCN=   1486.587     FROM HESSE     STATUS=OK            29 CALLS      278 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    7.3251        .20101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5024        7.1633        .50000       -.52304    
   3  Normalizat    1.3015        .46322        .10548E-04   -.83522    
   4  Prefactor     .53243        .41899        .14315E-04   -1.1051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44873e-09
Minuit parameter uncertainties:
  1  0.00069818
  2  339.553
  3  0.464709
  4  0.421456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264077': 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) = 1486.58696281
delta logL = 2.17028173211e-09

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  6.982e-04  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.502e+00  3.396e+02  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:  5.324e-01  4.215e-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.301e+00  4.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.187 20.135

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/264077/cmap_HighResolution_634608001_634867201_4FGL_J1200.7+2008_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.14e-02', job_status='DONE', photon_flux_upper_limit='2.75e-07', time_completed='2021-09-04 21:03:51.696320', job_id='264077', GAL2='0.53', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630814631.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='2.17e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1525' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:03:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 264077: <4FGL_J1200.7+2008_daily_bin1525> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1525> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 20:50:44 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:50:45 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:45 2021
Terminated at Sat Sep  4 21:03:52 2021
Results reported at Sat Sep  4 21:03:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1525 180.187 20.1354 634608001 634867201 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 :                                   423.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             201.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            788 sec.

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

