/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 143 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 = 7439
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1200.7+2008_daily_bin57
RA = 180.187, Dec = 20.1354
tmin = 254102401, tmax = 254361601
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='255919', job_status='RUN', time_executed='2021-09-04 20:28:43.320542', time_epoch_executed='1630812523.32' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='57'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255919

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255919/ft1_4FGL_J1200.7+2008_daily_bin57.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255919/ft2_4FGL_J1200.7+2008_daily_bin57.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255919/ft1_4FGL_J1200.7+2008_daily_bin57.fits outfile=/scratch/kocevski/255919/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin57.fits ra=180.187 dec=20.1354 rad=12.0 tmin=254102401.0 tmax=254361601.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 2.06
user 1.81
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/255919/ft2_4FGL_J1200.7+2008_daily_bin57.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/255919/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin57.fits evtable="EVENTS" outfile="/scratch/kocevski/255919/ft1_filtered_4FGL_J1200.7+2008_daily_bin57.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/255919/ft1_filtered_4FGL_J1200.7+2008_daily_bin57.fits" evtable="EVENTS" scfile=/scratch/kocevski/255919/ft2_4FGL_J1200.7+2008_daily_bin57.fits sctable="SC_DATA" outfile=/scratch/kocevski/255919/ltcube_254102401_254361601_4FGL_J1200.7+2008_daily_bin57.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/255919/ft2_4FGL_J1200.7+2008_daily_bin57.fits
.....................!
real 12.33
user 11.95
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255919/ft1_filtered_4FGL_J1200.7+2008_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/255919/ft2_4FGL_J1200.7+2008_daily_bin57.fits sctable="SC_DATA" expcube=/scratch/kocevski/255919/ltcube_254102401_254361601_4FGL_J1200.7+2008_daily_bin57.fits outfile=/scratch/kocevski/255919/expmap_254102401_254361601_4FGL_J1200.7+2008_daily_bin57.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/255919/ltcube_254102401_254361601_4FGL_J1200.7+2008_daily_bin57.fits
.....................!
real 189.70
user 185.07
sys 4.27

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/255919/ft1_filtered_4FGL_J1200.7+2008_daily_bin57.fits scfile=/scratch/kocevski/255919/ft2_4FGL_J1200.7+2008_daily_bin57.fits outfile=/scratch/kocevski/255919/cmap_254102401_254361601_4FGL_J1200.7+2008_daily_bin57.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255919/ft1_filtered_4FGL_J1200.7+2008_daily_bin57.fits scfile=/scratch/kocevski/255919/ft2_4FGL_J1200.7+2008_daily_bin57.fits outfile=/scratch/kocevski/255919/cmap_HighResolution_254102401_254361601_4FGL_J1200.7+2008_daily_bin57.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/255919/ft1_filtered_4FGL_J1200.7+2008_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/255919/ft2_4FGL_J1200.7+2008_daily_bin57.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255919/Model_4FGL_J1200.7+2008_daily_bin57.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/255919/ft1_filtered_4FGL_J1200.7+2008_daily_bin57.fits.....................!
real 45.26
user 43.44
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8484       1.0000         .10000E-03   10000.    
     2 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2249       1.0000         .10000E-03   10000.    
     6 'Prefactor '    80.049       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2416       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10716E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.6940       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    103.09       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30280E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10586E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6424       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .93949       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.5178       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.3872       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1791       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81805       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=   4470.773     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3174 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8490        7.8342        .22767E-05   -.15402E-03
   2  norm          .10000E-03    4.3806       -.19184E-07** at limit **
   3  Prefactor     .10000E-03    4.4409        .62279E-08** at limit **
   4  Prefactor     .10000E-03    7.7577        .65897E-07** at limit **
   5  Prefactor     7.2246        14.401       -.15707E-06   -.13902E-03
   6  Prefactor     80.143        34.191       -.60143E-06   -.22315E-03
   7  Prefactor     6.2505        10.311        .21591E-06    .32191E-04
   8  Prefactor     .10000E-03    2.3149        .70988E-06** at limit **
   9  Prefactor     .10000E-03    9.2874       -.75498E-06** at limit **
  10  norm          3.6946        1.7657        .10388E-07   -.14042E-03
  11  Prefactor     .10000E-03    8.2736       -.60549E-06** at limit **
  12  Prefactor     .10000E-03    2.6591        .16203E-06** at limit **
  13  Prefactor     103.03        95.192       -.65667E-06   -.10423E-03
  14  Prefactor     .69213E-01    1.7669       -.15759E-06    .17020E-03
  15  Prefactor     .10000E-03    3.0708        .44798E-06** at limit **
  16  norm          2.6434        2.9876        .57740E-06   -.14363E-03
  17  Prefactor     .93879        2.4831        .15484E-06    .90963E-04
  18  Prefactor     7.5181        3.3335       -.70326E-07   -.75515E-04
  19  Prefactor     .10000E-03    3.5297        .78139E-07** at limit **
  20  norm          .10000E-03    .91982E-01    .63553E-07** at limit **
  21  norm          3.3878        3.8857        .93045E-07   -.71270E-05
  22  Prefactor     .10000E-03    14.503        .21506E-06** at limit **
  23  Prefactor     .10000E-03    6.4869       -.41055E-08** at limit **
  24  Prefactor     .10000E-03    9.5494        .18724E-07** at limit **
  25  Normalizat    1.1788        .21200        .28617E-06   -.23332E-03
  26  Prefactor     .81806        .20487       -.12814E-05   -.10810E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.84899
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.22461
  Prefactor  = 80.1434
  Prefactor  = 6.25052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.69457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 103.031
  Prefactor  = 0.0692126
  Prefactor  = 0.0001
  norm       = 2.64335
  Prefactor  = 0.938793
  Prefactor  = 7.51814
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.3878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.17882
  Prefactor  = 0.818062
 **********
 **   18 **HESSE 
 **********

 FCN=   4470.773     FROM HESSE     STATUS=OK           460 CALLS     3634 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8490        7.8343        .83032E-03   -1.5224    
   2  norm          .10000E-03    4.3904        .13667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4511        .13760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.7587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.2246        14.386        .14923E-03   -1.5170    
   6  Prefactor     80.143        32.977        .44888E-04   -1.3915    
   7  Prefactor     6.2505        10.295        .16068E-03   -1.5208    
   8  Prefactor     .10000E-03    4.1768        .18380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.3014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6946        1.7635        .58393E-04   -1.5324    
  11  Prefactor     .10000E-03    8.2705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.7012        .10635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     103.03        95.154        .19801E-03   -1.3674    
  14  Prefactor     .69213E-01    28.816        .16006E-02   -1.5655    
  15  Prefactor     .10000E-03    5.7986        .21455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6434        2.9183        .53691E-03   -1.5383    
  17  Prefactor     .93879        2.0925        .15028E-02   -1.5514    
  18  Prefactor     7.5181        3.3170        .76551E-04   -1.5160    
  19  Prefactor     .10000E-03    3.5458        .12264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .11205        .39342E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.3878        3.8758        .13663E-03   -1.5340    
  22  Prefactor     .10000E-03    14.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.5096        .16631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.5625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1788        .24870        .23090E-03   -.87260    
  26  Prefactor     .81806        .23868        .27632E-03   -.99066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.47867e-10
Minuit parameter uncertainties:
  1  7.83563
  2  5.04942e-06
  3  3.08233e-06
  4  1.5103e-05
  5  14.3929
  6  32.985
  7  10.2977
  8  7.68716e-05
  9  1.2889e-05
  10  1.76353
  11  2.03386e-05
  12  4.90566e-08
  13  95.2956
  14  2.82379
  15  3.59533e-05
  16  2.91847
  17  2.09267
  18  3.31705
  19  3.81089e-07
  20  2.0179e-07
  21  3.87611
  22  2.73525e-05
  23  1.22614e-05
  24  3.26945e-06
  25  0.248946
  26  0.238987
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  4.906e-08  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:  8.181e-01  2.390e-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.179e+00  2.489e-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: 8.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255919/likelihoodResults_254102401_254361601_4FGL_J1200.7+2008_daily_bin57.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) = 4470.77468521
delta logL = -0.00176032859326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4470.77292496
delta logL = -8.26230461826e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5249       1.0000          .0000       10.000    
     3 'Normalizat'    1.1788       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81810       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=   4470.773     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      236 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10034E-03    115.02        .10642E-02** at limit **
   2  Index         2.5709        5.1925        .50000       -.12999E-04
   3  Normalizat    1.1788        .34600E-01    .23089E-03   -.74851E-04
   4  Prefactor     .81806        .35341E-01    .27632E-03   -.37029E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100336
  Index      = 2.57086
  Normalizat = 1.17882
  Prefactor  = 0.818061
 **********
 **   18 **HESSE 
 **********

 FCN=   4470.773     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .90E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10034E-03    464.47        .21283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5709        8.0114        .50000       -.50731    
   3  Normalizat    1.1788        .93209E-01    .46179E-04   -.87260    
   4  Prefactor     .81806        .94828E-01    .11053E-04   -.99066    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.04206e-08
Minuit parameter uncertainties:
  1  0.0251986
  2  1497.81
  3  0.0932217
  4  0.0948468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255919': 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) = 4470.77292477
delta logL = 1.04639184428e-07

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.003e-04  2.520e-02  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.571e+00  1.498e+03  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:  8.181e-01  9.485e-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:  1.179e+00  9.322e-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/255919/cmap_HighResolution_254102401_254361601_4FGL_J1200.7+2008_daily_bin57.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.63e-03', job_status='DONE', photon_flux_upper_limit='8.52e-08', time_completed='2021-09-04 20:39:21.095015', job_id='255919', GAL2='0.82', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630813161.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='57' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:39:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 255919: <4FGL_J1200.7+2008_daily_bin57> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin57> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 20:26:10 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:26:11 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:26:11 2021
Terminated at Sat Sep  4 20:39:21 2021
Results reported at Sat Sep  4 20:39:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin57 180.187 20.1354 254102401 254361601 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 :                                   636.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            791 sec.

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

