/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 214 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_bin1064
RA = 180.173, Dec = 12.4922
tmin = 515116801, tmax = 515376001
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='253707', job_status='RUN', time_executed='2021-09-04 20:24:33.756797', time_epoch_executed='1630812273.76' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1064'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253707

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253707/ft1_4FGL_J1200.6+1229_daily_bin1064.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253707/ft2_4FGL_J1200.6+1229_daily_bin1064.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253707/ft1_4FGL_J1200.6+1229_daily_bin1064.fits outfile=/scratch/kocevski/253707/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1064.fits ra=180.173 dec=12.4922 rad=12.0 tmin=515116801.0 tmax=515376001.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.56
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253707/ft1_filtered_4FGL_J1200.6+1229_daily_bin1064.fits" evtable="EVENTS" scfile=/scratch/kocevski/253707/ft2_4FGL_J1200.6+1229_daily_bin1064.fits sctable="SC_DATA" outfile=/scratch/kocevski/253707/ltcube_515116801_515376001_4FGL_J1200.6+1229_daily_bin1064.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/253707/ft2_4FGL_J1200.6+1229_daily_bin1064.fits
.....................!
real 11.74
user 11.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253707/ft1_filtered_4FGL_J1200.6+1229_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/253707/ft2_4FGL_J1200.6+1229_daily_bin1064.fits sctable="SC_DATA" expcube=/scratch/kocevski/253707/ltcube_515116801_515376001_4FGL_J1200.6+1229_daily_bin1064.fits outfile=/scratch/kocevski/253707/expmap_515116801_515376001_4FGL_J1200.6+1229_daily_bin1064.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/253707/ltcube_515116801_515376001_4FGL_J1200.6+1229_daily_bin1064.fits
.....................!
real 190.10
user 185.26
sys 4.47

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/253707/ft1_filtered_4FGL_J1200.6+1229_daily_bin1064.fits scfile=/scratch/kocevski/253707/ft2_4FGL_J1200.6+1229_daily_bin1064.fits outfile=/scratch/kocevski/253707/cmap_515116801_515376001_4FGL_J1200.6+1229_daily_bin1064.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253707/ft1_filtered_4FGL_J1200.6+1229_daily_bin1064.fits scfile=/scratch/kocevski/253707/ft2_4FGL_J1200.6+1229_daily_bin1064.fits outfile=/scratch/kocevski/253707/cmap_HighResolution_515116801_515376001_4FGL_J1200.6+1229_daily_bin1064.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.58
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8587       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6785       1.0000         .10000E-03   10000.    
     3 'Prefactor '    86.565       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14578E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.247       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10969E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2683       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.9588       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .35487       1.0000         .10000E-03   10000.    
    18 'norm      '    .12833E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    137.19       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .83307       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0069       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=   4869.262     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2957 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8586        8.6206       -.15357E-05    .70219E-04
   2  Prefactor     5.6778        11.778       -.39380E-06    .57255E-04
   3  Prefactor     86.560        48.826        .80069E-06    .12928E-03
   4  Prefactor     .10000E-03    3.9509       -.65214E-07** at limit **
   5  Prefactor     .10000E-03    38.953        .44673E-06** at limit **
   6  Prefactor     .10000E-03    6.1917       -.10786E-06** at limit **
   7  Prefactor     .10000E-03    71.966       -.24581E-04** at limit **
   8  Prefactor     18.245        15.019       -.15305E-06    .38183E-04
   9  Prefactor     .10000E-03    2.6148       -.46029E-07** at limit **
  10  Prefactor     .10001E-03    60.051       -.50482E-05** at limit **
  11  Prefactor     .10000E-03    25.386        .26766E-07** at limit **
  12  Prefactor     3.2690        2.5574        .37882E-07    .35589E-03
  13  Prefactor     .10000E-03    .94280       -.48669E-07** at limit **
  14  Prefactor     .10000E-03    15.917        .61815E-06** at limit **
  15  norm          2.9578        3.8543       -.18314E-05    .30042E-03
  16  Prefactor     .10005E-03    55.169       -.17960E-04** at limit **
  17  norm          .35487        .21876       -.19165E-07    .39464E-03
  18  norm          .10000E-03    119.09       -.72956E-05** at limit **
  19  Prefactor     137.17        119.80        .32887E-05    .14059E-03
  20  Prefactor     .10000E-03    4.4600       -.79941E-07** at limit **
  21  Prefactor     .10000E-03    13.519       -.15340E-06** at limit **
  22  Normalizat    .83311        .19260        .24181E-06    .18675E-03
  23  Prefactor     1.0069        .17732        .18629E-06    .17439E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.85859
  Prefactor  = 5.67781
  Prefactor  = 86.5601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2452
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 3.26904
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.95775
  Prefactor  = 0.000100048
  norm       = 0.354868
  norm       = 0.000100002
  Prefactor  = 137.174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.833109
  Prefactor  = 1.00688
 **********
 **   18 **HESSE 
 **********

 FCN=   4869.262     FROM HESSE     STATUS=OK           376 CALLS     3333 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8586        8.6220        .24045E-03   -1.5370    
   2  Prefactor     5.6778        11.786        .16857E-03   -1.5231    
   3  Prefactor     86.560        48.913        .43180E-04   -1.3845    
   4  Prefactor     .10000E-03    3.9596        .13544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.2195        .16955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    79.045        .35658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.245        15.025        .93763E-04   -1.4853    
   9  Prefactor     .10000E-03    4.5897        .21503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    61.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2690        2.5364        .93399E-04   -1.5346    
  13  Prefactor     .10000E-03    .94701        .66112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.9578        3.8553        .14852E-03   -1.5364    
  16  Prefactor     .10005E-03    21.814        .10896       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .35487        .21482        .24608E-04   -1.5589    
  18  norm          .10000E-03    119.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     137.17        120.60        .17194E-03   -1.3360    
  20  Prefactor     .10000E-03    4.4783        .14392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .83311        .22157        .25573E-03   -.98852    
  23  Prefactor     1.0069        .20528        .22490E-03   -.92500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0717e-10
Minuit parameter uncertainties:
  1  8.62572
  2  11.7912
  3  48.9356
  4  3.86076e-06
  5  0.000147173
  6  3.2286e-07
  7  0.000137769
  8  15.0278
  9  4.91571e-05
  10  0.00172017
  11  6.72417e-05
  12  2.53648
  13  9.74982e-07
  14  0.000165041
  15  3.85561
  16  0.00205541
  17  0.214817
  18  0.00109333
  19  120.82
  20  3.67211e-06
  21  1.31944e-05
  22  0.221814
  23  0.205442
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.825e+01  1.503e+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.007e+00  2.054e-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:  8.331e-01  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.18
Ra Dec: 180.173 12.492
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 3.93e-08 +/- 3.23e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.08e-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) = 4868.83237744
delta logL = 0.429947275078

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4868.81350605
delta logL = 0.448818664408

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.423       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7486       1.0000          .0000       10.000    
     3 'Normalizat'    .85583       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99645       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=   4868.814     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.428        20.619        .86537E-04    .19706E-05
   2  Index         1.7486        .65818        .87460E-02   -.45677E-05
   3  Normalizat    .85584        .21250        .25264E-03   -.29250E-05
   4  Prefactor     .99642        .20415        .22598E-03    .68167E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.4276
  Index      = 1.74858
  Normalizat = 0.855845
  Prefactor  = 0.996416
 **********
 **   18 **HESSE 
 **********

 FCN=   4868.814     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.428        20.822        .34615E-05   -1.4782    
   2  Index         1.7486        .66459        .34984E-03   -.70796    
   3  Normalizat    .85584        .21268        .10106E-04   -.98030    
   4  Prefactor     .99642        .20433        .90393E-05   -.92849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35641e-11
Minuit parameter uncertainties:
  1  20.8289
  2  0.668032
  3  0.212883
  4  0.204486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253707': 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) = 4868.813506
delta logL = 0.448818708402

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  2.143e+01  2.083e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  1.749e+00  6.680e-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:  9.964e-01  2.045e-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:  8.558e-01  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.04
Ra Dec: 180.173 12.492
Photon Index (Free Index): 1.75 +/- 0.67
Photon Flux (Free Index): 1.85e-08 +/- 2.59e-08
Energy Flux (Free Index): 2.59e-05 +/- 3.55e-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/253707/cmap_HighResolution_515116801_515376001_4FGL_J1200.6+1229_daily_bin1064.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.93e-08', energy_flux2='2.59e-05', photon_flux_error='3.23e-08', dlogl='4.49e-01', energy_flux='1.31e-05', photon_flux2='1.85e-08', job_status='DONE', time_completed='2021-09-04 20:34:26.420189', photon_index_error2='0.67', photon_index2='1.75', ts='5.18', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='3.55e-05', EG='0.83', time_epoch_completed='1630812866.42', return_code='0', job_id='253707', GAL2='1.00', EG2='0.86', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='2.59e-08', ts2='6.04', photon_index='2.39' WHERE bin_id='1064' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:34:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 253707: <4FGL_J1200.6+1229_daily_bin1064> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1064> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 20:20:49 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:20:50 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:20:50 2021
Terminated at Sat Sep  4 20:34:27 2021
Results reported at Sat Sep  4 20:34:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1064 180.173 12.4922 515116801 515376001 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 :                                   587.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

