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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1098
RA = 180.187, Dec = 20.1354
tmin = 523929601, tmax = 524188801
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='262167', job_status='RUN', time_executed='2021-09-04 20:47:51.905538', time_epoch_executed='1630813671.91' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1098'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262167

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262167/ft1_4FGL_J1200.7+2008_daily_bin1098.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262167/ft2_4FGL_J1200.7+2008_daily_bin1098.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262167/ft1_4FGL_J1200.7+2008_daily_bin1098.fits outfile=/scratch/kocevski/262167/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1098.fits ra=180.187 dec=20.1354 rad=12.0 tmin=523929601.0 tmax=524188801.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.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262167/ft1_filtered_4FGL_J1200.7+2008_daily_bin1098.fits" evtable="EVENTS" scfile=/scratch/kocevski/262167/ft2_4FGL_J1200.7+2008_daily_bin1098.fits sctable="SC_DATA" outfile=/scratch/kocevski/262167/ltcube_523929601_524188801_4FGL_J1200.7+2008_daily_bin1098.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/262167/ft2_4FGL_J1200.7+2008_daily_bin1098.fits
.....................!
real 12.87
user 12.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262167/ft1_filtered_4FGL_J1200.7+2008_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/262167/ft2_4FGL_J1200.7+2008_daily_bin1098.fits sctable="SC_DATA" expcube=/scratch/kocevski/262167/ltcube_523929601_524188801_4FGL_J1200.7+2008_daily_bin1098.fits outfile=/scratch/kocevski/262167/expmap_523929601_524188801_4FGL_J1200.7+2008_daily_bin1098.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/262167/ltcube_523929601_524188801_4FGL_J1200.7+2008_daily_bin1098.fits
.....................!
real 190.23
user 185.15
sys 3.81

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/262167/ft1_filtered_4FGL_J1200.7+2008_daily_bin1098.fits scfile=/scratch/kocevski/262167/ft2_4FGL_J1200.7+2008_daily_bin1098.fits outfile=/scratch/kocevski/262167/cmap_523929601_524188801_4FGL_J1200.7+2008_daily_bin1098.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262167/ft1_filtered_4FGL_J1200.7+2008_daily_bin1098.fits scfile=/scratch/kocevski/262167/ft2_4FGL_J1200.7+2008_daily_bin1098.fits outfile=/scratch/kocevski/262167/cmap_HighResolution_523929601_524188801_4FGL_J1200.7+2008_daily_bin1098.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262167/ft1_filtered_4FGL_J1200.7+2008_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/262167/ft2_4FGL_J1200.7+2008_daily_bin1098.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262167/Model_4FGL_J1200.7+2008_daily_bin1098.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/262167/ft1_filtered_4FGL_J1200.7+2008_daily_bin1098.fits.....................!
real 56.71
user 54.93
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    7.7930       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1913       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16765E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5006       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0174       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.594       1.0000         .10000E-03   10000.    
    10 'norm      '    6.3270       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2399       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    17.273       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0909       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4415       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .17238       1.0000         .10000E-03   10000.    
    21 'norm      '    5.1479       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.5666       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.312       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3194       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .57833       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=   6024.759     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     2677 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5686       -.98774E-08** at limit **
   2  norm          7.7937        11.317       -.18640E-06   -.49920E-04
   3  Prefactor     .10000E-03    7.2215        .17316E-05** at limit **
   4  Prefactor     5.1786        66.616       -.17409E-04    .55685E-04
   5  Prefactor     .10000E-03    15.374       -.42660E-06** at limit **
   6  Prefactor     .10000E-03    9.8870       -.77440E-06** at limit **
   7  Prefactor     1.4965        16.733       -.93458E-05   -.22700E-03
   8  Prefactor     2.0183        1.4283        .26413E-07    .18359E-03
   9  Prefactor     13.593        10.335       -.20360E-06    .10975E-04
  10  norm          6.3277        1.6465       -.28062E-07    .28859E-03
  11  Prefactor     .10000E-03    5.0334        .10564E-06** at limit **
  12  Prefactor     5.2411        4.0416        .87883E-06   -.11676E-03
  13  Prefactor     .10000E-03    40.620        .53446E-06** at limit **
  14  Prefactor     .10000E-03    .93765       -.20659E-07** at limit **
  15  Prefactor     .10000E-03    1.6395        .91221E-08** at limit **
  16  norm          17.273        5.0333       -.15370E-07    .67540E-04
  17  Prefactor     5.0907        3.5654        .29325E-07   -.15057E-03
  18  Prefactor     3.4414        2.2803        .37724E-07   -.45952E-05
  19  Prefactor     .10000E-03    1.7684        .11940E-06** at limit **
  20  norm          .17226        .23173       -.11047E-06   -.26730E-02
  21  norm          5.1478        3.7593       -.22274E-05    .73173E-03
  22  Prefactor     9.5662        9.1438       -.54008E-06    .23127E-04
  23  Prefactor     .10000E-03    7.2216       -.19753E-05** at limit **
  24  Prefactor     23.309        22.833        .46531E-06   -.27599E-04
  25  Normalizat    1.3194        .18598        .15661E-05    .20743E-03
  26  Prefactor     .57846        .17537        .12390E-05    .16442E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.79368
  Prefactor  = 0.0001
  Prefactor  = 5.17861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.49654
  Prefactor  = 2.01828
  Prefactor  = 13.5935
  norm       = 6.32773
  Prefactor  = 0.0001
  Prefactor  = 5.24115
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.273
  Prefactor  = 5.0907
  Prefactor  = 3.44138
  Prefactor  = 0.0001
  norm       = 0.172263
  norm       = 5.14783
  Prefactor  = 9.56616
  Prefactor  = 0.0001
  Prefactor  = 23.3088
  Normalizat = 1.3194
  Prefactor  = 0.578459
 **********
 **   18 **HESSE 
 **********

 FCN=   6024.759     FROM HESSE     STATUS=OK           466 CALLS     3143 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5780        .12148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.7937        11.363        .14364E-03   -1.5150    
   3  Prefactor     .10000E-03    7.3027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.1786        66.178        .17643E-03   -1.5253    
   5  Prefactor     .10000E-03    15.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    167.91        .45768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4965        18.979        .34956E-03   -1.5463    
   8  Prefactor     2.0183        1.4180        .74886E-04   -1.5424    
   9  Prefactor     13.593        10.339        .10864E-03   -1.4970    
  10  norm          6.3277        1.6427        .48359E-04   -1.5205    
  11  Prefactor     .10000E-03    5.0369        .17007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.2411        4.0383        .12907E-03   -1.5250    
  13  Prefactor     .10000E-03    40.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .94496        .73344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.6765        .96954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.273        5.0569        .81343E-04   -1.4877    
  17  Prefactor     5.0907        3.5773        .10647E-03   -1.5257    
  18  Prefactor     3.4414        2.2780        .90414E-04   -1.5337    
  19  Prefactor     .10000E-03    1.7717        .10080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .17226        .22142        .40436E-03   -1.5625    
  21  norm          5.1478        3.6987        .12242E-03   -1.5254    
  22  Prefactor     9.5662        9.1435        .12956E-03   -1.5089    
  23  Prefactor     .10000E-03    7.2366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     23.309        22.808        .82962E-04   -1.4742    
  25  Normalizat    1.3194        .21582        .22630E-03   -.82989    
  26  Prefactor     .57846        .20256        .32436E-03   -1.0850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.64941e-10
Minuit parameter uncertainties:
  1  2.66599e-06
  2  11.3661
  3  5.93017e-05
  4  37.075
  5  2.23672e-05
  6  0.000517822
  7  10.6628
  8  1.41798
  9  10.3405
  10  1.64269
  11  5.09793e-06
  12  4.03848
  13  5.37361e-05
  14  3.02553e-06
  15  8.73251e-06
  16  5.05703
  17  3.57748
  18  2.27805
  19  6.47438e-06
  20  0.221418
  21  3.69885
  22  9.1448
  23  5.23133e-05
  24  22.8167
  25  0.215965
  26  0.202813
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  5.241e+00  4.038e+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:  5.785e-01  2.028e-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.319e+00  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.15
Ra Dec: 180.187 20.135
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 5.10e-08 +/- 3.93e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.12e-05

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

Saving results to:
/scratch/kocevski/262167/likelihoodResults_523929601_524188801_4FGL_J1200.7+2008_daily_bin1098.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) = 6024.75927082
delta logL = 0.000177060739588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6024.75920753
delta logL = 0.000240348745137

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2821       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5033       1.0000          .0000       10.000    
     3 'Normalizat'    1.3203       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57799       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=   6024.759     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      270 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2876        4.6682        .12993E-03    .10721E-02
   2  Index         2.5044        .73412        .88293E-02    .13935E-03
   3  Normalizat    1.3202        .20687        .22624E-03   -.85749E-04
   4  Prefactor     .57793        .20147        .32449E-03   -.14231E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.28757
  Index      = 2.50444
  Normalizat = 1.3202
  Prefactor  = 0.57793
 **********
 **   18 **HESSE 
 **********

 FCN=   6024.759     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2876        4.5333        .51974E-05   -1.5248    
   2  Index         2.5044        .71226        .35317E-03   -.52257    
   3  Normalizat    1.3202        .20681        .45247E-04   -.82965    
   4  Prefactor     .57793        .20145        .12980E-04   -1.0852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64345e-10
Minuit parameter uncertainties:
  1  4.53358
  2  0.715509
  3  0.206936
  4  0.2017
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262167': 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) = 6024.75920368
delta logL = 0.000244200596171

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  5.288e+00  4.534e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.504e+00  7.155e-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:  5.779e-01  2.017e-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.320e+00  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.12
Ra Dec: 180.187 20.135
Photon Index (Free Index): 2.50 +/- 0.72
Photon Flux (Free Index): 5.04e-08 +/- 4.75e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.16e-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/262167/cmap_HighResolution_523929601_524188801_4FGL_J1200.7+2008_daily_bin1098.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='5.10e-08', energy_flux2='1.46e-05', photon_flux_error='3.93e-08', dlogl='2.44e-04', energy_flux='1.45e-05', photon_flux2='5.04e-08', job_status='DONE', time_completed='2021-09-04 21:01:40.032641', photon_index_error2='0.72', photon_index2='2.50', ts='3.15', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.16e-05', EG='1.32', time_epoch_completed='1630814500.03', return_code='0', job_id='262167', GAL2='0.58', EG2='1.32', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='4.75e-08', ts2='3.12', photon_index='2.52' WHERE bin_id='1098' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:01:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 262167: <4FGL_J1200.7+2008_daily_bin1098> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1098> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:45:31 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:45:34 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:34 2021
Terminated at Sat Sep  4 21:01:40 2021
Results reported at Sat Sep  4 21:01:40 2021

Your job looked like:

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

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

