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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1004
RA = 180.173, Dec = 12.4922
tmin = 499564801, tmax = 499824001
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='253614', job_status='RUN', time_executed='2021-09-04 20:23:59.422311', time_epoch_executed='1630812239.42' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1004'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253614

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253614/ft1_4FGL_J1200.6+1229_daily_bin1004.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253614/ft2_4FGL_J1200.6+1229_daily_bin1004.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253614/ft1_4FGL_J1200.6+1229_daily_bin1004.fits outfile=/scratch/kocevski/253614/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1004.fits ra=180.173 dec=12.4922 rad=12.0 tmin=499564801.0 tmax=499824001.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.15
user 4.81
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253614/ft1_filtered_4FGL_J1200.6+1229_daily_bin1004.fits" evtable="EVENTS" scfile=/scratch/kocevski/253614/ft2_4FGL_J1200.6+1229_daily_bin1004.fits sctable="SC_DATA" outfile=/scratch/kocevski/253614/ltcube_499564801_499824001_4FGL_J1200.6+1229_daily_bin1004.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/253614/ft2_4FGL_J1200.6+1229_daily_bin1004.fits
.....................!
real 13.12
user 12.48
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253614/ft1_filtered_4FGL_J1200.6+1229_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/253614/ft2_4FGL_J1200.6+1229_daily_bin1004.fits sctable="SC_DATA" expcube=/scratch/kocevski/253614/ltcube_499564801_499824001_4FGL_J1200.6+1229_daily_bin1004.fits outfile=/scratch/kocevski/253614/expmap_499564801_499824001_4FGL_J1200.6+1229_daily_bin1004.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/253614/ltcube_499564801_499824001_4FGL_J1200.6+1229_daily_bin1004.fits
.....................!
real 191.86
user 185.62
sys 5.57

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/253614/ft1_filtered_4FGL_J1200.6+1229_daily_bin1004.fits scfile=/scratch/kocevski/253614/ft2_4FGL_J1200.6+1229_daily_bin1004.fits outfile=/scratch/kocevski/253614/cmap_499564801_499824001_4FGL_J1200.6+1229_daily_bin1004.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253614/ft1_filtered_4FGL_J1200.6+1229_daily_bin1004.fits scfile=/scratch/kocevski/253614/ft2_4FGL_J1200.6+1229_daily_bin1004.fits outfile=/scratch/kocevski/253614/cmap_HighResolution_499564801_499824001_4FGL_J1200.6+1229_daily_bin1004.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.014       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17047E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .66485E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6001       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1492       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10604E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    54.614       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .87469       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2048       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .18506       1.0000         .10000E-03   10000.    
    18 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    48.018       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10542E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.450       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .72864       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1229       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=   4763.475     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2586 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.024        13.038        .57385E-06    .17418E-03
   2  Prefactor     .10000E-03    27.038       -.40576E-05** at limit **
   3  Prefactor     .10000E-03    82.644       -.42739E-04** at limit **
   4  Prefactor     .10000E-03    13.688        .23525E-06** at limit **
   5  Prefactor     .10000E-03    461.83       -.29901E-04** at limit **
   6  Prefactor     .10000E-03    5.9984       -.16674E-07** at limit **
   7  Prefactor     4.5967        7.8590       -.43497E-05   -.16501E-03
   8  Prefactor     .10000E-03    6.8459       -.19652E-07** at limit **
   9  Prefactor     2.1516        4.2535       -.19761E-06   -.47716E-03
  10  Prefactor     .10000E-03    89.997        .46963E-04** at limit **
  11  Prefactor     54.621        45.118        .85936E-06    .40149E-04
  12  Prefactor     .87029        3.2121       -.79428E-06   -.94045E-03
  13  Prefactor     4.2088        4.8134        .32613E-06   -.20809E-03
  14  Prefactor     .10000E-03    10.728       -.64839E-07** at limit **
  15  norm          .10000E-03    1.1651       -.11535E-06** at limit **
  16  Prefactor     .10000E-03    24.007        .40653E-06** at limit **
  17  norm          .18491        .23422       -.15642E-07   -.14559E-02
  18  norm          .10000E-03    31.658        .41575E-05** at limit **
  19  Prefactor     48.088        119.07        .79816E-04    .33494E-06
  20  Prefactor     .10000E-03    6.6656        .17190E-06** at limit **
  21  Prefactor     35.464        36.112       -.49297E-05   -.86899E-05
  22  Normalizat    .72866        .20259        .74980E-06    .14521E-03
  23  Prefactor     1.1231        .18356       -.89710E-06    .25142E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.0242
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.59667
  Prefactor  = 0.0001
  Prefactor  = 2.15159
  Prefactor  = 0.0001
  Prefactor  = 54.6214
  Prefactor  = 0.870287
  Prefactor  = 4.20881
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.184915
  norm       = 0.0001
  Prefactor  = 48.0876
  Prefactor  = 0.0001
  Prefactor  = 35.464
  Normalizat = 0.728665
  Prefactor  = 1.12307
 **********
 **   18 **HESSE 
 **********

 FCN=   4763.475     FROM HESSE     STATUS=OK           364 CALLS     2950 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.024        13.044        .10337E-03   -1.4933    
   2  Prefactor     .10000E-03    27.959        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    83.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    466.29        .18782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.0640        .16506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5967        7.8623        .18767E-03   -1.5279    
   8  Prefactor     .10000E-03    6.8537        .17636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1516        4.1769        .18333E-03   -1.5415    
  10  Prefactor     .10000E-03    90.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     54.621        45.240        .54277E-04   -1.4228    
  12  Prefactor     .87029        2.9661        .19142E-03   -1.5521    
  13  Prefactor     4.2088        4.5648        .13244E-03   -1.5298    
  14  Prefactor     .10000E-03    10.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.1831        .72729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .18491        .21913        .36166E-03   -1.5622    
  18  norm          .10000E-03    32.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     48.088        118.59        .57867E-04   -1.4320    
  20  Prefactor     .10000E-03    6.6779        .17386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.464        36.149        .67308E-04   -1.4516    
  22  Normalizat    .72866        .23308        .28024E-03   -1.0277    
  23  Prefactor     1.1231        .21185        .21832E-03   -.88733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21925e-09
Minuit parameter uncertainties:
  1  13.0464
  2  9.98941e-05
  3  0.000414154
  4  2.29253e-05
  5  0.000719493
  6  1.95626e-06
  7  7.86404
  8  6.20216e-07
  9  4.17743
  10  6.95691e-05
  11  45.2685
  12  2.96659
  13  4.56519
  14  3.2433e-05
  15  1.35921e-05
  16  0.000305414
  17  0.219135
  18  0.000102939
  19  119.175
  20  4.24386e-05
  21  36.1717
  22  0.2334
  23  0.212009
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  6.202e-07  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.123e+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:  7.287e-01  2.334e-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: 6.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253614/likelihoodResults_499564801_499824001_4FGL_J1200.6+1229_daily_bin1004.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) = 4763.47520429
delta logL = -0.000693811261044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4763.47451046
delta logL = 1.74250089913e-08

Fit tolerance = 1e-08

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

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

 FCN=   4763.475     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      207 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.631        .90712E-02** at limit **
   2  Index         2.3681        5.3576        .50000        .11995E-04
   3  Normalizat    .72867        .19075        .63348E-01    .15148E-04
   4  Prefactor     1.1231        .18187        .36769E-01    .59717E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.3681
  Normalizat = 0.728665
  Prefactor  = 1.12306
 **********
 **   18 **HESSE 
 **********

 FCN=   4763.475     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9845        .17704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3681        6.1795        .50000       -.55434    
   3  Normalizat    .72867        .21891        .28024E-03   -1.0277    
   4  Prefactor     1.1231        .20908        .21832E-03   -.88733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62582e-10
Minuit parameter uncertainties:
  1  6.72474e-06
  2  4.57748
  3  0.219169
  4  0.209233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253614': 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) = 4763.47451042
delta logL = 5.55246515432e-08

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  6.725e-06  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.368e+00  4.577e+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:  1.123e+00  2.092e-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:  7.287e-01  2.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/253614/cmap_HighResolution_499564801_499824001_4FGL_J1200.6+1229_daily_bin1004.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.34e-03', job_status='DONE', photon_flux_upper_limit='6.92e-08', time_completed='2021-09-04 20:34:25.168509', job_id='253614', GAL2='1.12', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1630812865.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='5.55e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1004' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:34:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 253614: <4FGL_J1200.6+1229_daily_bin1004> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1004 180.173 12.4922 499564801 499824001 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 :                                   611.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            824 sec.

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

