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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin999
RA = 180.187, Dec = 20.1354
tmin = 498268801, tmax = 498528001
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='262005', job_status='RUN', time_executed='2021-09-04 20:45:29.617066', time_epoch_executed='1630813529.62' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='999'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262005

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262005/ft1_4FGL_J1200.7+2008_daily_bin999.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262005/ft2_4FGL_J1200.7+2008_daily_bin999.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262005/ft1_4FGL_J1200.7+2008_daily_bin999.fits outfile=/scratch/kocevski/262005/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin999.fits ra=180.187 dec=20.1354 rad=12.0 tmin=498268801.0 tmax=498528001.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 4.77
user 4.50
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262005/ft1_filtered_4FGL_J1200.7+2008_daily_bin999.fits" evtable="EVENTS" scfile=/scratch/kocevski/262005/ft2_4FGL_J1200.7+2008_daily_bin999.fits sctable="SC_DATA" outfile=/scratch/kocevski/262005/ltcube_498268801_498528001_4FGL_J1200.7+2008_daily_bin999.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/262005/ft2_4FGL_J1200.7+2008_daily_bin999.fits
.....................!
real 12.01
user 11.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262005/ft1_filtered_4FGL_J1200.7+2008_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/262005/ft2_4FGL_J1200.7+2008_daily_bin999.fits sctable="SC_DATA" expcube=/scratch/kocevski/262005/ltcube_498268801_498528001_4FGL_J1200.7+2008_daily_bin999.fits outfile=/scratch/kocevski/262005/expmap_498268801_498528001_4FGL_J1200.7+2008_daily_bin999.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/262005/ltcube_498268801_498528001_4FGL_J1200.7+2008_daily_bin999.fits
.....................!
real 192.90
user 187.29
sys 4.88

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/262005/ft1_filtered_4FGL_J1200.7+2008_daily_bin999.fits scfile=/scratch/kocevski/262005/ft2_4FGL_J1200.7+2008_daily_bin999.fits outfile=/scratch/kocevski/262005/cmap_498268801_498528001_4FGL_J1200.7+2008_daily_bin999.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.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262005/ft1_filtered_4FGL_J1200.7+2008_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/262005/ft2_4FGL_J1200.7+2008_daily_bin999.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262005/Model_4FGL_J1200.7+2008_daily_bin999.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/262005/ft1_filtered_4FGL_J1200.7+2008_daily_bin999.fits....................!
real 46.27
user 44.89
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.2788       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12310E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3737       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9881       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1920       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16515       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11175E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0217       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30486       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.037       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5661       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7597       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.653       1.0000         .10000E-03   10000.    
    20 'norm      '    .59939       1.0000         .10000E-03   10000.    
    21 'norm      '    9.4433       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .22659E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    38.928       1.0000         .10000E-03   10000.    
    24 'Prefactor '    55.094       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .91837       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99580       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4801.317     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     3420 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9473       -.96421E-07** at limit **
   2  norm          .10000E-03    4.6988       -.20765E-06** at limit **
   3  Prefactor     8.2703        1.2364        .14882E-06    .58784E-03
   4  Prefactor     .10000E-03    86.740        .12922E-04** at limit **
   5  Prefactor     4.3669        1.1401        .13829E-07    .16553E-03
   6  Prefactor     7.9778        1.4284       -.23211E-06    .14010E-02
   7  Prefactor     2.1940        2.2133       -.83366E-06   -.11368E-02
   8  Prefactor     .16358        1.1211       -.75052E-07    .10397E-03
   9  Prefactor     .10000E-03    5.5289       -.72181E-07** at limit **
  10  norm          .10000E-03    .39276        .30300E-08** at limit **
  11  Prefactor     .10000E-03    16.272       -.14333E-06** at limit **
  12  Prefactor     1.0152        3.6582        .31184E-05    .82285E-04
  13  Prefactor     .10000E-03    28.961        .88639E-05** at limit **
  14  Prefactor     .30412        9.5834       -.20175E-04    .14185E-03
  15  Prefactor     .10000E-03    1.2093        .11751E-06** at limit **
  16  norm          14.036        4.3904        .25081E-05    .21912E-03
  17  Prefactor     2.5658        2.2944       -.96484E-06    .81219E-05
  18  Prefactor     2.7592        2.7451       -.67531E-06   -.22440E-04
  19  Prefactor     13.649        1.9889       -.13428E-05    .17518E-02
  20  norm          .59928        .29668        .90018E-07   -.30098E-02
  21  norm          9.4413        5.3385       -.53283E-05   -.13652E-02
  22  Prefactor     .10000E-03    33.344       -.11217E-04** at limit **
  23  Prefactor     38.922        1.2087       -.84308E-07    .15204E-02
  24  Prefactor     54.972        35.738       -.10885E-04    .17290E-03
  25  Normalizat    .91896        .21695        .37643E-05    .50992E-04
  26  Prefactor     .99553        .22830        .30907E-05   -.20417E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.27027
  Prefactor  = 0.000100002
  Prefactor  = 4.36693
  Prefactor  = 7.9778
  Prefactor  = 2.19398
  Prefactor  = 0.163576
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.01523
  Prefactor  = 0.000100001
  Prefactor  = 0.304125
  Prefactor  = 0.0001
  norm       = 14.0357
  Prefactor  = 2.56585
  Prefactor  = 2.75919
  Prefactor  = 13.6494
  norm       = 0.599284
  norm       = 9.44125
  Prefactor  = 0.000100003
  Prefactor  = 38.9221
  Prefactor  = 54.9725
  Normalizat = 0.918959
  Prefactor  = 0.995528
 **********
 **   18 **HESSE 
 **********

 FCN=   4801.317     FROM HESSE     STATUS=OK           522 CALLS     3942 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9068        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.6828        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.2703        11.309        .34833E-02   -1.5133    
   4  Prefactor     .10000E-03    85.981        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3669        11.692        .48147E-02   -1.5290    
   6  Prefactor     7.9778        15.997        .35466E-02   -1.5143    
   7  Prefactor     2.1940        13.778        .69491E-02   -1.5412    
   8  Prefactor     .16358        1.1659        .98174E-02   -1.5627    
   9  Prefactor     .10000E-03    5.4947        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .38544        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.942        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0152        3.8886        .12748E-01   -1.5506    
  13  Prefactor     .10000E-03    29.404        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .30412        2.2414        .55916E-01   -1.5598    
  15  Prefactor     .10000E-03    1.1863        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.036        4.3949        .26727E-02   -1.4959    
  17  Prefactor     2.5658        2.2915        .63707E-02   -1.5388    
  18  Prefactor     2.7592        2.8185        .61256E-02   -1.5376    
  19  Prefactor     13.649        9.4234        .27101E-02   -1.4969    
  20  norm          .59928        .30201        .56648E-02   -1.5553    
  21  norm          9.4413        5.9272        .32603E-02   -1.5093    
  22  Prefactor     .10000E-03    7.2939        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     38.922        16.482        .16060E-02   -1.4459    
  24  Prefactor     54.972        37.409        .13510E-02   -1.4224    
  25  Normalizat    .91896        .20205        .45136E-01   -.95797    
  26  Prefactor     .99553        .20113        .46215E-01   -.92879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08381e-08
Minuit parameter uncertainties:
  1  1.02101e-06
  2  2.93663e-05
  3  11.3118
  4  0.00091536
  5  11.6981
  6  16.0057
  7  10.9994
  8  0.873171
  9  3.15266e-05
  10  3.72037e-06
  11  8.20308e-05
  12  3.88952
  13  0.000333144
  14  1.65108
  15  1.31066e-05
  16  4.39498
  17  2.29161
  18  2.81862
  19  9.4244
  20  0.302008
  21  5.92755
  22  0.00028617
  23  16.4837
  24  37.4247
  25  0.202212
  26  0.201283
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.015e+00  3.890e+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.955e-01  2.013e-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.190e-01  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/262005/likelihoodResults_498268801_498528001_4FGL_J1200.7+2008_daily_bin999.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) = 4801.31388905
delta logL = 0.00321362966042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4801.31347517
delta logL = 0.00362751218017

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92854       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7279       1.0000          .0000       10.000    
     3 'Normalizat'    .91635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99711       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=   4801.313     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      218 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93179        35.667        .12911E-01    .90235E-03
   2  Index         2.7287        1.7819        .50000        .20334E-05
   3  Normalizat    .91622        .18632E-01    .45110E-01    .80154E-05
   4  Prefactor     .99716        .19901E-01    .46231E-01    .56602E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.931785
  Index      = 2.7287
  Normalizat = 0.916215
  Prefactor  = 0.99716
 **********
 **   18 **HESSE 
 **********

 FCN=   4801.313     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .29E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93179        3.6793        .21310E-03   -1.5515    
   2  Index         2.7287        2.5213        .73375E-02   -.47154    
   3  Normalizat    .91622        .21583        .25508E-03   -.95893    
   4  Prefactor     .99716        .22722        .26095E-03   -.92824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90277e-13
Minuit parameter uncertainties:
  1  3.6802
  2  2.68007
  3  0.216031
  4  0.22744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262005': 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) = 4801.31347423
delta logL = 0.00362845086875

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  9.318e-01  3.680e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.729e+00  2.680e+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:  9.972e-01  2.274e-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.162e-01  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/262005/cmap_HighResolution_498268801_498528001_4FGL_J1200.7+2008_daily_bin999.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.23e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-04 20:57:14.689036', job_id='262005', GAL2='1.00', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630814234.69', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.63e-03', ts2='0.10', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='999' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:57:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 262005: <4FGL_J1200.7+2008_daily_bin999> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin999 180.187 20.1354 498268801 498528001 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 :                                   701.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            716 sec.

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

