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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1418
RA = 180.173, Dec = 12.4922
tmin = 606873601, tmax = 607132801
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='255552', job_status='RUN', time_executed='2021-09-04 20:26:13.024612', time_epoch_executed='1630812373.02' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255552

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255552/ft1_4FGL_J1200.6+1229_daily_bin1418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255552/ft2_4FGL_J1200.6+1229_daily_bin1418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255552/ft1_4FGL_J1200.6+1229_daily_bin1418.fits outfile=/scratch/kocevski/255552/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1418.fits ra=180.173 dec=12.4922 rad=12.0 tmin=606873601.0 tmax=607132801.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 5.30
user 5.04
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255552/ft1_filtered_4FGL_J1200.6+1229_daily_bin1418.fits" evtable="EVENTS" scfile=/scratch/kocevski/255552/ft2_4FGL_J1200.6+1229_daily_bin1418.fits sctable="SC_DATA" outfile=/scratch/kocevski/255552/ltcube_606873601_607132801_4FGL_J1200.6+1229_daily_bin1418.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/255552/ft2_4FGL_J1200.6+1229_daily_bin1418.fits
.....................!
real 11.62
user 11.26
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255552/ft1_filtered_4FGL_J1200.6+1229_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/255552/ft2_4FGL_J1200.6+1229_daily_bin1418.fits sctable="SC_DATA" expcube=/scratch/kocevski/255552/ltcube_606873601_607132801_4FGL_J1200.6+1229_daily_bin1418.fits outfile=/scratch/kocevski/255552/expmap_606873601_607132801_4FGL_J1200.6+1229_daily_bin1418.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/255552/ltcube_606873601_607132801_4FGL_J1200.6+1229_daily_bin1418.fits
.....................!
real 191.27
user 185.51
sys 5.14

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/255552/ft1_filtered_4FGL_J1200.6+1229_daily_bin1418.fits scfile=/scratch/kocevski/255552/ft2_4FGL_J1200.6+1229_daily_bin1418.fits outfile=/scratch/kocevski/255552/cmap_606873601_607132801_4FGL_J1200.6+1229_daily_bin1418.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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255552/ft1_filtered_4FGL_J1200.6+1229_daily_bin1418.fits scfile=/scratch/kocevski/255552/ft2_4FGL_J1200.6+1229_daily_bin1418.fits outfile=/scratch/kocevski/255552/cmap_HighResolution_606873601_607132801_4FGL_J1200.6+1229_daily_bin1418.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8800       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.311       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19471E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.309       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6368       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.856       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .16819E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.245       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .57872       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3038       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4809.942     FROM MIGRAD    STATUS=CONVERGED    902 CALLS     3709 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8793        8.0405        .15296E-03    .55967E-04
   2  Prefactor     20.311        12.305        .88872E-04    .34667E-04
   3  Prefactor     .10000E-03    327.21        .74738E-02** at limit **
   4  Prefactor     .10000E-03    19.863        .36285E-03** at limit **
   5  Prefactor     .10000E-03    54.642        .18142E-02** at limit **
   6  Prefactor     .10000E-03    7.4212        .18142E-02** at limit **
   7  Prefactor     .10000E-03    4.0063        .13534E-02** at limit **
   8  Prefactor     32.303        19.133        .70495E-04    .21923E-03
   9  Prefactor     1.6376        3.8879        .19556E-03    .20661E-03
  10  Prefactor     .10000E-03    104.38        .18142E-02** at limit **
  11  Prefactor     21.853        42.166        .85677E-04    .41798E-04
  12  Prefactor     .10000E-03    .94043        .65127E-03** at limit **
  13  Prefactor     .10000E-03    1.5164        .16457E-03** at limit **
  14  Prefactor     .10000E-03    32.590        .18142E-02** at limit **
  15  norm          .10000E-03    1.3188        .15312E-03** at limit **
  16  Prefactor     .10000E-03    9.9961        .18142E-02** at limit **
  17  norm          .16881E-01    .14545        .40281E-03    .38239E-02
  18  norm          .10000E-03    18.056        .18142E-02** at limit **
  19  Prefactor     .10000E-03    40.386        .18142E-02** at limit **
  20  Prefactor     .10000E-03    3.0903        .11894E-02** at limit **
  21  Prefactor     28.246        21.479        .75383E-04    .31369E-04
  22  Normalizat    .57879        .21751        .29369E-03    .29048E-03
  23  Prefactor     1.3037        .21173        .20460E-03    .35522E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.87931
  Prefactor  = 20.3113
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.3029
  Prefactor  = 1.63765
  Prefactor  = 0.0001
  Prefactor  = 21.8531
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0168806
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.2456
  Normalizat = 0.578788
  Prefactor  = 1.30373
 **********
 **   18 **HESSE 
 **********

 FCN=   4809.942     FROM HESSE     STATUS=OK           348 CALLS     4057 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8793        8.0391        .61183E-05   -1.5183    
   2  Prefactor     20.311        12.305        .35549E-05   -1.4806    
   3  Prefactor     .10000E-03    342.18        .29895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.864        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    54.644        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.4251        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.0065        .27068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     32.303        19.132        .14099E-04   -1.4571    
   9  Prefactor     1.6376        3.8867        .78224E-05   -1.5452    
  10  Prefactor     .10000E-03    104.39        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.853        42.184        .34271E-05   -1.4773    
  12  Prefactor     .10000E-03    .94050        .13025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.5164        .32915E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.604        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.3188        .30623E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.9964        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .16881E-01    .14524        .16112E-04   -1.5682    
  18  norm          .10000E-03    18.057        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    40.386        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.0904        .23788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.246        21.478        .30153E-05   -1.4645    
  22  Normalizat    .57879        .21755        .11748E-04   -1.0889    
  23  Prefactor     1.3037        .21188        .40920E-04   -.83196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.41454e-10
Minuit parameter uncertainties:
  1  8.04034
  2  12.307
  3  0.00139465
  4  2.92275e-05
  5  1.33052e-05
  6  3.36364e-06
  7  7.41871e-06
  8  19.1354
  9  3.88728
  10  0.000414936
  11  42.2421
  12  4.91566e-06
  13  1.30796e-06
  14  0.000158936
  15  3.2676e-06
  16  8.13648e-06
  17  0.098736
  18  3.43983e-05
  19  0.000240197
  20  4.12965e-06
  21  21.4839
  22  0.217869
  23  0.212018
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  3.230e+01  1.914e+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:  1.304e+00  2.120e-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:  5.788e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.49
Ra Dec: 180.173 12.492
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 6.95e-08 +/- 4.12e-08
Energy Flux (Fixed Index): 2.32e-05 +/- 1.37e-05

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) = 4809.9352884
delta logL = 0.00718737838633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4809.92566622
delta logL = 0.0168095596537

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.644       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4804       1.0000          .0000       10.000    
     3 'Normalizat'    .57445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3072       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4809.926     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      249 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.631        28.434        .74857E-04    .44043E-04
   2  Index         2.4808        .55846        .45343E-02    .38431E-03
   3  Normalizat    .57475        .20993        .29465E-03    .43060E-04
   4  Prefactor     1.3069        .21171        .20439E-03    .16687E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.6309
  Index      = 2.48075
  Normalizat = 0.574747
  Prefactor  = 1.30692
 **********
 **   18 **HESSE 
 **********

 FCN=   4809.926     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.631        26.785        .29943E-05   -1.4637    
   2  Index         2.4808        .52604        .90686E-03   -.52805    
   3  Normalizat    .57475        .21001        .11786E-04   -1.0907    
   4  Prefactor     1.3069        .21176        .81756E-05   -.83102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08579e-11
Minuit parameter uncertainties:
  1  26.7962
  2  0.527347
  3  0.210303
  4  0.211896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255552': 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) = 4809.9256648
delta logL = 0.0168109780743

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  2.863e+01  2.680e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.481e+00  5.273e-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.307e+00  2.119e-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:  5.747e-01  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.52
Ra Dec: 180.173 12.492
Photon Index (Free Index): 2.48 +/- 0.53
Photon Flux (Free Index): 7.22e-08 +/- 4.42e-08
Energy Flux (Free Index): 2.14e-05 +/- 1.56e-05

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/255552/cmap_HighResolution_606873601_607132801_4FGL_J1200.6+1229_daily_bin1418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.95e-08', energy_flux2='2.14e-05', photon_flux_error='4.12e-08', dlogl='1.68e-02', energy_flux='2.32e-05', photon_flux2='7.22e-08', job_status='DONE', time_completed='2021-09-04 20:36:55.263983', photon_index_error2='0.53', photon_index2='2.48', ts='4.49', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', energy_flux_error2='1.56e-05', EG='0.58', time_epoch_completed='1630813015.26', return_code='0', job_id='255552', GAL2='1.31', EG2='0.57', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='4.42e-08', ts2='4.52', photon_index='2.39' WHERE bin_id='1418' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:36:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 255552: <4FGL_J1200.6+1229_daily_bin1418> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1418> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 20:25:46 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:25:47 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:47 2021
Terminated at Sat Sep  4 20:36:56 2021
Results reported at Sat Sep  4 20:36:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1418 180.173 12.4922 606873601 607132801 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 :                                   634.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            670 sec.

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

