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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1338
RA = 180.187, Dec = 20.1354
tmin = 586137601, tmax = 586396801
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='263769', job_status='RUN', time_executed='2021-09-04 20:50:43.962905', time_epoch_executed='1630813843.96' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263769

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263769/ft1_4FGL_J1200.7+2008_daily_bin1338.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263769/ft2_4FGL_J1200.7+2008_daily_bin1338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263769/ft1_4FGL_J1200.7+2008_daily_bin1338.fits outfile=/scratch/kocevski/263769/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1338.fits ra=180.187 dec=20.1354 rad=12.0 tmin=586137601.0 tmax=586396801.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.51
user 4.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263769/ft1_filtered_4FGL_J1200.7+2008_daily_bin1338.fits" evtable="EVENTS" scfile=/scratch/kocevski/263769/ft2_4FGL_J1200.7+2008_daily_bin1338.fits sctable="SC_DATA" outfile=/scratch/kocevski/263769/ltcube_586137601_586396801_4FGL_J1200.7+2008_daily_bin1338.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/263769/ft2_4FGL_J1200.7+2008_daily_bin1338.fits
.....................!
real 10.81
user 10.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263769/ft1_filtered_4FGL_J1200.7+2008_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/263769/ft2_4FGL_J1200.7+2008_daily_bin1338.fits sctable="SC_DATA" expcube=/scratch/kocevski/263769/ltcube_586137601_586396801_4FGL_J1200.7+2008_daily_bin1338.fits outfile=/scratch/kocevski/263769/expmap_586137601_586396801_4FGL_J1200.7+2008_daily_bin1338.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/263769/ltcube_586137601_586396801_4FGL_J1200.7+2008_daily_bin1338.fits
.....................!
real 193.10
user 186.54
sys 5.50

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/263769/ft1_filtered_4FGL_J1200.7+2008_daily_bin1338.fits scfile=/scratch/kocevski/263769/ft2_4FGL_J1200.7+2008_daily_bin1338.fits outfile=/scratch/kocevski/263769/cmap_586137601_586396801_4FGL_J1200.7+2008_daily_bin1338.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263769/ft1_filtered_4FGL_J1200.7+2008_daily_bin1338.fits scfile=/scratch/kocevski/263769/ft2_4FGL_J1200.7+2008_daily_bin1338.fits outfile=/scratch/kocevski/263769/cmap_HighResolution_586137601_586396801_4FGL_J1200.7+2008_daily_bin1338.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=180.187 yref=20.1354 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263769/ft1_filtered_4FGL_J1200.7+2008_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/263769/ft2_4FGL_J1200.7+2008_daily_bin1338.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263769/Model_4FGL_J1200.7+2008_daily_bin1338.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/263769/ft1_filtered_4FGL_J1200.7+2008_daily_bin1338.fits.....................!
real 41.25
user 39.87
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9028       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9238       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.799       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.013       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.725       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1403       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.153       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0778       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4338       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3475       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .28654       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6995       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7267       1.0000         .10000E-03   10000.    
    20 'norm      '    .20623       1.0000         .10000E-03   10000.    
    21 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.704       1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.830       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .68994       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1630       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .63029       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=   3837.838     FROM MIGRAD    STATUS=CONVERGED    114 CALLS     2641 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9024        1.0743        .72801E-07    .27192E-02
   2  norm          1.9162        2.8361       -.24386E-05   -.16327E-02
   3  Prefactor     17.795        1.1503       -.18540E-07    .16827E-02
   4  Prefactor     36.000        3.2528       -.45499E-06    .24693E-02
   5  Prefactor     .10000E-03    8.6757        .72376E-06** at limit **
   6  Prefactor     23.757        18.102       -.45455E-05    .10407E-01
   7  Prefactor     2.1321        5.2653       -.41449E-05   -.40117E-02
   8  Prefactor     .10000E-03    1.4700        .13299E-05** at limit **
   9  Prefactor     16.149        1.7799       -.49681E-06    .32587E-03
  10  norm          1.0753        1.6420       -.11318E-05   -.17321E-03
  11  Prefactor     .10000E-03    7.7419        .50377E-05** at limit **
  12  Prefactor     3.4318        4.5409        .58625E-05    .26175E-03
  13  Prefactor     .10001E-03    40.594        .57189E-05** at limit **
  14  Prefactor     1.3469        2.7668       -.14734E-05   -.53976E-04
  15  Prefactor     .10000E-03    1.4482       -.90860E-06** at limit **
  16  norm          .30706        18.361       -.23112E-05   -.12755E-03
  17  Prefactor     5.6866        4.5407        .12096E-05    .18280E-03
  18  Prefactor     .10000E-03    1.1447       -.13512E-06** at limit **
  19  Prefactor     2.7250        5.8506       -.77416E-06   -.48600E-03
  20  norm          .20617        .23058       -.16530E-06   -.32103E-03
  21  norm          .10000E-03    4.8841        .57633E-05** at limit **
  22  Prefactor     17.764        12.530       -.21854E-05   -.98135E-02
  23  Prefactor     24.828        1.0560       -.57008E-07    .99637E-03
  24  Prefactor     .44546        1136.2       -.34091E-04   -.91620E-04
  25  Normalizat    1.1633        .26700       -.42063E-05   -.11146E-03
  26  Prefactor     .63031        .25041        .89469E-06   -.76567E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.90236
  norm       = 1.91623
  Prefactor  = 17.7951
  Prefactor  = 35.9999
  Prefactor  = 0.0001
  Prefactor  = 23.7567
  Prefactor  = 2.13206
  Prefactor  = 0.0001
  Prefactor  = 16.1488
  norm       = 1.0753
  Prefactor  = 0.0001
  Prefactor  = 3.43184
  Prefactor  = 0.000100007
  Prefactor  = 1.34694
  Prefactor  = 0.0001
  norm       = 0.307056
  Prefactor  = 5.68662
  Prefactor  = 0.0001
  Prefactor  = 2.72501
  norm       = 0.206167
  norm       = 0.0001
  Prefactor  = 17.7644
  Prefactor  = 24.8281
  Prefactor  = 0.445463
  Normalizat = 1.16326
  Prefactor  = 0.630314
 **********
 **   18 **HESSE 
 **********

 FCN=   3837.838     FROM HESSE     STATUS=OK           534 CALLS     3175 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9024        6.9106        .51057E-02   -1.5313    
   2  norm          1.9162        19.175        .74886E-02   -1.5431    
   3  Prefactor     17.795        15.796        .23733E-02   -1.4864    
   4  Prefactor     36.000        51.749        .16695E-02   -1.4507    
   5  Prefactor     .10000E-03    8.6742        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.757        28.160        .20560E-02   -1.4733    
   7  Prefactor     2.1321        15.512        .70434E-02   -1.5416    
   8  Prefactor     .10000E-03    1.4219        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.149        14.655        .24913E-02   -1.4904    
  10  norm          1.0753        1.7228        .11628E-01   -1.5501    
  11  Prefactor     .10000E-03    7.7411        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.4318        4.6460        .54569E-02   -1.5337    
  13  Prefactor     .10001E-03    40.736        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3469        2.8350        .94280E-02   -1.5476    
  15  Prefactor     .10000E-03    1.4416        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .30706        3.6519        .55059E-01   -1.5597    
  17  Prefactor     5.6866        4.0422        .42063E-02   -1.5231    
  18  Prefactor     .10000E-03    1.1382        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.7250        5.9138        .61652E-02   -1.5378    
  20  norm          .20617        .24447        .68101E-02   -1.5617    
  21  norm          .10000E-03    4.7379        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.764        17.544        .23797E-02   -1.4865    
  23  Prefactor     24.828        14.971        .20097E-02   -1.4711    
  24  Prefactor     .44546        64.686        .13454       -1.5574    
  25  Normalizat    1.1633        .23931        .35871E-01   -.87746    
  26  Prefactor     .63031        .22080        .65749E-01   -1.0632    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.94449e-07
Minuit parameter uncertainties:
  1  6.91201
  2  12.1279
  3  15.7996
  4  51.8131
  5  2.69781e-05
  6  28.1753
  7  11.5056
  8  7.94632e-07
  9  14.6582
  10  1.72291
  11  4.40465e-05
  12  4.64649
  13  0.00103125
  14  2.83531
  15  8.07563e-07
  16  2.11767
  17  4.04236
  18  9.11589e-07
  19  5.91502
  20  0.244473
  21  3.23361e-05
  22  17.5488
  23  14.9731
  24  10.7466
  25  0.239531
  26  0.221102
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  3.432e+00  4.646e+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:  6.303e-01  2.211e-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.163e+00  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.92
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 1.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263769/likelihoodResults_586137601_586396801_4FGL_J1200.7+2008_daily_bin1338.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) = 3837.83502212
delta logL = 0.00294110063624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3837.83459759
delta logL = 0.00336563744941

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3161       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5970       1.0000          .0000       10.000    
     3 'Normalizat'    1.1607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63178       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=   3837.835     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      231 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3158        4.7213        .13998E-03    .93356E-03
   2  Index         2.5975        .95716        .89992E-02    .15063E-03
   3  Normalizat    1.1609        .25720        .22637E-03   -.20664E-03
   4  Prefactor     .63166        .24882        .29065E-03   -.17197E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.31576
  Index      = 2.59745
  Normalizat = 1.1609
  Prefactor  = 0.631656
 **********
 **   18 **HESSE 
 **********

 FCN=   3837.835     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3158        4.6232        .55991E-05   -1.5344    
   2  Index         2.5975        .93712        .35997E-03   -.50124    
   3  Normalizat    1.1609        .25738        .45274E-04   -.87820    
   4  Prefactor     .63166        .24897        .11626E-04   -1.0627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18373e-09
Minuit parameter uncertainties:
  1  4.62374
  2  0.944408
  3  0.257662
  4  0.249407
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263769': 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) = 3837.83459719
delta logL = 0.00336603952701

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  3.316e+00  4.624e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.597e+00  9.444e-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.317e-01  2.494e-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.161e+00  2.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.92
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/263769/cmap_HighResolution_586137601_586396801_4FGL_J1200.7+2008_daily_bin1338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.45e-07', time_completed='2021-09-04 21:00:20.566251', job_id='263769', GAL2='0.63', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630814420.57', return_code2='0', ts='0.92', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='3.37e-03', ts2='0.92', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1338' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:00:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 263769: <4FGL_J1200.7+2008_daily_bin1338> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1338> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 20:50:26 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:50:27 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:27 2021
Terminated at Sat Sep  4 21:00:22 2021
Results reported at Sat Sep  4 21:00:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1338 180.187 20.1354 586137601 586396801 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 :                                   570.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   593 sec.
    Turnaround time :                            596 sec.

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

