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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin591
RA = 180.187, Dec = 20.1354
tmin = 392515201, tmax = 392774401
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='258717', job_status='RUN', time_executed='2021-09-04 20:35:53.771842', time_epoch_executed='1630812953.77' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='591'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258717

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258717/ft1_4FGL_J1200.7+2008_daily_bin591.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258717/ft2_4FGL_J1200.7+2008_daily_bin591.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258717/ft1_4FGL_J1200.7+2008_daily_bin591.fits outfile=/scratch/kocevski/258717/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin591.fits ra=180.187 dec=20.1354 rad=12.0 tmin=392515201.0 tmax=392774401.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.33
user 3.12
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258717/ft1_filtered_4FGL_J1200.7+2008_daily_bin591.fits" evtable="EVENTS" scfile=/scratch/kocevski/258717/ft2_4FGL_J1200.7+2008_daily_bin591.fits sctable="SC_DATA" outfile=/scratch/kocevski/258717/ltcube_392515201_392774401_4FGL_J1200.7+2008_daily_bin591.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/258717/ft2_4FGL_J1200.7+2008_daily_bin591.fits
.....................!
real 11.99
user 11.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258717/ft1_filtered_4FGL_J1200.7+2008_daily_bin591.fits evtable="EVENTS" scfile=/scratch/kocevski/258717/ft2_4FGL_J1200.7+2008_daily_bin591.fits sctable="SC_DATA" expcube=/scratch/kocevski/258717/ltcube_392515201_392774401_4FGL_J1200.7+2008_daily_bin591.fits outfile=/scratch/kocevski/258717/expmap_392515201_392774401_4FGL_J1200.7+2008_daily_bin591.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/258717/ltcube_392515201_392774401_4FGL_J1200.7+2008_daily_bin591.fits
.....................!
real 192.08
user 187.50
sys 4.21

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/258717/ft1_filtered_4FGL_J1200.7+2008_daily_bin591.fits scfile=/scratch/kocevski/258717/ft2_4FGL_J1200.7+2008_daily_bin591.fits outfile=/scratch/kocevski/258717/cmap_392515201_392774401_4FGL_J1200.7+2008_daily_bin591.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258717/ft1_filtered_4FGL_J1200.7+2008_daily_bin591.fits scfile=/scratch/kocevski/258717/ft2_4FGL_J1200.7+2008_daily_bin591.fits outfile=/scratch/kocevski/258717/cmap_HighResolution_392515201_392774401_4FGL_J1200.7+2008_daily_bin591.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7763       1.0000         .10000E-03   10000.    
     2 'norm      '    11.312       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.847       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.463       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .94020       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    52.285       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1176       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.434       1.0000         .10000E-03   10000.    
    16 'norm      '    3.1040       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2788       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.5500       1.0000         .10000E-03   10000.    
    20 'norm      '    .69402       1.0000         .10000E-03   10000.    
    21 'norm      '    .15048E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2086       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96600       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=   6525.926     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     3048 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7766        4.2381       -.28540E-07    .47867E-04
   2  norm          11.313        10.802       -.93676E-06   -.11777E-02
   3  Prefactor     10.848        11.772       -.11386E-06   -.72453E-04
   4  Prefactor     25.471        46.434        .13437E-04   -.52162E-05
   5  Prefactor     .10000E-03    7.8029       -.19995E-05** at limit **
   6  Prefactor     .10000E-03    14.293        .14486E-04** at limit **
   7  Prefactor     .10000E-03    2.7373       -.57582E-07** at limit **
   8  Prefactor     .10000E-03    .59895        .73774E-08** at limit **
   9  Prefactor     .10000E-03    4.0436       -.31931E-05** at limit **
  10  norm          .94015        .89976       -.14841E-08   -.73709E-03
  11  Prefactor     .10000E-03    8.9598       -.67951E-05** at limit **
  12  Prefactor     .10000E-03    1.3824        .38325E-07** at limit **
  13  Prefactor     52.285        63.746       -.10065E-05    .46364E-04
  14  Prefactor     1.1177        2.5031       -.43700E-06   -.10278E-02
  15  Prefactor     12.434        4.3659        .15466E-06    .23090E-04
  16  norm          3.1041        2.1580        .37609E-07   -.68848E-04
  17  Prefactor     .10000E-03    .56905       -.33189E-08** at limit **
  18  Prefactor     2.2795        2.0085       -.58499E-07   -.91633E-03
  19  Prefactor     9.5525        6.3081       -.15890E-06   -.94350E-03
  20  norm          .69404        .26352        .14473E-07   -.16268E-02
  21  norm          .10003E-03    2.8382        .23077E-05** at limit **
  22  Prefactor     .10000E-03    10.568       -.19089E-05** at limit **
  23  Prefactor     .10000E-03    3.8359        .25507E-05** at limit **
  24  Prefactor     .10000E-03    19.496       -.98139E-05** at limit **
  25  Normalizat    1.2085        .18649       -.14920E-05   -.18013E-03
  26  Prefactor     .96608        .18413        .18365E-06   -.22003E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.77664
  norm       = 11.3125
  Prefactor  = 10.8478
  Prefactor  = 25.4709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.940149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.2846
  Prefactor  = 1.11775
  Prefactor  = 12.4335
  norm       = 3.10411
  Prefactor  = 0.0001
  Prefactor  = 2.27945
  Prefactor  = 9.55247
  norm       = 0.694039
  norm       = 0.000100029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20848
  Prefactor  = 0.966085
 **********
 **   18 **HESSE 
 **********

 FCN=   6525.926     FROM HESSE     STATUS=OK           458 CALLS     3506 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7766        4.2359        .17089E-03   -1.5319    
   2  norm          11.313        11.033        .59557E-03   -1.5035    
   3  Prefactor     10.848        11.787        .12165E-03   -1.5049    
   4  Prefactor     25.471        46.396        .79386E-04   -1.4698    
   5  Prefactor     .10000E-03    7.8269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.7408        .13052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .61126        .61010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.0451        .15843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .94015        .86338        .72047E-03   -1.5514    
  11  Prefactor     .10000E-03    8.9509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.3975        .92707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.285        63.753        .55466E-04   -1.4261    
  14  Prefactor     1.1177        2.4274        .17049E-03   -1.5497    
  15  Prefactor     12.434        4.2874        .88082E-04   -1.5003    
  16  norm          3.1041        2.1563        .95373E-04   -1.5356    
  17  Prefactor     .10000E-03    .57034        .59479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2795        1.9988        .10221E-03   -1.5406    
  19  Prefactor     9.5525        6.1671        .12968E-03   -1.5090    
  20  norm          .69404        .26185        .24201E-04   -1.5541    
  21  norm          .10003E-03    6.8768        .25296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.8461        .15444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2085        .21764        .24535E-03   -.86341    
  26  Prefactor     .96608        .21406        .28272E-03   -.93869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71515e-09
Minuit parameter uncertainties:
  1  4.23627
  2  11.0354
  3  11.7896
  4  46.462
  5  1.02418e-05
  6  1.70359e-05
  7  5.77868e-07
  8  6.28461e-07
  9  6.46479e-06
  10  0.863396
  11  2.04377e-05
  12  2.82255e-06
  13  63.8363
  14  2.42757
  15  4.28753
  16  2.15639
  17  3.02443e-07
  18  1.99882
  19  6.16753
  20  0.261854
  21  0.000894257
  22  4.0766e-05
  23  5.99171e-07
  24  4.04654e-05
  25  0.217799
  26  0.214244
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.823e-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.661e-01  2.142e-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.208e+00  2.178e-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: 5.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258717/likelihoodResults_392515201_392774401_4FGL_J1200.7+2008_daily_bin591.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) = 6525.92977147
delta logL = -0.00337873711396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6525.92639274
delta logL = -1.10803739517e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5122       1.0000          .0000       10.000    
     3 'Normalizat'    1.2085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96612       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=   6525.926     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      251 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.045        .92977E-02** at limit **
   2  Index         2.1409        8.1836        .50000       -.66746E-06
   3  Normalizat    1.2085        .12363E-01    .24535E-03   -.44993E-04
   4  Prefactor     .96609        .12968E-01    .28272E-03   -.16808E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.14094
  Normalizat = 1.20848
  Prefactor  = 0.966086
 **********
 **   18 **HESSE 
 **********

 FCN=   6525.926     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    243.05        .96326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1409        8.4806        .50000       -.60871    
   3  Normalizat    1.2085        .77432E-01    .98139E-05   -.86341    
   4  Prefactor     .96609        .81195E-01    .11309E-04   -.93869    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.78456e-09
Minuit parameter uncertainties:
  1  0.000743332
  2  1153.35
  3  0.0774392
  4  0.081205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258717': 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) = 6525.92639033
delta logL = 2.40540248342e-06

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  7.433e-04  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.141e+00  1.153e+03  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.661e-01  8.120e-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:  1.208e+00  7.744e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/258717/cmap_HighResolution_392515201_392774401_4FGL_J1200.7+2008_daily_bin591.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-03', job_status='DONE', photon_flux_upper_limit='5.79e-08', time_completed='2021-09-04 20:49:12.280859', job_id='258717', GAL2='0.97', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630813752.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.41e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='591' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:49:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 258717: <4FGL_J1200.7+2008_daily_bin591> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin591> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 20:35:38 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:35:40 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:35:40 2021
Terminated at Sat Sep  4 20:49:13 2021
Results reported at Sat Sep  4 20:49:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin591 180.187 20.1354 392515201 392774401 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 :                                   795.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            815 sec.

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

