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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1465
RA = 180.173, Dec = 12.4922
tmin = 619056001, tmax = 619315201
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='255622', job_status='RUN', time_executed='2021-09-04 20:29:08.270308', time_epoch_executed='1630812548.27' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255622

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255622/ft1_4FGL_J1200.6+1229_daily_bin1465.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255622/ft2_4FGL_J1200.6+1229_daily_bin1465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255622/ft1_4FGL_J1200.6+1229_daily_bin1465.fits outfile=/scratch/kocevski/255622/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1465.fits ra=180.173 dec=12.4922 rad=12.0 tmin=619056001.0 tmax=619315201.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.59
user 3.37
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255622/ft1_filtered_4FGL_J1200.6+1229_daily_bin1465.fits" evtable="EVENTS" scfile=/scratch/kocevski/255622/ft2_4FGL_J1200.6+1229_daily_bin1465.fits sctable="SC_DATA" outfile=/scratch/kocevski/255622/ltcube_619056001_619315201_4FGL_J1200.6+1229_daily_bin1465.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/255622/ft2_4FGL_J1200.6+1229_daily_bin1465.fits
.....................!
real 11.52
user 11.06
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255622/ft1_filtered_4FGL_J1200.6+1229_daily_bin1465.fits evtable="EVENTS" scfile=/scratch/kocevski/255622/ft2_4FGL_J1200.6+1229_daily_bin1465.fits sctable="SC_DATA" expcube=/scratch/kocevski/255622/ltcube_619056001_619315201_4FGL_J1200.6+1229_daily_bin1465.fits outfile=/scratch/kocevski/255622/expmap_619056001_619315201_4FGL_J1200.6+1229_daily_bin1465.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/255622/ltcube_619056001_619315201_4FGL_J1200.6+1229_daily_bin1465.fits
.....................!
real 190.38
user 184.68
sys 4.90

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/255622/ft1_filtered_4FGL_J1200.6+1229_daily_bin1465.fits scfile=/scratch/kocevski/255622/ft2_4FGL_J1200.6+1229_daily_bin1465.fits outfile=/scratch/kocevski/255622/cmap_619056001_619315201_4FGL_J1200.6+1229_daily_bin1465.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/255622/ft1_filtered_4FGL_J1200.6+1229_daily_bin1465.fits scfile=/scratch/kocevski/255622/ft2_4FGL_J1200.6+1229_daily_bin1465.fits outfile=/scratch/kocevski/255622/cmap_HighResolution_619056001_619315201_4FGL_J1200.6+1229_daily_bin1465.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.904       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.335       1.0000         .10000E-03   10000.    
     3 'Prefactor '    88.755       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .74674E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11902E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1667       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0164       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8936       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9823       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .78977       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7225       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.3819       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.727       1.0000         .10000E-03   10000.    
    17 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3926       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.827       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .98557       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86656       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5861.149     FROM MIGRAD    STATUS=CONVERGED     76 CALLS     2169 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.908        1.1118       -.48232E-06    .14829E-02
   2  Prefactor     11.340        1.2250       -.72227E-06    .20358E-02
   3  Prefactor     88.754        1.0338       -.93163E-07    .23068E-02
   4  Prefactor     .10052E-03    2.6153        .70057E-05** at limit **
   5  Prefactor     .16636E-03    34.558       -.13612E-04** at limit **
   6  Prefactor     .10000E-03    9.7562       -.76213E-06** at limit **
   7  Prefactor     1.1641        6.2272       -.15680E-04   -.29079E-02
   8  Prefactor     2.0099        1.2537        .15980E-05   -.67923E-03
   9  Prefactor     2.8961        4.4236       -.28904E-05   -.16970E-02
  10  Prefactor     .11224E-03    39.097        .14002E-05** at limit **
  11  Prefactor     7.9784        1.0469        .27635E-06   -.80317E-03
  12  Prefactor     .79024        2.4843        .11014E-05    .29046E-03
  13  Prefactor     5.7242        3.7931       -.48771E-06   -.55835E-03
  14  Prefactor     .10000E-03    8.6206        .61615E-06** at limit **
  15  norm          7.3836        3.4781        .23251E-05    .33569E-02
  16  Prefactor     11.720        1.1381       -.33285E-06    .11249E-02
  17  norm          .10000E-03    .15922        .66994E-07** at limit **
  18  norm          .10004E-03    20.953       -.10471E-05** at limit **
  19  Prefactor     .10733E-03    38.517        .13682E-06** at limit **
  20  Prefactor     3.3957        1.1443        .10235E-05   -.27596E-03
  21  Prefactor     25.821        1.0778       -.80710E-07    .78257E-03
  22  Normalizat    .98515        .21797        .20192E-06   -.59022E-04
  23  Prefactor     .86695        .19547        .14477E-05   -.46861E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.9078
  Prefactor  = 11.3396
  Prefactor  = 88.7539
  Prefactor  = 0.000100523
  Prefactor  = 0.000166361
  Prefactor  = 0.000100002
  Prefactor  = 1.16413
  Prefactor  = 2.00991
  Prefactor  = 2.89609
  Prefactor  = 0.000112244
  Prefactor  = 7.97844
  Prefactor  = 0.790235
  Prefactor  = 5.7242
  Prefactor  = 0.000100001
  norm       = 7.38357
  Prefactor  = 11.72
  norm       = 0.0001
  norm       = 0.000100044
  Prefactor  = 0.00010733
  Prefactor  = 3.39572
  Prefactor  = 25.821
  Normalizat = 0.985146
  Prefactor  = 0.866949
 **********
 **   18 **HESSE 
 **********

 FCN=   5861.149     FROM HESSE     STATUS=OK           426 CALLS     2595 TOTAL
                     EDM=   .83E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.908        13.097        .29026E-02   -1.5018    
   2  Prefactor     11.340        14.193        .29749E-02   -1.5034    
   3  Prefactor     88.754        51.857        .10662E-02   -1.3821    
   4  Prefactor     .10052E-03    7.9380        .77910E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16636E-03    126.09        .90712E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.6045        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1641        6.7043        .10638E-01   -1.5492    
   8  Prefactor     2.0099        37.165        .72870E-02   -1.5424    
   9  Prefactor     2.8961        4.5762        .59724E-02   -1.5368    
  10  Prefactor     .11224E-03    102.26        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.9784        17.431        .35479E-02   -1.5143    
  12  Prefactor     .79024        2.6128        .12402E-01   -1.5530    
  13  Prefactor     5.7242        3.8714        .41977E-02   -1.5229    
  14  Prefactor     .10000E-03    8.6184        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.3836        3.5066        .36905E-02   -1.5164    
  16  Prefactor     11.720        30.062        .29246E-02   -1.5023    
  17  norm          .10000E-03    .12165        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10004E-03    21.874        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10733E-03    103.77        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.3957        9.7511        .54915E-02   -1.5339    
  21  Prefactor     25.821        26.296        .19707E-02   -1.4691    
  22  Normalizat    .98515        .19849        .45986E-01   -.93530    
  23  Prefactor     .86695        .16949        .44577E-01   -.97306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34758e-07
Minuit parameter uncertainties:
  1  13.1001
  2  14.1977
  3  51.8834
  4  0.00407703
  5  0.183333
  6  0.000283845
  7  5.5881
  8  17.2977
  9  4.57678
  10  0.0708895
  11  17.4423
  12  2.6132
  13  3.87153
  14  0.000173166
  15  3.50674
  16  30.1008
  17  1.02973e-06
  18  0.00196799
  19  0.0552562
  20  9.75566
  21  26.3076
  22  0.198638
  23  0.16959
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  2.010e+00  1.730e+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:  8.669e-01  1.696e-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:  9.851e-01  1.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/255622/likelihoodResults_619056001_619315201_4FGL_J1200.6+1229_daily_bin1465.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) = 5860.55843962
delta logL = 0.590370634812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5860.55815729
delta logL = 0.590652965403

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3252       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9797       1.0000          .0000       10.000    
     3 'Normalizat'    .91761       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90370       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=   5860.558     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      222 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3079        27.986        .95471E-02   -.19420E-02
   2  Index         3.9859        3.2935        .11215       -.16356E-03
   3  Normalizat    .91760        .48398E-01    .45126E-01   -.30334E-03
   4  Prefactor     .90373        .44362E-01    .45052E-01   -.22428E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.30787
  Index      = 3.98588
  Normalizat = 0.917601
  Prefactor  = 0.903728
 **********
 **   18 **HESSE 
 **********

 FCN=   5860.558     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      251 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3079        64.263        .84249E-04   -1.5479    
   2  Index         3.9859        6.9929        .58703E-02   -.20424    
   3  Normalizat    .91760        .19728        .26458E-03   -.95844    
   4  Prefactor     .90373        .17927        .24388E-03   -.96011    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.60657e-09
Minuit parameter uncertainties:
  1  18.3557
  2  6.7317
  3  0.197432
  4  0.179388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255622': 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): 102
logL (Free Index) = 5860.55814867
delta logL = 0.590661587398

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.308e+00  1.836e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  3.986e+00  6.732e+00  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  9.037e-01  1.794e-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:  9.176e-01  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 180.173 12.492
Photon Index (Free Index): 3.99 +/- 6.73
Photon Flux (Free Index): 5.96e-08 +/- 6.09e-08
Energy Flux (Free Index): 8.94e-06 +/- 1.48e-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/255622/cmap_HighResolution_619056001_619315201_4FGL_J1200.6+1229_daily_bin1465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', comment='SUCCESS', energy_flux2='8.94e-06', dlogl='5.91e-01', photon_flux2='5.96e-08', job_status='DONE', time_completed='2021-09-04 20:42:01.836531', photon_index_error2='6.73', photon_index2='3.99', ts='0.02', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='9.40e-08', energy_flux_error2='1.48e-05', EG='0.99', time_epoch_completed='1630813321.84', return_code='0', job_id='255622', GAL2='0.90', EG2='0.92', return_code2='102', photon_flux_error2='6.09e-08', ts2='1.29', photon_index='2.39' WHERE bin_id='1465' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:42:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 255622: <4FGL_J1200.6+1229_daily_bin1465> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1465 180.173 12.4922 619056001 619315201 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 :                                   632.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

