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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1025
RA = 180.187, Dec = 20.1354
tmin = 505008001, tmax = 505267201
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='262045', job_status='RUN', time_executed='2021-09-04 20:46:38.265879', time_epoch_executed='1630813598.27' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262045

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262045/ft1_4FGL_J1200.7+2008_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262045/ft2_4FGL_J1200.7+2008_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262045/ft1_4FGL_J1200.7+2008_daily_bin1025.fits outfile=/scratch/kocevski/262045/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1025.fits ra=180.187 dec=20.1354 rad=12.0 tmin=505008001.0 tmax=505267201.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.59
user 4.32
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262045/ft1_filtered_4FGL_J1200.7+2008_daily_bin1025.fits" evtable="EVENTS" scfile=/scratch/kocevski/262045/ft2_4FGL_J1200.7+2008_daily_bin1025.fits sctable="SC_DATA" outfile=/scratch/kocevski/262045/ltcube_505008001_505267201_4FGL_J1200.7+2008_daily_bin1025.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/262045/ft2_4FGL_J1200.7+2008_daily_bin1025.fits
.....................!
real 12.42
user 11.99
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262045/ft1_filtered_4FGL_J1200.7+2008_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/262045/ft2_4FGL_J1200.7+2008_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/262045/ltcube_505008001_505267201_4FGL_J1200.7+2008_daily_bin1025.fits outfile=/scratch/kocevski/262045/expmap_505008001_505267201_4FGL_J1200.7+2008_daily_bin1025.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/262045/ltcube_505008001_505267201_4FGL_J1200.7+2008_daily_bin1025.fits
.....................!
real 192.17
user 185.97
sys 5.55

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/262045/ft1_filtered_4FGL_J1200.7+2008_daily_bin1025.fits scfile=/scratch/kocevski/262045/ft2_4FGL_J1200.7+2008_daily_bin1025.fits outfile=/scratch/kocevski/262045/cmap_505008001_505267201_4FGL_J1200.7+2008_daily_bin1025.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=180.187 yref=20.1354 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262045/ft1_filtered_4FGL_J1200.7+2008_daily_bin1025.fits scfile=/scratch/kocevski/262045/ft2_4FGL_J1200.7+2008_daily_bin1025.fits outfile=/scratch/kocevski/262045/cmap_HighResolution_505008001_505267201_4FGL_J1200.7+2008_daily_bin1025.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7519       1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.340       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .52094       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.007       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1322       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.656       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10683E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    17.029       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0801       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5263       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5987       1.0000         .10000E-03   10000.    
    20 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.5824       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.520       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10050E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4010       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .62019       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=   6247.908     FROM MIGRAD    STATUS=CONVERGED   1100 CALLS     3154 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6478        .16573E-02** at limit **
   2  norm          .10000E-03    8.3510        .18142E-02** at limit **
   3  Prefactor     9.7531        10.899        .12832E-03   -.11677E-03
   4  Prefactor     40.312        32.409        .31555E-03    .10066E-03
   5  Prefactor     .51770        67.914        .45758E-02   -.20189E-03
   6  Prefactor     .10000E-03    7.1572        .18142E-02** at limit **
   7  Prefactor     15.008        10.222        .10339E-03    .30129E-04
   8  Prefactor     2.1324        1.7716        .92629E-04   -.39950E-03
   9  Prefactor     .10000E-03    6.0524        .18142E-02** at limit **
  10  norm          10.656        2.2047        .50826E-04    .11855E-04
  11  Prefactor     .10000E-03    18.077        .18142E-02** at limit **
  12  Prefactor     .10000E-03    1.9947        .10827E-02** at limit **
  13  Prefactor     .10000E-03    27.651        .18142E-02** at limit **
  14  Prefactor     .10000E-03    1.5608        .95355E-03** at limit **
  15  Prefactor     .10000E-03    4.2906        .22550E-02** at limit **
  16  norm          17.030        5.1082        .88922E-04    .66993E-04
  17  Prefactor     4.0800        2.7103        .98515E-04    .18533E-03
  18  Prefactor     1.5261        2.3699        .14206E-03   -.12438E-02
  19  Prefactor     3.5996        4.3841        .17626E-03    .36249E-04
  20  norm          .10000E-03    1.2938        .66747E-03** at limit **
  21  norm          4.5830        3.9893        .14140E-03    .11775E-03
  22  Prefactor     17.513        13.312        .95687E-04   -.25060E-03
  23  Prefactor     .10000E-03    3.2038        .13811E-02** at limit **
  24  Prefactor     .10005E-03    47.607        .11836    ** at limit **
  25  Normalizat    1.4007        .23505        .23785E-03    .15710E-03
  26  Prefactor     .62030        .22373        .33445E-03    .54795E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.75307
  Prefactor  = 40.3117
  Prefactor  = 0.517701
  Prefactor  = 0.0001
  Prefactor  = 15.0079
  Prefactor  = 2.13239
  Prefactor  = 0.0001
  norm       = 10.6565
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 17.0296
  Prefactor  = 4.08003
  Prefactor  = 1.52613
  Prefactor  = 3.59958
  norm       = 0.000100004
  norm       = 4.58295
  Prefactor  = 17.5126
  Prefactor  = 0.0001
  Prefactor  = 0.000100051
  Normalizat = 1.40071
  Prefactor  = 0.620302
 **********
 **   18 **HESSE 
 **********

 FCN=   6247.908     FROM HESSE     STATUS=OK           442 CALLS     3596 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6489        .33145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.3531        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.7531        10.898        .51329E-05   -1.5083    
   4  Prefactor     40.312        32.406        .12622E-04   -1.4437    
   5  Prefactor     .51770        68.831        .18303E-03   -1.5564    
   6  Prefactor     .10000E-03    7.1576        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.008        10.221        .41356E-05   -1.4933    
   8  Prefactor     2.1324        1.7715        .37052E-05   -1.5416    
   9  Prefactor     .10000E-03    6.0534        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.656        2.2045        .20330E-05   -1.5055    
  11  Prefactor     .10000E-03    18.084        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.9951        .21654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.651        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.5612        .19071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.3059        .45101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.030        5.1080        .17784E-04   -1.4882    
  17  Prefactor     4.0800        2.7103        .39406E-05   -1.5304    
  18  Prefactor     1.5261        2.3695        .56824E-05   -1.5461    
  19  Prefactor     3.5996        4.3836        .70504E-05   -1.5328    
  20  norm          .10000E-03    1.3253        .26699E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.5830        3.9889        .28281E-04   -1.5280    
  22  Prefactor     17.513        13.300        .19137E-04   -1.4871    
  23  Prefactor     .10000E-03    3.2039        .27622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10005E-03    45.165        .12214       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4007        .23503        .47569E-04   -.80608    
  26  Prefactor     .62030        .22386        .13378E-04   -1.0674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18613e-09
Minuit parameter uncertainties:
  1  8.79643e-07
  2  1.28128e-06
  3  10.9003
  4  32.4201
  5  11.9518
  6  8.22174e-07
  7  10.2219
  8  1.77158
  9  2.21949e-05
  10  2.20448
  11  0.000136646
  12  6.00723e-06
  13  1.94185e-05
  14  8.33386e-06
  15  0.000220097
  16  5.10817
  17  2.71034
  18  2.36968
  19  4.38402
  20  0.000144914
  21  3.98916
  22  13.3018
  23  1.40735e-06
  24  0.00303419
  25  0.235213
  26  0.224181
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  6.203e-01  2.242e-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.401e+00  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 7.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/262045/likelihoodResults_505008001_505267201_4FGL_J1200.7+2008_daily_bin1025.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6247.91004058
delta logL = -0.002374147095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6247.90766647
delta logL = -3.81833160645e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5095       1.0000          .0000       10.000    
     3 'Normalizat'    1.4007       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62032       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6247.908     FROM MIGRAD    STATUS=FAILED        87 CALLS      242 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10092E-03    68.024        .10879E-02** at limit **
   2  Index         2.4448        6.1976        .50000        .34791E-04
   3  Normalizat    1.4007        .28425E-01    .23785E-03    .49204E-04
   4  Prefactor     .62030        .27824E-01    .33445E-03    .36643E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6247.908     FROM SIMPLEX   STATUS=UNCHANGED    128 CALLS      370 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10092E-03    68.024        .22329E-03** at limit **
   2  Index         2.4448        6.1976        .26774E-03    .34791E-04
   3  Normalizat    1.4007        .28425E-01    .45716E-05    .49204E-04
   4  Prefactor     .62030        .27824E-01    .55419E-05    .36643E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6247.908     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      411 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    356.63        .21758E-03** at limit **
   2  Index         2.2552        7.8591        .50000        .61118E-07
   3  Normalizat    1.4007        .85808E-01    .47569E-04   -.30080E-03
   4  Prefactor     .62030        .83953E-01    .13378E-04   -.20786E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25521
  Normalizat = 1.40071
  Prefactor  = 0.620303
 **********
 **   18 **HESSE 
 **********

 FCN=   6247.908     FROM HESSE     STATUS=OK            29 CALLS      440 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4957        .43517E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2552        5.0639        .50000       -.58112    
   3  Normalizat    1.4007        .22749        .95139E-05   -.80608    
   4  Prefactor     .62030        .22256        .26756E-05   -1.0674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.07026e-11
Minuit parameter uncertainties:
  1  1.57853e-06
  2  86.92
  3  0.227654
  4  0.222877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262045': 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) = 6247.90766495
delta logL = 1.48223261931e-06

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.579e-06  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.255e+00  8.692e+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:  6.203e-01  2.229e-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.401e+00  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.187 20.135

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/262045/cmap_HighResolution_505008001_505267201_4FGL_J1200.7+2008_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.74e-03', job_status='DONE', photon_flux_upper_limit='7.37e-08', time_completed='2021-09-04 21:00:28.262529', job_id='262045', GAL2='0.62', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1630814428.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='1.48e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1025' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:00:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 262045: <4FGL_J1200.7+2008_daily_bin1025> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1025 180.187 20.1354 505008001 505267201 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 :                             312.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            907 sec.

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

