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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1354
RA = 180.187, Dec = 20.1354
tmin = 590284801, tmax = 590544001
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='263792', job_status='RUN', time_executed='2021-09-04 20:53:05.931143', time_epoch_executed='1630813985.93' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1354'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263792

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263792/ft1_4FGL_J1200.7+2008_daily_bin1354.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263792/ft2_4FGL_J1200.7+2008_daily_bin1354.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263792/ft1_4FGL_J1200.7+2008_daily_bin1354.fits outfile=/scratch/kocevski/263792/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1354.fits ra=180.187 dec=20.1354 rad=12.0 tmin=590284801.0 tmax=590544001.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.66
user 3.43
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263792/ft1_filtered_4FGL_J1200.7+2008_daily_bin1354.fits" evtable="EVENTS" scfile=/scratch/kocevski/263792/ft2_4FGL_J1200.7+2008_daily_bin1354.fits sctable="SC_DATA" outfile=/scratch/kocevski/263792/ltcube_590284801_590544001_4FGL_J1200.7+2008_daily_bin1354.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/263792/ft2_4FGL_J1200.7+2008_daily_bin1354.fits
.....................!
real 12.28
user 11.83
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263792/ft1_filtered_4FGL_J1200.7+2008_daily_bin1354.fits evtable="EVENTS" scfile=/scratch/kocevski/263792/ft2_4FGL_J1200.7+2008_daily_bin1354.fits sctable="SC_DATA" expcube=/scratch/kocevski/263792/ltcube_590284801_590544001_4FGL_J1200.7+2008_daily_bin1354.fits outfile=/scratch/kocevski/263792/expmap_590284801_590544001_4FGL_J1200.7+2008_daily_bin1354.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/263792/ltcube_590284801_590544001_4FGL_J1200.7+2008_daily_bin1354.fits
.....................!
real 192.11
user 186.82
sys 4.45

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/263792/ft1_filtered_4FGL_J1200.7+2008_daily_bin1354.fits scfile=/scratch/kocevski/263792/ft2_4FGL_J1200.7+2008_daily_bin1354.fits outfile=/scratch/kocevski/263792/cmap_590284801_590544001_4FGL_J1200.7+2008_daily_bin1354.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263792/ft1_filtered_4FGL_J1200.7+2008_daily_bin1354.fits scfile=/scratch/kocevski/263792/ft2_4FGL_J1200.7+2008_daily_bin1354.fits outfile=/scratch/kocevski/263792/cmap_HighResolution_590284801_590544001_4FGL_J1200.7+2008_daily_bin1354.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/263792/ft1_filtered_4FGL_J1200.7+2008_daily_bin1354.fits evtable="EVENTS" scfile=/scratch/kocevski/263792/ft2_4FGL_J1200.7+2008_daily_bin1354.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263792/Model_4FGL_J1200.7+2008_daily_bin1354.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/263792/ft1_filtered_4FGL_J1200.7+2008_daily_bin1354.fits.....................!
real 57.68
user 56.25
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5992       1.0000         .10000E-03   10000.    
     2 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1912       1.0000         .10000E-03   10000.    
     4 'Prefactor '    77.432       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11735E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7159       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .17653E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3127       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0964       1.0000         .10000E-03   10000.    
    16 'norm      '    10.420       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3837       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .34573       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    36.260       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .75714       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4532       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=   6045.382     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     3256 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5993        7.0064       -.39996E-06   -.40623E-04
   2  norm          .10000E-03    6.6936        .75974E-07** at limit **
   3  Prefactor     5.1922        11.113        .53535E-05   -.43244E-03
   4  Prefactor     77.426        56.182       -.65143E-06   -.11492E-03
   5  Prefactor     .10002E-03    35.790        .67816E-05** at limit **
   6  Prefactor     .10001E-03    62.836       -.55834E-05** at limit **
   7  Prefactor     .10000E-03    4.5125        .18271E-06** at limit **
   8  Prefactor     1.7178        2.1404        .73449E-07    .52583E-04
   9  Prefactor     .10000E-03    4.0743        .11583E-07** at limit **
  10  norm          .10004E-03    .45325       -.14338E-06** at limit **
  11  Prefactor     .10013E-03    9.2008        .15005E-05** at limit **
  12  Prefactor     .10000E-03    1.4650        .40291E-07** at limit **
  13  Prefactor     .10001E-03    28.260       -.35429E-05** at limit **
  14  Prefactor     4.3116        2.9755       -.15088E-06   -.23022E-03
  15  Prefactor     1.0976        3.2027        .97831E-06   -.18197E-03
  16  norm          10.419        4.5679        .17932E-06   -.39372E-04
  17  Prefactor     6.3830        3.4766        .71525E-07   -.11480E-04
  18  Prefactor     .10000E-03    1.2780       -.20639E-06** at limit **
  19  Prefactor     .10000E-03    4.9043        .10128E-05** at limit **
  20  norm          .10000E-03    .56943E-01    .14310E-07** at limit **
  21  norm          .34758        2.9057       -.15363E-06   -.81150E-04
  22  Prefactor     .10000E-03    6.6125        .14075E-06** at limit **
  23  Prefactor     .10000E-03    2.6514        .14897E-07** at limit **
  24  Prefactor     36.256        32.283       -.35641E-06   -.12853E-03
  25  Normalizat    .75712        .19475       -.10810E-05   -.10503E-03
  26  Prefactor     1.4532        .19741       -.22032E-06   -.17313E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.5993
  norm       = 0.0001
  Prefactor  = 5.19224
  Prefactor  = 77.4261
  Prefactor  = 0.000100022
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 1.71775
  Prefactor  = 0.0001
  norm       = 0.00010004
  Prefactor  = 0.000100131
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 4.31162
  Prefactor  = 1.09756
  norm       = 10.4188
  Prefactor  = 6.38296
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.347581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.2557
  Normalizat = 0.757121
  Prefactor  = 1.45315
 **********
 **   18 **HESSE 
 **********

 FCN=   6045.382     FROM HESSE     STATUS=OK           468 CALLS     3724 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5993        7.0046        .13670E-03   -1.5121    
   2  norm          .10000E-03    6.7496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1922        11.499        .88218E-03   -1.5252    
   4  Prefactor     77.426        56.316        .45635E-04   -1.3946    
   5  Prefactor     .10002E-03    39.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    66.461        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.5267        .16134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7178        2.1185        .11926E-03   -1.5446    
   9  Prefactor     .10000E-03    4.0800        .15327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10004E-03    .72312        .19096E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10013E-03    57.770        .44959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.4740        .91861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    29.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.3116        2.9149        .98470E-04   -1.5293    
  15  Prefactor     1.0976        3.1451        .20841E-03   -1.5498    
  16  norm          10.419        4.5334        .48241E-03   -1.5062    
  17  Prefactor     6.3830        3.4747        .47480E-03   -1.5203    
  18  Prefactor     .10000E-03    4.8618        .16372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.621        .30469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .61157E-01    .36092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .34758        14.026        .23226E-02   -1.5590    
  22  Prefactor     .10000E-03    6.6688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.6520        .12364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     36.256        32.363        .66554E-04   -1.4503    
  25  Normalizat    .75712        .22772        .30074E-03   -1.0168    
  26  Prefactor     1.4532        .23526        .23921E-03   -.78860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86737e-08
Minuit parameter uncertainties:
  1  7.00522
  2  2.93069e-06
  3  11.5041
  4  56.3552
  5  0.00185994
  6  0.00191793
  7  1.97975e-05
  8  2.11863
  9  8.4171e-07
  10  0.000338284
  11  0.00550529
  12  1.88656e-06
  13  0.00100934
  14  2.915
  15  3.1456
  16  4.53358
  17  3.47477
  18  0.000144774
  19  0.000448949
  20  3.06755e-08
  21  4.4164
  22  3.67838e-05
  23  1.51833e-06
  24  32.3785
  25  0.228011
  26  0.23544
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.887e-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:  1.453e+00  2.354e-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:  7.571e-01  2.280e-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: 6.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263792/likelihoodResults_590284801_590544001_4FGL_J1200.7+2008_daily_bin1354.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) = 6045.38521969
delta logL = -0.00318070693265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6045.38203892
delta logL = 5.83395376452e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5091       1.0000          .0000       10.000    
     3 'Normalizat'    .75714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4532       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=   6045.382     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      255 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.464        .92346E-02** at limit **
   2  Index         2.1210        7.0401        .50000       -.67462E-07
   3  Normalizat    .75712        .12957E-01    .30073E-03    .85284E-04
   4  Prefactor     1.4532        .13841E-01    .23921E-03    .12111E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12102
  Normalizat = 0.757121
  Prefactor  = 1.45315
 **********
 **   18 **HESSE 
 **********

 FCN=   6045.382     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    152.01        .96807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1210        5.4792        .50000       -.61358    
   3  Normalizat    .75712        .50858E-01    .12029E-04   -1.0168    
   4  Prefactor     1.4532        .54329E-01    .47842E-04   -.78860    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.5505e-10
Minuit parameter uncertainties:
  1  3.36846e-05
  2  795.353
  3  0.0508613
  4  0.0543315
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263792': 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): 102
logL (Free Index) = 6045.3820357
delta logL = 3.28068108502e-06

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  3.368e-05  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.121e+00  7.954e+02  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:  1.453e+00  5.433e-02  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:  7.571e-01  5.086e-02  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/263792/cmap_HighResolution_590284801_590544001_4FGL_J1200.7+2008_daily_bin1354.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-03', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-09-04 21:06:47.791928', job_id='263792', GAL2='1.45', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630814807.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.45', dlogl='3.28e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1354' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:06:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 263792: <4FGL_J1200.7+2008_daily_bin1354> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1354> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 20:50:27 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:50:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 20:50:29 2021
Terminated at Sat Sep  4 21:06:48 2021
Results reported at Sat Sep  4 21:06:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1354 180.187 20.1354 590284801 590544001 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 :                                   768.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

