/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 8 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 = 7559
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1200.7+2008_daily_bin351
RA = 180.187, Dec = 20.1354
tmin = 330307201, tmax = 330566401
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='257340', job_status='RUN', time_executed='2021-09-04 20:31:26.117038', time_epoch_executed='1630812686.12' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='351'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257340

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257340/ft1_4FGL_J1200.7+2008_daily_bin351.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257340/ft2_4FGL_J1200.7+2008_daily_bin351.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257340/ft1_4FGL_J1200.7+2008_daily_bin351.fits outfile=/scratch/kocevski/257340/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin351.fits ra=180.187 dec=20.1354 rad=12.0 tmin=330307201.0 tmax=330566401.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.82
user 3.58
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/257340/ft1_filtered_4FGL_J1200.7+2008_daily_bin351.fits" evtable="EVENTS" scfile=/scratch/kocevski/257340/ft2_4FGL_J1200.7+2008_daily_bin351.fits sctable="SC_DATA" outfile=/scratch/kocevski/257340/ltcube_330307201_330566401_4FGL_J1200.7+2008_daily_bin351.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/257340/ft2_4FGL_J1200.7+2008_daily_bin351.fits
.....................!
real 11.76
user 11.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257340/ft1_filtered_4FGL_J1200.7+2008_daily_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/257340/ft2_4FGL_J1200.7+2008_daily_bin351.fits sctable="SC_DATA" expcube=/scratch/kocevski/257340/ltcube_330307201_330566401_4FGL_J1200.7+2008_daily_bin351.fits outfile=/scratch/kocevski/257340/expmap_330307201_330566401_4FGL_J1200.7+2008_daily_bin351.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/257340/ltcube_330307201_330566401_4FGL_J1200.7+2008_daily_bin351.fits
.....................!
real 190.09
user 185.07
sys 4.65

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/257340/ft1_filtered_4FGL_J1200.7+2008_daily_bin351.fits scfile=/scratch/kocevski/257340/ft2_4FGL_J1200.7+2008_daily_bin351.fits outfile=/scratch/kocevski/257340/cmap_330307201_330566401_4FGL_J1200.7+2008_daily_bin351.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/257340/ft1_filtered_4FGL_J1200.7+2008_daily_bin351.fits scfile=/scratch/kocevski/257340/ft2_4FGL_J1200.7+2008_daily_bin351.fits outfile=/scratch/kocevski/257340/cmap_HighResolution_330307201_330566401_4FGL_J1200.7+2008_daily_bin351.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/257340/ft1_filtered_4FGL_J1200.7+2008_daily_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/257340/ft2_4FGL_J1200.7+2008_daily_bin351.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/257340/Model_4FGL_J1200.7+2008_daily_bin351.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/257340/ft1_filtered_4FGL_J1200.7+2008_daily_bin351.fits.....................!
real 59.15
user 57.80
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9303       1.0000         .10000E-03   10000.    
     2 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.923       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0345       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5898       1.0000         .10000E-03   10000.    
    10 'norm      '    2.6796       1.0000         .10000E-03   10000.    
    11 'Prefactor '    84.648       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9414       1.0000         .10000E-03   10000.    
    13 'Prefactor '    85.218       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4249       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .76279E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    5.9424       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19584E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1539       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .78168       1.0000         .10000E-03   10000.    
    21 'norm      '    6.6788       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.444       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.5745       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .16078E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3118       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .50227       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=   6256.086     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3580 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9349        8.4600        .36033E-05   -.28417E-03
   2  norm          .10000E-03    5.3546       -.26569E-07** at limit **
   3  Prefactor     .10000E-03    8.2215       -.57476E-06** at limit **
   4  Prefactor     .10000E-03    15.837        .19840E-06** at limit **
   5  Prefactor     28.931        20.833       -.36751E-05    .25750E-05
   6  Prefactor     .10000E-03    8.6124        .36867E-06** at limit **
   7  Prefactor     4.0411        11.107       -.75688E-05   -.14948E-03
   8  Prefactor     .10000E-03    .61013       -.10641E-07** at limit **
   9  Prefactor     6.5926        7.2537        .21068E-05    .42236E-04
  10  norm          2.6802        1.3688       -.81478E-07   -.96928E-04
  11  Prefactor     84.666        29.677       -.42910E-05   -.49717E-04
  12  Prefactor     2.9411        4.6779       -.18016E-06   -.51699E-03
  13  Prefactor     85.206        91.157       -.11919E-04   -.12750E-04
  14  Prefactor     8.4204        4.5377        .22699E-06   -.38423E-03
  15  Prefactor     .10002E-03    2.0499        .12978E-06** at limit **
  16  norm          5.9366        3.7292       -.12584E-06   -.13952E-04
  17  Prefactor     .10000E-03    2.0980       -.88468E-07** at limit **
  18  Prefactor     5.1534        2.5279       -.12270E-06    .27281E-04
  19  Prefactor     .10000E-03    2.2437       -.40608E-07** at limit **
  20  norm          .78165        .32583       -.98199E-07   -.99304E-03
  21  norm          6.6793        4.6930        .78340E-06   -.47313E-04
  22  Prefactor     21.419        14.364       -.49740E-05   -.74990E-03
  23  Prefactor     8.5743        8.0523       -.26586E-06    .42624E-04
  24  Prefactor     .10107E-03    31.079        .49410E-05** at limit **
  25  Normalizat    1.3115        .19349        .17100E-05   -.32013E-03
  26  Prefactor     .50232        .17552        .24744E-05   -.18577E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.93486
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.9308
  Prefactor  = 0.0001
  Prefactor  = 4.04111
  Prefactor  = 0.0001
  Prefactor  = 6.59263
  norm       = 2.68017
  Prefactor  = 84.6664
  Prefactor  = 2.94106
  Prefactor  = 85.2062
  Prefactor  = 8.42044
  Prefactor  = 0.000100016
  norm       = 5.93663
  Prefactor  = 0.0001
  Prefactor  = 5.15336
  Prefactor  = 0.0001
  norm       = 0.781653
  norm       = 6.67927
  Prefactor  = 21.4191
  Prefactor  = 8.57434
  Prefactor  = 0.000101071
  Normalizat = 1.31148
  Prefactor  = 0.502322
 **********
 **   18 **HESSE 
 **********

 FCN=   6256.086     FROM HESSE     STATUS=OK           472 CALLS     4052 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9349        8.3851        .23730E-03   -1.5365    
   2  norm          .10000E-03    5.3790        .17873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.3014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.931        20.887        .74496E-04   -1.4632    
   6  Prefactor     .10000E-03    8.6382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0411        11.062        .20076E-03   -1.5306    
   8  Prefactor     .10000E-03    .62186        .60295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.5926        7.2518        .15633E-03   -1.5194    
  10  norm          2.6802        1.3685        .62916E-04   -1.5381    
  11  Prefactor     84.666        29.580        .43662E-04   -1.3865    
  12  Prefactor     2.9411        4.6383        .19437E-03   -1.5365    
  13  Prefactor     85.206        90.900        .43517E-04   -1.3859    
  14  Prefactor     8.4204        4.1586        .10269E-03   -1.5128    
  15  Prefactor     .10002E-03    50.812        .19538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.9366        3.4592        .10625E-03   -1.5221    
  17  Prefactor     .10000E-03    4.5064        .20485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.1534        2.5252        .82779E-04   -1.5254    
  19  Prefactor     .10000E-03    2.2481        .11566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .78165        .32278        .27047E-04   -1.5531    
  21  norm          6.6793        4.6888        .13749E-03   -1.5191    
  22  Prefactor     21.419        15.016        .86495E-04   -1.4782    
  23  Prefactor     8.5743        8.0540        .13689E-03   -1.5122    
  24  Prefactor     .10107E-03    35.107        .11387       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3115        .22207        .23836E-03   -.83224    
  26  Prefactor     .50232        .19651        .34944E-03   -1.1187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18329e-09
Minuit parameter uncertainties:
  1  8.38847
  2  6.42348e-06
  3  7.94847e-05
  4  1.67891e-05
  5  20.8926
  6  4.21564e-07
  7  11.0674
  8  1.42257e-06
  9  7.25277
  10  1.36856
  11  29.5854
  12  4.63884
  13  91.0486
  14  4.15876
  15  0.00182504
  16  3.45933
  17  2.11218e-06
  18  2.52528
  19  7.72184e-06
  20  0.322781
  21  4.68906
  22  15.0188
  23  8.05497
  24  0.0122686
  25  0.222236
  26  0.196776
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  2.941e+00  4.639e+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.023e-01  1.968e-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.311e+00  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.53
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/257340/likelihoodResults_330307201_330566401_4FGL_J1200.7+2008_daily_bin351.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) = 6255.90972995
delta logL = 0.176763755027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6255.90431251
delta logL = 0.182181198202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8688       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2647       1.0000          .0000       10.000    
     3 'Normalizat'    1.2848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51887       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=   6255.904     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      247 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8688        42.328        .76175E-02    .23516E-02
   2  Index         3.2647        3.5988        .21563        .20120E-03
   3  Normalizat    1.2848        .44379E-01    .54359E-01    .47243E-05
   4  Prefactor     .51886        .41959E-01    .77690E-01    .29809E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.8688
  Index      = 3.26471
  Normalizat = 1.28484
  Prefactor  = 0.51886
 **********
 **   18 **HESSE 
 **********

 FCN=   6255.904     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8688        4.4199        .11687E-03   -1.5435    
   2  Index         3.2647        1.5395        .78490E-02   -.35443    
   3  Normalizat    1.2848        .21117        .24035E-03   -.84020    
   4  Prefactor     .51886        .19591        .34410E-03   -1.1112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40229e-10
Minuit parameter uncertainties:
  1  4.42067
  2  1.56861
  3  0.21131
  4  0.19617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257340': 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) = 6255.9043125
delta logL = 0.182181201796

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  5.189e-01  1.962e-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.285e+00  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.53
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/257340/cmap_HighResolution_330307201_330566401_4FGL_J1200.7+2008_daily_bin351.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.76e-03', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-09-04 20:44:35.039492', job_id='257340', GAL2='0.52', fit_tolerance='1e-08', EG2='1.28', EG='1.31', time_epoch_completed='1630813475.04', return_code2='0', ts='0.53', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='1.82e-01', ts2='0.91', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='351' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:44:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 257340: <4FGL_J1200.7+2008_daily_bin351> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin351> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:31:08 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:31:10 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:31:10 2021
Terminated at Sat Sep  4 20:44:35 2021
Results reported at Sat Sep  4 20:44:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin351 180.187 20.1354 330307201 330566401 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 :                                   785.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            807 sec.

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

