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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1017
RA = 180.187, Dec = 20.1354
tmin = 502934401, tmax = 503193601
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='262033', job_status='RUN', time_executed='2021-09-04 20:48:43.611305', time_epoch_executed='1630813723.61' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262033

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262033/ft1_4FGL_J1200.7+2008_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262033/ft2_4FGL_J1200.7+2008_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262033/ft1_4FGL_J1200.7+2008_daily_bin1017.fits outfile=/scratch/kocevski/262033/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1017.fits ra=180.187 dec=20.1354 rad=12.0 tmin=502934401.0 tmax=503193601.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.59
user 3.36
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262033/ft1_filtered_4FGL_J1200.7+2008_daily_bin1017.fits" evtable="EVENTS" scfile=/scratch/kocevski/262033/ft2_4FGL_J1200.7+2008_daily_bin1017.fits sctable="SC_DATA" outfile=/scratch/kocevski/262033/ltcube_502934401_503193601_4FGL_J1200.7+2008_daily_bin1017.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/262033/ft2_4FGL_J1200.7+2008_daily_bin1017.fits
.....................!
real 11.94
user 11.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262033/ft1_filtered_4FGL_J1200.7+2008_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/262033/ft2_4FGL_J1200.7+2008_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/262033/ltcube_502934401_503193601_4FGL_J1200.7+2008_daily_bin1017.fits outfile=/scratch/kocevski/262033/expmap_502934401_503193601_4FGL_J1200.7+2008_daily_bin1017.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/262033/ltcube_502934401_503193601_4FGL_J1200.7+2008_daily_bin1017.fits
.....................!
real 190.61
user 185.28
sys 4.84

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/262033/ft1_filtered_4FGL_J1200.7+2008_daily_bin1017.fits scfile=/scratch/kocevski/262033/ft2_4FGL_J1200.7+2008_daily_bin1017.fits outfile=/scratch/kocevski/262033/cmap_502934401_503193601_4FGL_J1200.7+2008_daily_bin1017.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 1.51
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262033/ft1_filtered_4FGL_J1200.7+2008_daily_bin1017.fits scfile=/scratch/kocevski/262033/ft2_4FGL_J1200.7+2008_daily_bin1017.fits outfile=/scratch/kocevski/262033/cmap_HighResolution_502934401_503193601_4FGL_J1200.7+2008_daily_bin1017.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5661       1.0000         .10000E-03   10000.    
     2 'norm      '    2.4772       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9892       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5015       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9511       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.506       1.0000         .10000E-03   10000.    
    10 'norm      '    6.1658       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11695E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13915E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    20.380       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4112       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0971       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2302       1.0000         .10000E-03   10000.    
    20 'norm      '    .25172       1.0000         .10000E-03   10000.    
    21 'norm      '    6.6642       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.993       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.364       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .93728       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95777       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=   5973.829     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3120 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5660        3.3698        .25276E-07   -.73325E-05
   2  norm          2.4728        11.415        .18850E-05    .10070E-03
   3  Prefactor     4.9868        7.6434        .22084E-06    .17609E-05
   4  Prefactor     4.3741        129.17        .17829E-05   -.21849E-04
   5  Prefactor     .10000E-03    10.141        .21459E-06** at limit **
   6  Prefactor     .10000E-03    7.0630        .45219E-07** at limit **
   7  Prefactor     3.9465        9.0970        .61660E-06   -.45576E-04
   8  Prefactor     .10000E-03    .95937        .15511E-06** at limit **
   9  Prefactor     17.510        11.325        .59273E-07   -.91992E-04
  10  norm          6.1653        1.5984        .40760E-08   -.37193E-03
  11  Prefactor     .10000E-03    5.6419       -.39419E-07** at limit **
  12  Prefactor     .10000E-03    1.6939        .59700E-07** at limit **
  13  Prefactor     .10000E-03    22.576       -.58471E-08** at limit **
  14  Prefactor     .10003E-03    2.4455        .16160E-05** at limit **
  15  Prefactor     .10001E-03    1.7527        .22178E-06** at limit **
  16  norm          20.380        4.8713       -.53616E-07   -.26623E-03
  17  Prefactor     2.4115        2.1365        .22896E-07   -.16884E-04
  18  Prefactor     1.0968        1.8189        .46184E-06    .81144E-03
  19  Prefactor     1.2290        4.1036        .18374E-05    .39891E-03
  20  norm          .25170        .16489       -.71120E-08   -.16698E-02
  21  norm          6.6632        4.9513       -.24733E-06   -.19769E-03
  22  Prefactor     16.982        13.708        .34303E-06    .11693E-03
  23  Prefactor     .10000E-03    5.4087        .66192E-07** at limit **
  24  Prefactor     29.374        31.131       -.10791E-06   -.11175E-03
  25  Normalizat    .93728        .17883        .33261E-07   -.65413E-03
  26  Prefactor     .95798        .18202       -.16288E-05   -.60684E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.56597
  norm       = 2.47277
  Prefactor  = 4.98684
  Prefactor  = 4.37413
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.94651
  Prefactor  = 0.0001
  Prefactor  = 17.5102
  norm       = 6.16534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 0.000100011
  norm       = 20.38
  Prefactor  = 2.41149
  Prefactor  = 1.09682
  Prefactor  = 1.22902
  norm       = 0.251704
  norm       = 6.66323
  Prefactor  = 16.9822
  Prefactor  = 0.0001
  Prefactor  = 29.3736
  Normalizat = 0.937276
  Prefactor  = 0.957978
 **********
 **   18 **HESSE 
 **********

 FCN=   5973.829     FROM HESSE     STATUS=OK           464 CALLS     3584 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5660        3.3604        .15831E-03   -1.5388    
   2  norm          2.4728        11.688        .25977E-03   -1.5393    
   3  Prefactor     4.9868        7.6395        .18004E-03   -1.5261    
   4  Prefactor     4.3741        129.29        .18976E-03   -1.5290    
   5  Prefactor     .10000E-03    10.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.0820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.9465        9.0964        .20293E-03   -1.5311    
   8  Prefactor     .10000E-03    1.0016        .14787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.510        11.325        .95726E-04   -1.4871    
  10  norm          6.1653        1.5981        .47597E-04   -1.5211    
  11  Prefactor     .10000E-03    5.6491        .17929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.7214        .98144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10003E-03    6.3645        .17184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    8.3383        .18356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.380        4.8470        .76821E-04   -1.4805    
  17  Prefactor     2.4115        2.1330        .99705E-04   -1.5397    
  18  Prefactor     1.0968        1.6356        .13179E-02   -1.5499    
  19  Prefactor     1.2290        4.0722        .26855E-03   -1.5486    
  20  norm          .25170        .16543        .24353E-04   -1.5608    
  21  norm          6.6632        4.9205        .13579E-03   -1.5192    
  22  Prefactor     16.982        13.777        .97159E-04   -1.4884    
  23  Prefactor     .10000E-03    5.4360        .17552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     29.374        31.156        .73936E-04   -1.4623    
  25  Normalizat    .93728        .20319        .25027E-03   -.95162    
  26  Prefactor     .95798        .20671        .26135E-03   -.94144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.27786e-09
Minuit parameter uncertainties:
  1  3.36062
  2  10.7554
  3  7.64095
  4  47.6756
  5  2.44608e-05
  6  8.29515e-06
  7  9.0996
  8  5.42475e-06
  9  11.3262
  10  1.59807
  11  1.10085e-05
  12  1.84885e-06
  13  5.28942e-06
  14  0.000880273
  15  0.00061508
  16  4.84709
  17  2.13308
  18  1.63566
  19  4.07311
  20  0.165432
  21  4.92075
  22  13.7795
  23  7.47951e-06
  24  31.1735
  25  0.203352
  26  0.206882
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.849e-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:  9.580e-01  2.069e-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.373e-01  2.034e-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: 6.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/262033/likelihoodResults_502934401_503193601_4FGL_J1200.7+2008_daily_bin1017.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): 102
logL (Free Index) = 5973.83194704
delta logL = -0.00276312044207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5973.82918223
delta logL = 1.68786391441e-06

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.4825       1.0000          .0000       10.000    
     3 'Normalizat'    .93727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95799       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=   5973.829     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      228 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    4.5002        .40572E-01** at limit **
   2  Index         1.6260        5.7628        .50000       -.59258E-06
   3  Normalizat    .93728        .58825E-02    .45376E-01    .78552E-03
   4  Prefactor     .95798        .62367E-02    .45740E-01    .10167E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 1.626
  Normalizat = 0.937276
  Prefactor  = 0.957983
 **********
 **   18 **HESSE 
 **********

 FCN=   5973.829     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      259 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    235.57        .23430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6260        6.3543        .50000       -.74069    
   3  Normalizat    .93728        .23634E-01    .25027E-03   -.95162    
   4  Prefactor     .95798        .25063E-01    .26135E-03   -.94143    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00019e-08
Minuit parameter uncertainties:
  1  0.00245193
  2  286.586
  3  0.0236342
  4  0.0250628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262033': 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): 102
logL (Free Index) = 5973.82916079
delta logL = 2.31250669458e-05

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.452e-03  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  1.626e+00  2.866e+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:  9.580e-01  2.506e-02  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.373e-01  2.363e-02  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/262033/cmap_HighResolution_502934401_503193601_4FGL_J1200.7+2008_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.91e-03', job_status='DONE', photon_flux_upper_limit='6.30e-08', time_completed='2021-09-04 21:01:31.963976', job_id='262033', GAL2='0.96', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630814491.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.31e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1017' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:01:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 262033: <4FGL_J1200.7+2008_daily_bin1017> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1017> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:45:21 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:45:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 20:45:23 2021
Terminated at Sat Sep  4 21:01:32 2021
Results reported at Sat Sep  4 21:01:32 2021

Your job looked like:

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

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

