/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 238 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 = 7487
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1200.6+1229_daily_bin37
RA = 180.173, Dec = 12.4922
tmin = 248918401, tmax = 249177601
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='247706', job_status='RUN', time_executed='2021-09-04 20:05:19.637309', time_epoch_executed='1630811119.64' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/247706

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/247706/ft1_4FGL_J1200.6+1229_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/247706/ft2_4FGL_J1200.6+1229_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/247706/ft1_4FGL_J1200.6+1229_daily_bin37.fits outfile=/scratch/kocevski/247706/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin37.fits ra=180.173 dec=12.4922 rad=12.0 tmin=248918401.0 tmax=249177601.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 1.96
user 1.74
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/247706/ft1_filtered_4FGL_J1200.6+1229_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/247706/ft2_4FGL_J1200.6+1229_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/247706/ltcube_248918401_249177601_4FGL_J1200.6+1229_daily_bin37.fits outfile=/scratch/kocevski/247706/expmap_248918401_249177601_4FGL_J1200.6+1229_daily_bin37.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/247706/ltcube_248918401_249177601_4FGL_J1200.6+1229_daily_bin37.fits
.....................!
real 191.02
user 185.23
sys 5.41

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/247706/ft1_filtered_4FGL_J1200.6+1229_daily_bin37.fits scfile=/scratch/kocevski/247706/ft2_4FGL_J1200.6+1229_daily_bin37.fits outfile=/scratch/kocevski/247706/cmap_248918401_249177601_4FGL_J1200.6+1229_daily_bin37.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/247706/ft1_filtered_4FGL_J1200.6+1229_daily_bin37.fits scfile=/scratch/kocevski/247706/ft2_4FGL_J1200.6+1229_daily_bin37.fits outfile=/scratch/kocevski/247706/cmap_HighResolution_248918401_249177601_4FGL_J1200.6+1229_daily_bin37.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.70
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3663       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8157       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0340       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7361       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14044E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    70.713       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5671       1.0000         .10000E-03   10000.    
    16 'Prefactor '    54.720       1.0000         .10000E-03   10000.    
    17 'norm      '    .19905       1.0000         .10000E-03   10000.    
    18 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1094       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1362       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=   5654.529     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2523 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3650        3.6533        .62886E-06   -.12365E-02
   2  Prefactor     2.8136        14.211        .13538E-06   -.32599E-03
   3  Prefactor     .10000E-03    39.438        .16624E-04** at limit **
   4  Prefactor     .10000E-03    9.3881        .60332E-06** at limit **
   5  Prefactor     .10000E-03    28.701       -.13279E-04** at limit **
   6  Prefactor     7.0334        13.088       -.12294E-05   -.71221E-04
   7  Prefactor     4.7358        7.9137        .19794E-06   -.37751E-03
   8  Prefactor     .10000E-03    37.288        .10784E-04** at limit **
   9  Prefactor     .10000E-03    1.1193        .14788E-07** at limit **
  10  Prefactor     70.723        88.601        .97825E-05   -.46901E-04
  11  Prefactor     .10000E-03    25.277       -.11160E-04** at limit **
  12  Prefactor     .10000E-03    1.2518        .26359E-07** at limit **
  13  Prefactor     .10000E-03    1.0044       -.25471E-08** at limit **
  14  Prefactor     .10000E-03    10.443       -.79309E-06** at limit **
  15  norm          1.5667        2.8781        .23305E-06    .69632E-04
  16  Prefactor     54.713        41.540       -.57613E-05   -.21419E-04
  17  norm          .19904        .20465        .23911E-08   -.18562E-03
  18  norm          .10000E-03    56.832       -.56130E-05** at limit **
  19  Prefactor     .10000E-03    58.306       -.11284E-04** at limit **
  20  Prefactor     .10000E-03    8.0485        .15657E-08** at limit **
  21  Prefactor     .10000E-03    21.960        .10430E-04** at limit **
  22  Normalizat    1.1097        .19410       -.68387E-06   -.12814E-03
  23  Prefactor     1.1359        .18460        .44334E-06   -.16713E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.365
  Prefactor  = 2.81363
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.03336
  Prefactor  = 4.7358
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 70.7228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.56671
  Prefactor  = 54.7131
  norm       = 0.199045
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10969
  Prefactor  = 1.13593
 **********
 **   18 **HESSE 
 **********

 FCN=   5654.529     FROM HESSE     STATUS=OK           364 CALLS     2887 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3650        13.412        .18663E-02   -1.5474    
   2  Prefactor     2.8136        15.488        .12120E-02   -1.5372    
   3  Prefactor     .10000E-03    39.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.5544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.0334        13.077        .15126E-03   -1.5177    
   7  Prefactor     4.7358        8.0588        .92446E-03   -1.5273    
   8  Prefactor     .10000E-03    37.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.1247        .77680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     70.723        88.201        .47738E-04   -1.4024    
  11  Prefactor     .10000E-03    25.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.2881        .16421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.0147        .73568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5667        2.8528        .16626E-03   -1.5458    
  16  Prefactor     54.713        41.589        .54224E-04   -1.4227    
  17  norm          .19904        .19316        .33268E-03   -1.5619    
  18  norm          .10000E-03    56.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    58.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.1028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1097        .23419        .25887E-03   -.89441    
  23  Prefactor     1.1359        .22080        .24655E-03   -.88326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19863e-09
Minuit parameter uncertainties:
  1  8.55962
  2  13.2075
  3  1.92119e-05
  4  5.20625e-06
  5  6.68001e-05
  6  13.0818
  7  8.06065
  8  0.000420144
  9  1.90436e-07
  10  88.3651
  11  3.50991e-05
  12  6.89547e-07
  13  5.55075e-07
  14  2.16044e-06
  15  2.85304
  16  41.6112
  17  0.193156
  18  3.83204e-05
  19  5.88737e-05
  20  5.20542e-07
  21  3.25716e-05
  22  0.234409
  23  0.220983
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  4.201e-04  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.136e+00  2.210e-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.110e+00  2.344e-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: 9.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/247706/likelihoodResults_248918401_249177601_4FGL_J1200.6+1229_daily_bin37.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5654.52945971
delta logL = -0.000127359351609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5654.52933301
delta logL = -6.62910679239e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3181       1.0000          .0000       10.000    
     3 'Normalizat'    1.1097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1359       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5654.529     FROM MIGRAD    STATUS=FAILED       103 CALLS      294 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10024E-03    7873.6        .36285E-03** at limit **
   2  Index         2.4296        7.3891        .50000       -.48391E-04
   3  Normalizat    1.1097        .70095E-01    .25887E-03   -.37988E-04
   4  Prefactor     1.1359        .67766E-01    .24655E-03   -.86688E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5654.529     FROM SIMPLEX   STATUS=UNCHANGED    183 CALLS      477 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10024E-03    7873.6        .13671E-02** at limit **
   2  Index         2.4296        7.3891        .38452E-05   -.48391E-04
   3  Normalizat    1.1097        .70095E-01    .15805E-06   -.37988E-04
   4  Prefactor     1.1359        .67766E-01    .47265E-07   -.86688E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5654.529     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      511 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    90.146        .72569E-04** at limit **
   2  Index         2.4295        6.1381        .50000       -.48332E-04
   3  Normalizat    1.1097        .22582        .10355E-04   -.37549E-04
   4  Prefactor     1.1359        .21836        .98621E-05   -.80693E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100131
  Index      = 2.42949
  Normalizat = 1.10969
  Prefactor  = 1.13593
 **********
 **   18 **HESSE 
 **********

 FCN=   5654.529     FROM HESSE     STATUS=OK            29 CALLS      540 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10013E-03    57.648        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4295        6.2147        .50000       -.53996    
   3  Normalizat    1.1097        .22624        .20710E-05   -.89441    
   4  Prefactor     1.1359        .21882        .19724E-05   -.88326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81133e-09
Minuit parameter uncertainties:
  1  0.00549437
  2  4.38415
  3  0.226439
  4  0.218994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/247706': 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) = 5654.5293319
delta logL = 4.48742866865e-07

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.001e-04  5.494e-03  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.429e+00  4.384e+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.136e+00  2.190e-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.110e+00  2.264e-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/247706/cmap_HighResolution_248918401_249177601_4FGL_J1200.6+1229_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.35e-03', job_status='DONE', photon_flux_upper_limit='9.52e-08', time_completed='2021-09-04 20:16:37.709557', job_id='247706', GAL2='1.14', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630811797.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='4.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='37' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:16:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 247706: <4FGL_J1200.6+1229_daily_bin37> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin37> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 20:01:11 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:01:13 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:01:13 2021
Terminated at Sat Sep  4 20:16:38 2021
Results reported at Sat Sep  4 20:16:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin37 180.173 12.4922 248918401 249177601 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 :                                   674.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            927 sec.

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

