/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 4 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7452
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1535
RA = 180.187, Dec = 20.1354
tmin = 637200001, tmax = 637459201
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='264092', job_status='RUN', time_executed='2021-09-04 20:50:59.711748', time_epoch_executed='1630813859.71' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264092

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264092/ft1_4FGL_J1200.7+2008_daily_bin1535.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264092/ft2_4FGL_J1200.7+2008_daily_bin1535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264092/ft1_4FGL_J1200.7+2008_daily_bin1535.fits outfile=/scratch/kocevski/264092/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1535.fits ra=180.187 dec=20.1354 rad=12.0 tmin=637200001.0 tmax=637459201.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 5.32
user 5.09
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/264092/ft2_4FGL_J1200.7+2008_daily_bin1535.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/264092/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1535.fits evtable="EVENTS" outfile="/scratch/kocevski/264092/ft1_filtered_4FGL_J1200.7+2008_daily_bin1535.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264092/ft1_filtered_4FGL_J1200.7+2008_daily_bin1535.fits" evtable="EVENTS" scfile=/scratch/kocevski/264092/ft2_4FGL_J1200.7+2008_daily_bin1535.fits sctable="SC_DATA" outfile=/scratch/kocevski/264092/ltcube_637200001_637459201_4FGL_J1200.7+2008_daily_bin1535.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/264092/ft2_4FGL_J1200.7+2008_daily_bin1535.fits
.....................!
real 11.69
user 11.25
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264092/ft1_filtered_4FGL_J1200.7+2008_daily_bin1535.fits evtable="EVENTS" scfile=/scratch/kocevski/264092/ft2_4FGL_J1200.7+2008_daily_bin1535.fits sctable="SC_DATA" expcube=/scratch/kocevski/264092/ltcube_637200001_637459201_4FGL_J1200.7+2008_daily_bin1535.fits outfile=/scratch/kocevski/264092/expmap_637200001_637459201_4FGL_J1200.7+2008_daily_bin1535.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/264092/ltcube_637200001_637459201_4FGL_J1200.7+2008_daily_bin1535.fits
.....................!
real 191.57
user 186.08
sys 5.05

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/264092/ft1_filtered_4FGL_J1200.7+2008_daily_bin1535.fits scfile=/scratch/kocevski/264092/ft2_4FGL_J1200.7+2008_daily_bin1535.fits outfile=/scratch/kocevski/264092/cmap_637200001_637459201_4FGL_J1200.7+2008_daily_bin1535.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.53
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264092/ft1_filtered_4FGL_J1200.7+2008_daily_bin1535.fits evtable="EVENTS" scfile=/scratch/kocevski/264092/ft2_4FGL_J1200.7+2008_daily_bin1535.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264092/Model_4FGL_J1200.7+2008_daily_bin1535.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/264092/ft1_filtered_4FGL_J1200.7+2008_daily_bin1535.fits.....................!
real 49.43
user 48.16
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3688       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.261       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4775       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.6456       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2500       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10852E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .97398       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10721E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .21664       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.7090       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0102       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .27984       1.0000         .10000E-03   10000.    
    21 'norm      '    6.0748       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.5969       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .90676       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98589       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=   4846.090     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3154 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4206        .19968E-07** at limit **
   2  norm          .10000E-03    10.297        .37421E-07** at limit **
   3  Prefactor     .10000E-03    5.9016       -.60476E-07** at limit **
   4  Prefactor     .10000E-03    13.857       -.14478E-06** at limit **
   5  Prefactor     5.3691        16.527        .60130E-06    .21603E-04
   6  Prefactor     23.256        37.777       -.15112E-05   -.16851E-03
   7  Prefactor     .10001E-03    25.664       -.18075E-05** at limit **
   8  Prefactor     5.4776        3.1802        .45113E-06   -.23398E-03
   9  Prefactor     .10000E-03    3.0005        .14173E-07** at limit **
  10  norm          5.6470        2.1758        .33705E-07   -.52286E-03
  11  Prefactor     .10000E-03    5.9336        .54506E-07** at limit **
  12  Prefactor     8.2559        6.3728       -.45080E-06   -.30588E-03
  13  Prefactor     .10000E-03    132.43       -.45920E-06** at limit **
  14  Prefactor     .96758        3.4133        .16844E-05    .26898E-03
  15  Prefactor     .10000E-03    2.6897       -.76634E-06** at limit **
  16  norm          .17869        4.2335        .12382E-05   -.10473E-02
  17  Prefactor     6.7284        4.1996       -.15907E-06   -.92278E-03
  18  Prefactor     2.0183        3.9454        .37248E-06   -.55734E-03
  19  Prefactor     .10000E-03    2.4105       -.17298E-07** at limit **
  20  norm          .27985        .23920       -.15331E-08   -.38073E-03
  21  norm          6.0733        5.4016       -.61085E-08   -.12307E-03
  22  Prefactor     .10000E-03    5.2827        .94676E-07** at limit **
  23  Prefactor     8.5914        15.792        .59019E-06    .18331E-03
  24  Prefactor     .10000E-03    20.990        .85741E-06** at limit **
  25  Normalizat    .90672        .21338       -.32399E-06   -.86718E-04
  26  Prefactor     .98598        .20312       -.41453E-06   -.65458E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.36908
  Prefactor  = 23.2558
  Prefactor  = 0.000100006
  Prefactor  = 5.47762
  Prefactor  = 0.0001
  norm       = 5.64697
  Prefactor  = 0.0001
  Prefactor  = 8.25593
  Prefactor  = 0.000100001
  Prefactor  = 0.967581
  Prefactor  = 0.0001
  norm       = 0.178686
  Prefactor  = 6.72838
  Prefactor  = 2.01825
  Prefactor  = 0.0001
  norm       = 0.27985
  norm       = 6.07331
  Prefactor  = 0.0001
  Prefactor  = 8.59141
  Prefactor  = 0.000100002
  Normalizat = 0.90672
  Prefactor  = 0.985975
 **********
 **   18 **HESSE 
 **********

 FCN=   4846.090     FROM HESSE     STATUS=OK           460 CALLS     3614 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4293        .12573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.9178        .16517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.3691        16.485        .17344E-03   -1.5245    
   6  Prefactor     23.256        37.963        .83052E-04   -1.4743    
   7  Prefactor     .10001E-03    26.808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.4776        3.1403        .41832E-03   -1.5240    
   9  Prefactor     .10000E-03    3.0044        .11777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.6470        2.1760        .58258E-04   -1.5233    
  11  Prefactor     .10000E-03    5.9437        .16562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.2559        6.3511        .13886E-03   -1.5133    
  13  Prefactor     .10000E-03    133.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .96758        3.4723        .21903E-03   -1.5511    
  15  Prefactor     .10000E-03    5.1327        .20930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .17869        48.770        .20166E-02   -1.5623    
  17  Prefactor     6.7284        4.8901        .93389E-04   -1.5189    
  18  Prefactor     2.0183        3.9570        .16199E-03   -1.5424    
  19  Prefactor     .10000E-03    2.4134        .10552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .27985        .22914        .29952E-03   -1.5602    
  21  norm          6.0733        5.3930        .14533E-03   -1.5215    
  22  Prefactor     .10000E-03    5.3011        .15628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.5914        16.016        .13672E-03   -1.5122    
  24  Prefactor     .10000E-03    21.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .90672        .24781        .26532E-03   -.96224    
  26  Prefactor     .98598        .23601        .25548E-03   -.93198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65549e-08
Minuit parameter uncertainties:
  1  2.28634e-06
  2  1.48246e-05
  3  1.60684e-05
  4  5.75178e-05
  5  16.4985
  6  38.0023
  7  0.000776129
  8  3.14035
  9  1.51289e-06
  10  2.17603
  11  1.18317e-05
  12  6.35164
  13  0.000587038
  14  3.47303
  15  6.61121e-05
  16  5.9073
  17  4.89037
  18  3.95752
  19  1.09622e-06
  20  0.229137
  21  5.39343
  22  1.72424e-05
  23  16.0237
  24  0.000376097
  25  0.248127
  26  0.23626
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  8.256e+00  6.352e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.520e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  9.860e-01  2.363e-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.067e-01  2.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.01
Ra Dec: 180.187 20.135
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 8.04e-08 +/- 6.18e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.76e-05

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

Saving results to:
/scratch/kocevski/264092/likelihoodResults_637200001_637459201_4FGL_J1200.7+2008_daily_bin1535.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) = 4846.08338238
delta logL = 0.00620985550268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4846.08145751
delta logL = 0.00813472246409

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6327       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4455       1.0000          .0000       10.000    
     3 'Normalizat'    .91158       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98255       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=   4846.081     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      192 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6327        168.23        .34107E-02    .48474E-03
   2  Index         2.4455        6.1827        .18630        .85721E-04
   3  Normalizat    .91158        .93578E-01    .45049E-01    .66212E-05
   4  Prefactor     .98255        .93874E-01    .46049E-01    .11117E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.63273
  Index      = 2.44547
  Normalizat = 0.911577
  Prefactor  = 0.982554
 **********
 **   18 **HESSE 
 **********

 FCN=   4846.081     FROM HESSE     STATUS=OK            33 CALLS      225 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6327        7.0657        .13643E-03   -1.5120    
   2  Index         2.4455        .59017        .66873E-02   -.53624    
   3  Normalizat    .91158        .23556        .26469E-03   -.96055    
   4  Prefactor     .98255        .23371        .25587E-03   -.93313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78674e-11
Minuit parameter uncertainties:
  1  7.0664
  2  0.59204
  3  0.235824
  4  0.233948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264092': 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) = 4846.08145751
delta logL = 0.00813472286609

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  8.633e+00  7.066e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.445e+00  5.920e-01  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  9.826e-01  2.339e-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.116e-01  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.01
Ra Dec: 180.187 20.135
Photon Index (Free Index): 2.45 +/- 0.59
Photon Flux (Free Index): 7.62e-08 +/- 6.55e-08
Energy Flux (Free Index): 2.36e-05 +/- 1.89e-05

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/264092/cmap_HighResolution_637200001_637459201_4FGL_J1200.7+2008_daily_bin1535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-02', comment='SUCCESS', photon_flux='8.04e-08', energy_flux2='2.36e-05', photon_flux_error='6.18e-08', dlogl='8.13e-03', energy_flux='2.28e-05', photon_flux2='7.62e-08', job_status='DONE', time_completed='2021-09-04 21:02:49.643242', photon_index_error2='0.59', photon_index2='2.45', ts='3.01', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='2.02e-07', energy_flux_error2='1.89e-05', EG='0.91', time_epoch_completed='1630814569.64', return_code='0', job_id='264092', GAL2='0.98', EG2='0.91', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='6.55e-08', ts2='3.01', photon_index='2.52' WHERE bin_id='1535' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:02:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 264092: <4FGL_J1200.7+2008_daily_bin1535> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1535 180.187 20.1354 637200001 637459201 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 :                                   670.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            725 sec.

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

