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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1596
RA = 180.187, Dec = 20.1354
tmin = 653011201, tmax = 653270401
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='302840', job_status='RUN', time_executed='2021-09-14 00:28:06.369697', time_epoch_executed='1631604486.37' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1596'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302840

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302840/ft1_4FGL_J1200.7+2008_daily_bin1596.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302840/ft2_4FGL_J1200.7+2008_daily_bin1596.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302840/ft1_4FGL_J1200.7+2008_daily_bin1596.fits outfile=/scratch/kocevski/302840/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1596.fits ra=180.187 dec=20.1354 rad=12.0 tmin=653011201.0 tmax=653270401.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.17
user 2.94
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302840/ft1_filtered_4FGL_J1200.7+2008_daily_bin1596.fits" evtable="EVENTS" scfile=/scratch/kocevski/302840/ft2_4FGL_J1200.7+2008_daily_bin1596.fits sctable="SC_DATA" outfile=/scratch/kocevski/302840/ltcube_653011201_653270401_4FGL_J1200.7+2008_daily_bin1596.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/302840/ft2_4FGL_J1200.7+2008_daily_bin1596.fits
.....................!
real 14.33
user 13.88
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302840/ft1_filtered_4FGL_J1200.7+2008_daily_bin1596.fits evtable="EVENTS" scfile=/scratch/kocevski/302840/ft2_4FGL_J1200.7+2008_daily_bin1596.fits sctable="SC_DATA" expcube=/scratch/kocevski/302840/ltcube_653011201_653270401_4FGL_J1200.7+2008_daily_bin1596.fits outfile=/scratch/kocevski/302840/expmap_653011201_653270401_4FGL_J1200.7+2008_daily_bin1596.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/302840/ltcube_653011201_653270401_4FGL_J1200.7+2008_daily_bin1596.fits
.....................!
real 193.84
user 187.88
sys 5.10

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 192 point sources and 0 extended sources

Setting source of interest to:
4FGL J1200.7+2008 @ 180.187 20.1354

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/302840/ft1_filtered_4FGL_J1200.7+2008_daily_bin1596.fits scfile=/scratch/kocevski/302840/ft2_4FGL_J1200.7+2008_daily_bin1596.fits outfile=/scratch/kocevski/302840/cmap_653011201_653270401_4FGL_J1200.7+2008_daily_bin1596.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302840/ft1_filtered_4FGL_J1200.7+2008_daily_bin1596.fits scfile=/scratch/kocevski/302840/ft2_4FGL_J1200.7+2008_daily_bin1596.fits outfile=/scratch/kocevski/302840/cmap_HighResolution_653011201_653270401_4FGL_J1200.7+2008_daily_bin1596.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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/302840/ft1_filtered_4FGL_J1200.7+2008_daily_bin1596.fits evtable="EVENTS" scfile=/scratch/kocevski/302840/ft2_4FGL_J1200.7+2008_daily_bin1596.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302840/Model_4FGL_J1200.7+2008_daily_bin1596.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/302840/ft1_filtered_4FGL_J1200.7+2008_daily_bin1596.fits...........................!
real 18.38
user 17.14
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'norm      '    10000.       1.0000         .10000E-03   10000.    
     3 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2063.5       1.0000         .10000E-03   10000.    
     7 'Prefactor '    879.60       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    154.69       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0385       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10729E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11750E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.2707       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10760E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .89195       1.0000         .10000E-03   10000.    
    21 'norm      '    47.578       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13068E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.854       1.0000         .10000E-03   10000.    
    24 'Prefactor '    160.52       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96779       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=   582.3210     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     3703 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        8413.2        .24319E-05** at limit **
   2  norm         10000.0        6170.0        .42789E-05** at limit **
   3  Prefactor    10000.0        6647.5        .21582E-05** at limit **
   4  Prefactor    10000.0        9276.6        .13483E-04** at limit **
   5  Prefactor    10000.0        820.16        .25326E-05** at limit **
   6  Prefactor     2056.3        2469.1        .10845E-03    .13876E-04
   7  Prefactor     886.02        1716.9       -.24004E-04    .15495E-04
   8  Prefactor     .10000E-03    35.532       -.93482E-06** at limit **
   9  Prefactor     154.68        155.00        .38776E-06    .56448E-05
  10  norm          2.1017        23.859       -.19625E-04   -.64605E-04
  11  Prefactor     .10000E-03    134.93        .94463E-06** at limit **
  12  Prefactor     .10000E-03    43.433        .21763E-05** at limit **
  13  Prefactor     .10000E-03    276.44        .53484E-06** at limit **
  14  Prefactor     .10000E-03    14.456        .26417E-05** at limit **
  15  Prefactor     .10000E-03    12.390        .40731E-05** at limit **
  16  norm          3.2684        6.0309        .41476E-06    .63628E-04
  17  Prefactor     .10000E-03    3.0005       -.26831E-06** at limit **
  18  Prefactor     .10000E-03    2.4396       -.69328E-06** at limit **
  19  Prefactor     .10000E-03    22.048       -.12109E-05** at limit **
  20  norm          .89150        1.3691       -.29827E-06    .36281E-03
  21  norm          47.584        24.154        .19762E-06    .21503E-03
  22  Prefactor     .10001E-03    230.63        .53028E-04** at limit **
  23  Prefactor     25.844        26.511        .12295E-06    .45540E-04
  24  Prefactor     160.71        111.87        .17652E-05   -.19640E-03
  25  Normalizat    .10000E-01    .39651       -.11765E-04** at limit **
  26  Prefactor     .96746        .44684       -.64518E-06    .47646E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 2056.27
  Prefactor  = 886.023
  Prefactor  = 0.0001
  Prefactor  = 154.675
  norm       = 2.10173
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.26841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.891499
  norm       = 47.5838
  Prefactor  = 0.000100009
  Prefactor  = 25.8445
  Prefactor  = 160.713
  Normalizat = 0.01
  Prefactor  = 0.96746
 **********
 **   18 **HESSE 
 **********

 FCN=   582.3210     FROM HESSE     STATUS=OK           440 CALLS     4143 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        8413.3        .19725E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm         10000.0        6169.2        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        6647.7        .18626E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        9274.7        .18640E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        820.03        .20788E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2056.3        2464.4        .49421E-04   -.62951    
   7  Prefactor     886.02        1709.5        .70612E-04   -.96631    
   8  Prefactor     .10000E-03    35.543        .14062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     154.68        154.98        .16206E-03   -1.3214    
  10  norm          2.1017        23.694        .19597E-03   -1.5418    
  11  Prefactor     .10000E-03    134.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    43.398        .15544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    276.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.438        .89589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.365        .82886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.2684        6.0358        .77370E-04   -1.5346    
  17  Prefactor     .10000E-03    3.0011        .40834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.4417        .36827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.088        .11066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .89150        1.3521        .29298E-04   -1.5519    
  21  norm          47.584        24.086        .58132E-04   -1.4327    
  22  Prefactor     .10001E-03    223.46        .18176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     25.844        26.524        .78784E-04   -1.4691    
  24  Prefactor     160.71        111.39        .15914E-03   -1.3166    
  25  Normalizat    .10000E-01    .43193        .85546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .96746        .43311        .27648E-03   -.93822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54269e-10
Minuit parameter uncertainties:
  1  0.0297774
  2  0.0221341
  3  0.0253724
  4  0.15976
  5  0.00147421
  6  2650.31
  7  1834.25
  8  5.38493e-05
  9  155.386
  10  14.1204
  11  0.000232547
  12  4.72013e-05
  13  0.000206965
  14  3.0528e-05
  15  3.09832e-05
  16  6.03689
  17  1.37269e-06
  18  2.66018e-06
  19  2.71307e-05
  20  1.35216
  21  24.091
  22  0.00280049
  23  26.5362
  24  111.54
  25  5.50469e-06
  26  0.434677
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  4.720e-05  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.675e-01  4.347e-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.000e-02  5.505e-06  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.00e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.55e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302840/likelihoodResults_653011201_653270401_4FGL_J1200.7+2008_daily_bin1596.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) = 582.321099005
delta logL = -0.000108424037762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 582.320990603
delta logL = -2.23407141675e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4569       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96744       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=   582.3210     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      238 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    240.56        .90712E-02** at limit **
   2  Index         2.4591        5.7271        .50000       -.46592E-06
   3  Normalizat    .10000E-01    .33808        .22268    ** at limit **
   4  Prefactor     .96746        .37255        .45859E-01   -.11256E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.45907
  Normalizat = 0.01
  Prefactor  = 0.967458
 **********
 **   18 **HESSE 
 **********

 FCN=   582.3210     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .25E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.603        .15498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4591        6.2288        .50000       -.53308    
   3  Normalizat    .10000E-01    .36824        .85549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .96746        .34349        .27650E-03   -.93822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47123e-13
Minuit parameter uncertainties:
  1  8.99554e-07
  2  4.36569
  3  1.68183e-08
  4  0.344265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302840': 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) = 582.320990587
delta logL = -6.39306563244e-09

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  8.996e-07  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.459e+00  4.366e+00  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.675e-01  3.443e-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.000e-02  1.682e-08  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/302840/cmap_HighResolution_653011201_653270401_4FGL_J1200.7+2008_daily_bin1596.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-01', job_status='DONE', photon_flux_upper_limit='2.00e-06', time_completed='2021-09-14 00:34:21.373016', job_id='302840', GAL2='0.97', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631604861.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-6.39e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1596' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 00:34:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 302840: <4FGL_J1200.7+2008_daily_bin1596> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1596> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 00:25:30 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 00:27:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 00:27:57 2021
Terminated at Tue Sep 14 00:34:22 2021
Results reported at Tue Sep 14 00:34:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1596 180.187 20.1354 653011201 653270401 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 :                                   376.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   384 sec.
    Turnaround time :                            532 sec.

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

