/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 83 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 = 7535
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1239
RA = 180.173, Dec = 12.4922
tmin = 560476801, tmax = 560736001
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='253963', job_status='RUN', time_executed='2021-09-04 20:22:59.932152', time_epoch_executed='1630812179.93' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253963

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253963/ft1_4FGL_J1200.6+1229_daily_bin1239.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253963/ft2_4FGL_J1200.6+1229_daily_bin1239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253963/ft1_4FGL_J1200.6+1229_daily_bin1239.fits outfile=/scratch/kocevski/253963/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1239.fits ra=180.173 dec=12.4922 rad=12.0 tmin=560476801.0 tmax=560736001.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.75
user 3.50
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/253963/ft2_4FGL_J1200.6+1229_daily_bin1239.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253963/ft2_4FGL_J1200.6+1229_daily_bin1239.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/253963/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1239.fits evtable="EVENTS" outfile="/scratch/kocevski/253963/ft1_filtered_4FGL_J1200.6+1229_daily_bin1239.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253963/ft1_filtered_4FGL_J1200.6+1229_daily_bin1239.fits" evtable="EVENTS" scfile=/scratch/kocevski/253963/ft2_4FGL_J1200.6+1229_daily_bin1239.fits sctable="SC_DATA" outfile=/scratch/kocevski/253963/ltcube_560476801_560736001_4FGL_J1200.6+1229_daily_bin1239.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/253963/ft2_4FGL_J1200.6+1229_daily_bin1239.fits
.....................!
real 15.33
user 14.96
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253963/ft1_filtered_4FGL_J1200.6+1229_daily_bin1239.fits evtable="EVENTS" scfile=/scratch/kocevski/253963/ft2_4FGL_J1200.6+1229_daily_bin1239.fits sctable="SC_DATA" expcube=/scratch/kocevski/253963/ltcube_560476801_560736001_4FGL_J1200.6+1229_daily_bin1239.fits outfile=/scratch/kocevski/253963/expmap_560476801_560736001_4FGL_J1200.6+1229_daily_bin1239.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/253963/ltcube_560476801_560736001_4FGL_J1200.6+1229_daily_bin1239.fits
.....................!
real 191.24
user 185.57
sys 5.29

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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1200.6+1229 @ 180.173 12.4922

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/253963/ft1_filtered_4FGL_J1200.6+1229_daily_bin1239.fits scfile=/scratch/kocevski/253963/ft2_4FGL_J1200.6+1229_daily_bin1239.fits outfile=/scratch/kocevski/253963/cmap_560476801_560736001_4FGL_J1200.6+1229_daily_bin1239.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.173 yref=12.4922 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253963/ft1_filtered_4FGL_J1200.6+1229_daily_bin1239.fits scfile=/scratch/kocevski/253963/ft2_4FGL_J1200.6+1229_daily_bin1239.fits outfile=/scratch/kocevski/253963/cmap_HighResolution_560476801_560736001_4FGL_J1200.6+1229_daily_bin1239.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.173 yref=12.4922 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.63
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/253963/ft1_filtered_4FGL_J1200.6+1229_daily_bin1239.fits evtable="EVENTS" scfile=/scratch/kocevski/253963/ft2_4FGL_J1200.6+1229_daily_bin1239.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/253963/Model_4FGL_J1200.6+1229_daily_bin1239.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/253963/ft1_filtered_4FGL_J1200.6+1229_daily_bin1239.fits....................!
real 40.42
user 38.98
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/253963/ft1_filtered_4FGL_J1200.6+1229_daily_bin1239.fits', '/scratch/kocevski/253963/ft2_4FGL_J1200.6+1229_daily_bin1239.fits', expMap='/scratch/kocevski/253963/expmap_560476801_560736001_4FGL_J1200.6+1229_daily_bin1239.fits', expCube='/scratch/kocevski/253963/ltcube_560476801_560736001_4FGL_J1200.6+1229_daily_bin1239.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/253963/Model_4FGL_J1200.6+1229_daily_bin1239.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.6+1229'

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  3.077e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/253963/ft1_filtered_4FGL_J1200.6+1229_daily_bin1239.fits
Spacecraft file(s): /scratch/kocevski/253963/ft2_4FGL_J1200.6+1229_daily_bin1239.fits
Exposure map: /scratch/kocevski/253963/expmap_560476801_560736001_4FGL_J1200.6+1229_daily_bin1239.fits
Exposure cube: /scratch/kocevski/253963/ltcube_560476801_560736001_4FGL_J1200.6+1229_daily_bin1239.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/253963/Model_4FGL_J1200.6+1229_daily_bin1239.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) = 3688.43423288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.618       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16818E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5340       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10726E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1047       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    92.069       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0618       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .20258E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.737       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .90825       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2814       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3688.403     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2636 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.618        19.484       -.83571E-07    .72337E-06
   2  Prefactor     .10000E-03    13.976        .14120E-07** at limit **
   3  Prefactor     .10000E-03    26.976        .47788E-08** at limit **
   4  Prefactor     .10000E-03    45.782       -.30132E-06** at limit **
   5  Prefactor     .10000E-03    523.84       -.57868E-05** at limit **
   6  Prefactor     4.5345        12.904       -.15822E-06    .24439E-04
   7  Prefactor     .10000E-03    7.6166        .38222E-07** at limit **
   8  Prefactor     .10000E-03    163.15        .47859E-05** at limit **
   9  Prefactor     5.1034        7.1885       -.57540E-06   -.34526E-05
  10  Prefactor     .10000E-03    127.69       -.35780E-05** at limit **
  11  Prefactor     92.043        69.115       -.37080E-06    .13736E-04
  12  Prefactor     .10000E-03    1.1640       -.41273E-07** at limit **
  13  Prefactor     .10000E-03    1.3449       -.16731E-07** at limit **
  14  Prefactor     .10000E-03    13.660        .63379E-07** at limit **
  15  norm          2.0745        3.8812       -.12144E-05   -.16206E-03
  16  Prefactor     .10000E-03    18.020        .11197E-07** at limit **
  17  norm          .10000E-03    .22666       -.48350E-08** at limit **
  18  norm          .10014E-03    97.872        .68935E-05** at limit **
  19  Prefactor     .10000E-03    73.003        .61934E-06** at limit **
  20  Prefactor     .10000E-03    9.1758        .38789E-07** at limit **
  21  Prefactor     44.732        41.805       -.52669E-07    .19040E-05
  22  Normalizat    .90833        .26843        .93145E-06    .64118E-05
  23  Prefactor     1.2813        .23802       -.45546E-06    .55094E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 27.6176
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.53445
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 5.10342
  Prefactor  = 0.0001
  Prefactor  = 92.0429
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.07447
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100142
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.7315
  Normalizat = 0.90833
  Prefactor  = 1.28127
 **********
 **   18 **HESSE 
 **********

 FCN=   3688.403     FROM HESSE     STATUS=OK           366 CALLS     3002 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.618        19.479        .38116E-03   -1.4656    
   2  Prefactor     .10000E-03    14.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    47.259        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    522.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5345        12.780        .18907E-03   -1.5282    
   7  Prefactor     .10000E-03    7.6602        .16364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    167.44        .59182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.1034        7.2032        .88976E-03   -1.5256    
  10  Prefactor     .10000E-03    128.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     92.043        68.940        .41881E-04   -1.3786    
  12  Prefactor     .10000E-03    1.1666        .63992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.3482        .68775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0745        4.0234        .16098E-03   -1.5420    
  16  Prefactor     .10000E-03    18.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .31033        .56167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10014E-03    477.82        .87445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    73.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.1889        .17963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     44.732        41.852        .59941E-04   -1.4369    
  22  Normalizat    .90833        .31372        .30147E-03   -.96168    
  23  Prefactor     1.2813        .28242        .24090E-03   -.83866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81006e-10
Minuit parameter uncertainties:
  1  19.4836
  2  3.11747e-06
  3  8.59688e-07
  4  2.06644e-05
  5  0.000169439
  6  12.7873
  7  2.4799e-05
  8  0.00132397
  9  7.20441
  10  0.00034307
  11  69.0004
  12  4.03749e-07
  13  2.37393e-07
  14  4.33517e-06
  15  4.02388
  16  9.75197e-07
  17  4.05785e-07
  18  0.0165921
  19  5.24681e-05
  20  1.07945e-06
  21  41.8799
  22  0.314352
  23  0.282756
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.324e-03  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.281e+00  2.828e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  9.083e-01  3.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.173 12.492
Photon Flux Upper Limit: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253963/likelihoodResults_560476801_560736001_4FGL_J1200.6+1229_daily_bin1239.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) = 3688.40350768
delta logL = -2.78003549283e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3687.54303561
delta logL = 0.860444268065

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.339       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2321       1.0000          .0000       10.000    
     3 'Normalizat'    .90610       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2682       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3687.543     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      274 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.345        28.480        .49388E-05   -.11575E-03
   2  Index         1.2322        .57988        .24033E-04    .23493E-04
   3  Normalizat    .90609        .25141        .10359E-06   -.27949E-04
   4  Prefactor     1.2681        .23529       -.36620E-06   -.21254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.3454
  Index      = 1.23218
  Normalizat = 0.906088
  Prefactor  = 1.26807
 **********
 **   18 **HESSE 
 **********

 FCN=   3687.543     FROM HESSE     STATUS=OK            31 CALLS      305 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.345        27.518        .88811E-04   -1.4806    
   2  Index         1.2322        .55981        .74800E-02   -.85347    
   3  Normalizat    .90609        .29779        .30140E-03   -.96247    
   4  Prefactor     1.2681        .27893        .24154E-03   -.84261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56433e-11
Minuit parameter uncertainties:
  1  27.5352
  2  0.562551
  3  0.298337
  4  0.279255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253963': 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) = 3687.54303531
delta logL = 0.86044456844

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  2.035e+01  2.754e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  1.232e+00  5.626e-01  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.268e+00  2.793e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  9.061e-01  2.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.73
Ra Dec: 180.173 12.492
Photon Index (Free Index): 1.23 +/- 0.56
Photon Flux (Free Index): 1.33e-08 +/- 1.72e-08
Energy Flux (Free Index): 1.00e-04 +/- 1.47e-04

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/253963/cmap_HighResolution_560476801_560736001_4FGL_J1200.6+1229_daily_bin1239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', energy_flux2='1.00e-04', dlogl='8.60e-01', photon_flux2='1.33e-08', job_status='DONE', time_completed='2021-09-04 20:32:14.278926', photon_index_error2='0.56', photon_index2='1.23', ts='-0.00', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.47e-04', EG='0.91', time_epoch_completed='1630812734.28', return_code='0', job_id='253963', GAL2='1.27', EG2='0.91', return_code2='0', photon_flux_error2='1.72e-08', ts2='1.73', photon_index='2.39' WHERE bin_id='1239' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:32:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 253963: <4FGL_J1200.6+1229_daily_bin1239> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1239> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 20:21:12 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:21:14 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:21:14 2021
Terminated at Sat Sep  4 20:32:15 2021
Results reported at Sat Sep  4 20:32:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1239 180.173 12.4922 560476801 560736001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.6+1229 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   547.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             287.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            663 sec.

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

