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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1315
RA = 180.173, Dec = 12.4922
tmin = 580176001, tmax = 580435201
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='255403', job_status='RUN', time_executed='2021-09-04 20:26:52.617797', time_epoch_executed='1630812412.62' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255403

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255403/ft1_4FGL_J1200.6+1229_daily_bin1315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255403/ft2_4FGL_J1200.6+1229_daily_bin1315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255403/ft1_4FGL_J1200.6+1229_daily_bin1315.fits outfile=/scratch/kocevski/255403/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1315.fits ra=180.173 dec=12.4922 rad=12.0 tmin=580176001.0 tmax=580435201.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.67
user 4.39
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255403/ft1_filtered_4FGL_J1200.6+1229_daily_bin1315.fits" evtable="EVENTS" scfile=/scratch/kocevski/255403/ft2_4FGL_J1200.6+1229_daily_bin1315.fits sctable="SC_DATA" outfile=/scratch/kocevski/255403/ltcube_580176001_580435201_4FGL_J1200.6+1229_daily_bin1315.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/255403/ft2_4FGL_J1200.6+1229_daily_bin1315.fits
.....................!
real 11.66
user 11.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255403/ft1_filtered_4FGL_J1200.6+1229_daily_bin1315.fits evtable="EVENTS" scfile=/scratch/kocevski/255403/ft2_4FGL_J1200.6+1229_daily_bin1315.fits sctable="SC_DATA" expcube=/scratch/kocevski/255403/ltcube_580176001_580435201_4FGL_J1200.6+1229_daily_bin1315.fits outfile=/scratch/kocevski/255403/expmap_580176001_580435201_4FGL_J1200.6+1229_daily_bin1315.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/255403/ltcube_580176001_580435201_4FGL_J1200.6+1229_daily_bin1315.fits
.....................!
real 190.58
user 184.95
sys 5.16

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/255403/ft1_filtered_4FGL_J1200.6+1229_daily_bin1315.fits scfile=/scratch/kocevski/255403/ft2_4FGL_J1200.6+1229_daily_bin1315.fits outfile=/scratch/kocevski/255403/cmap_580176001_580435201_4FGL_J1200.6+1229_daily_bin1315.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255403/ft1_filtered_4FGL_J1200.6+1229_daily_bin1315.fits scfile=/scratch/kocevski/255403/ft2_4FGL_J1200.6+1229_daily_bin1315.fits outfile=/scratch/kocevski/255403/cmap_HighResolution_580176001_580435201_4FGL_J1200.6+1229_daily_bin1315.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.59
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/255403/ft1_filtered_4FGL_J1200.6+1229_daily_bin1315.fits', '/scratch/kocevski/255403/ft2_4FGL_J1200.6+1229_daily_bin1315.fits', expMap='/scratch/kocevski/255403/expmap_580176001_580435201_4FGL_J1200.6+1229_daily_bin1315.fits', expCube='/scratch/kocevski/255403/ltcube_580176001_580435201_4FGL_J1200.6+1229_daily_bin1315.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/255403/Model_4FGL_J1200.6+1229_daily_bin1315.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/255403/ft1_filtered_4FGL_J1200.6+1229_daily_bin1315.fits
Spacecraft file(s): /scratch/kocevski/255403/ft2_4FGL_J1200.6+1229_daily_bin1315.fits
Exposure map: /scratch/kocevski/255403/expmap_580176001_580435201_4FGL_J1200.6+1229_daily_bin1315.fits
Exposure cube: /scratch/kocevski/255403/ltcube_580176001_580435201_4FGL_J1200.6+1229_daily_bin1315.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/255403/Model_4FGL_J1200.6+1229_daily_bin1315.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) = 5114.57403412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4285       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.347       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.8551       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1299       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.227       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10659E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10594E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .40249       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .33284E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.529       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .29349E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0982       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98239       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=   5114.571     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2518 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9839       -.11957E-06** at limit **
   2  Prefactor     .10000E-03    4.7908       -.15059E-06** at limit **
   3  Prefactor     .10000E-03    8.1170        .21925E-07** at limit **
   4  Prefactor     3.4307        10.359        .29813E-05    .19802E-04
   5  Prefactor     18.376        154.99       -.92821E-06    .78125E-05
   6  Prefactor     9.8556        8.8334       -.19708E-06    .92006E-04
   7  Prefactor     .10000E-03    7.5349        .72393E-06** at limit **
   8  Prefactor     1.1313        35.484        .21589E-04   -.38398E-04
   9  Prefactor     .10000E-03    2.9113       -.36640E-06** at limit **
  10  Prefactor     .10000E-03    32.176        .54503E-07** at limit **
  11  Prefactor     26.235        33.309        .36301E-06    .72506E-04
  12  Prefactor     .10000E-03    1.7398       -.64702E-06** at limit **
  13  Prefactor     .10000E-03    1.7624        .85916E-06** at limit **
  14  Prefactor     .10000E-03    9.2180        .42697E-07** at limit **
  15  norm          .10000E-03    1.6016        .85981E-09** at limit **
  16  Prefactor     .10000E-03    47.893       -.68131E-06** at limit **
  17  norm          .40250        .22909        .44752E-07    .14225E-02
  18  norm          .10000E-03    16.497       -.66606E-07** at limit **
  19  Prefactor     .10001E-03    324.71        .39807E-05** at limit **
  20  Prefactor     11.520        12.818        .39069E-06   -.40475E-04
  21  Prefactor     .10000E-03    74.438       -.12930E-05** at limit **
  22  Normalizat    1.0980        .19741       -.19650E-05    .11581E-03
  23  Prefactor     .98236        .18468        .50991E-06    .19235E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.43073
  Prefactor  = 18.376
  Prefactor  = 9.85562
  Prefactor  = 0.000100001
  Prefactor  = 1.1313
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.2351
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.402504
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 11.5201
  Prefactor  = 0.000100003
  Normalizat = 1.09801
  Prefactor  = 0.982361
 **********
 **   18 **HESSE 
 **********

 FCN=   5114.571     FROM HESSE     STATUS=OK           364 CALLS     2882 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.0003        .13942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.8058        .15289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.1198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4307        10.368        .10923E-02   -1.5338    
   5  Prefactor     18.376        154.72        .93507E-04   -1.4850    
   6  Prefactor     9.8556        8.8330        .12765E-03   -1.5080    
   7  Prefactor     .10000E-03    7.6596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1313        35.835        .21983E-02   -1.5495    
   9  Prefactor     .10000E-03    2.9844        .23822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.235        33.281        .78223E-04   -1.4683    
  12  Prefactor     .10000E-03    3.5337        .17936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.0272        .18047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.2202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6282        .88357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    48.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .40250        .22714        .24767E-04   -1.5581    
  18  norm          .10000E-03    16.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    325.05        .21345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.520        12.787        .58993E-03   -1.5029    
  21  Prefactor     .10000E-03    76.020        .42798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0980        .22439        .23991E-03   -.89816    
  23  Prefactor     .98236        .21268        .24290E-03   -.93320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09345e-10
Minuit parameter uncertainties:
  1  2.66681e-05
  2  2.75213e-05
  3  2.41422e-05
  4  10.3737
  5  107.017
  6  8.83416
  7  0.000175012
  8  12.742
  9  5.00419e-05
  10  2.91785e-05
  11  33.3046
  12  8.21238e-05
  13  9.80933e-05
  14  2.08677e-05
  15  5.03203e-07
  16  0.000227211
  17  0.227136
  18  1.64216e-05
  19  0.00384593
  20  12.7901
  21  0.000970275
  22  0.224587
  23  0.212864
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.131e+00  1.274e+01  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:  9.824e-01  2.129e-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:  1.098e+00  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 180.173 12.492
Photon Flux Upper Limit: 8.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255403/likelihoodResults_580176001_580435201_4FGL_J1200.6+1229_daily_bin1315.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) = 5114.56310661
delta logL = 0.00833026054352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5114.56292027
delta logL = 0.00851660186345

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1884       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8693       1.0000          .0000       10.000    
     3 'Normalizat'    1.0942       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98411       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5114.563     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      279 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1698        47.652        .20909E-02   -.21369E-03
   2  Index         2.8890        6.3933        .53191E-02   -.41520E-04
   3  Normalizat    1.0938        .22254        .24032E-03   -.38822E-03
   4  Prefactor     .98423        .21278        .24269E-03   -.25165E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.16977
  Index      = 2.88901
  Normalizat = 1.09382
  Prefactor  = 0.984233
 **********
 **   18 **HESSE 
 **********

 FCN=   5114.563     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1698        20.395        .83635E-04   -1.5492    
   2  Index         2.8890        3.4815        .21276E-03   -.43587    
   3  Normalizat    1.0938        .22295        .48064E-04   -.89950    
   4  Prefactor     .98423        .21266        .48539E-04   -.93257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.38588e-10
Minuit parameter uncertainties:
  1  9.77223
  2  3.97004
  3  0.223145
  4  0.212842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255403': 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) = 5114.56290504
delta logL = 0.00853182856827

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.170e+00  9.772e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.889e+00  3.970e+00  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:  9.842e-01  2.128e-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:  1.094e+00  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 180.173 12.492

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/255403/cmap_HighResolution_580176001_580435201_4FGL_J1200.6+1229_daily_bin1315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.36e-03', job_status='DONE', photon_flux_upper_limit='8.24e-08', time_completed='2021-09-04 20:38:26.844404', job_id='255403', GAL2='0.98', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1630813106.84', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='8.53e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1315' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:38:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 255403: <4FGL_J1200.6+1229_daily_bin1315> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1315> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 20:25:35 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:25:37 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:25:37 2021
Terminated at Sat Sep  4 20:38:27 2021
Results reported at Sat Sep  4 20:38:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1315 180.173 12.4922 580176001 580435201 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 :                                   638.20 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             293.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            772 sec.

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

