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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin457
RA = 180.173, Dec = 12.4922
tmin = 357782401, tmax = 358041601
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='250696', job_status='RUN', time_executed='2021-09-04 20:10:54.479371', time_epoch_executed='1630811454.48' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='457'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250696

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250696/ft1_4FGL_J1200.6+1229_daily_bin457.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250696/ft2_4FGL_J1200.6+1229_daily_bin457.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250696/ft1_4FGL_J1200.6+1229_daily_bin457.fits outfile=/scratch/kocevski/250696/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin457.fits ra=180.173 dec=12.4922 rad=12.0 tmin=357782401.0 tmax=358041601.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.49
user 3.28
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250696/ft2_4FGL_J1200.6+1229_daily_bin457.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/250696/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin457.fits evtable="EVENTS" outfile="/scratch/kocevski/250696/ft1_filtered_4FGL_J1200.6+1229_daily_bin457.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.49
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250696/ft1_filtered_4FGL_J1200.6+1229_daily_bin457.fits evtable="EVENTS" scfile=/scratch/kocevski/250696/ft2_4FGL_J1200.6+1229_daily_bin457.fits sctable="SC_DATA" expcube=/scratch/kocevski/250696/ltcube_357782401_358041601_4FGL_J1200.6+1229_daily_bin457.fits outfile=/scratch/kocevski/250696/expmap_357782401_358041601_4FGL_J1200.6+1229_daily_bin457.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/250696/ltcube_357782401_358041601_4FGL_J1200.6+1229_daily_bin457.fits
.....................!
real 191.78
user 186.46
sys 4.58

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/250696/ft1_filtered_4FGL_J1200.6+1229_daily_bin457.fits scfile=/scratch/kocevski/250696/ft2_4FGL_J1200.6+1229_daily_bin457.fits outfile=/scratch/kocevski/250696/cmap_357782401_358041601_4FGL_J1200.6+1229_daily_bin457.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.932       1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.682       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22674E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3339       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.152       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.564       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2052       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .90876       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.356       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5641       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.4092       1.0000         .10000E-03   10000.    
    18 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10136E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.785       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1770       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .74634       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=   6467.404     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2589 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.537        .27265E-05** at limit **
   2  Prefactor     17.926        16.631        .54199E-06   -.92039E-04
   3  Prefactor     44.599        44.836        .17503E-06   -.16946E-05
   4  Prefactor     .10004E-03    14.794       -.27123E-05** at limit **
   5  Prefactor     .10000E-03    28.077        .24761E-06** at limit **
   6  Prefactor     4.3304        7.3920        .66855E-07   -.10154E-03
   7  Prefactor     10.153        8.5346        .21563E-06   -.20200E-04
   8  Prefactor     .10000E-03    5.9323       -.43340E-07** at limit **
   9  Prefactor     .10000E-03    4.1884       -.44069E-07** at limit **
  10  Prefactor     .10000E-03    28.531        .46788E-07** at limit **
  11  Prefactor     15.541        32.223        .65138E-06   -.21215E-05
  12  Prefactor     4.2051        3.2645       -.10729E-06   -.38526E-03
  13  Prefactor     .90805        3.1026       -.63275E-06   -.59366E-03
  14  Prefactor     12.354        21.041        .31660E-06   -.75683E-05
  15  norm          3.5631        3.0558        .12730E-06   -.15428E-03
  16  Prefactor     .10000E-03    6.9077       -.12158E-07** at limit **
  17  norm          2.4091        .45877        .34057E-07   -.33886E-03
  18  norm          .10000E-03    19.229       -.48602E-07** at limit **
  19  Prefactor     .10000E-03    38.485       -.46955E-06** at limit **
  20  Prefactor     .10003E-03    50.834        .11120E-04** at limit **
  21  Prefactor     21.864        25.014       -.11642E-05   -.17817E-03
  22  Normalizat    1.1770        .22449       -.66692E-05   -.41139E-03
  23  Prefactor     .74665        .19174        .56956E-05   -.52214E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  Prefactor  = 17.9257
  Prefactor  = 44.5993
  Prefactor  = 0.000100043
  Prefactor  = 0.0001
  Prefactor  = 4.33037
  Prefactor  = 10.1526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5412
  Prefactor  = 4.20509
  Prefactor  = 0.908054
  Prefactor  = 12.3537
  norm       = 3.56311
  Prefactor  = 0.0001
  norm       = 2.40911
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100031
  Prefactor  = 21.8639
  Normalizat = 1.17699
  Prefactor  = 0.746651
 **********
 **   18 **HESSE 
 **********

 FCN=   6467.404     FROM HESSE     STATUS=OK           372 CALLS     2961 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.207        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.926        16.617        .94581E-04   -1.4861    
   3  Prefactor     44.599        45.017        .59978E-04   -1.4371    
   4  Prefactor     .10004E-03    38.375        .40058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3304        7.3825        .19349E-03   -1.5292    
   7  Prefactor     10.153        8.5246        .12576E-03   -1.5071    
   8  Prefactor     .10000E-03    5.9487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.3545        .32080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.541        32.193        .10152E-03   -1.4919    
  12  Prefactor     4.2051        3.1819        .11257E-03   -1.5298    
  13  Prefactor     .90805        3.0919        .23265E-03   -1.5517    
  14  Prefactor     12.354        21.007        .11396E-03   -1.5005    
  15  norm          3.5631        3.0461        .12232E-03   -1.5330    
  16  Prefactor     .10000E-03    6.9083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.4091        .45895        .22651E-04   -1.5398    
  18  norm          .10000E-03    19.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    38.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    62.624        .42127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.864        24.338        .85817E-04   -1.4772    
  22  Normalizat    1.1770        .22802        .25417E-03   -.87317    
  23  Prefactor     .74665        .19397        .27972E-03   -1.0173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36382e-09
Minuit parameter uncertainties:
  1  0.00035679
  2  16.6212
  3  45.0511
  4  0.00258519
  5  2.69901e-05
  6  7.38401
  7  8.52558
  8  1.33278e-06
  9  8.21504e-06
  10  3.92512e-05
  11  32.2289
  12  3.18199
  13  3.09246
  14  21.0199
  15  3.04624
  16  1.07297e-06
  17  0.458949
  18  4.5601e-06
  19  4.9626e-05
  20  0.00277074
  21  24.3492
  22  0.22821
  23  0.194146
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.333e-06  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:  7.467e-01  1.941e-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.177e+00  2.282e-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: 5.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250696/likelihoodResults_357782401_358041601_4FGL_J1200.6+1229_daily_bin457.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) = 6467.40450304
delta logL = -0.000798188845692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6467.40370514
delta logL = -2.90882780973e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3672       1.0000          .0000       10.000    
     3 'Normalizat'    1.1771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74657       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=   6467.404     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      249 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10172E-03    67.486        .18142E-02** at limit **
   2  Index         2.2988        5.3923        .50000        .22853E-04
   3  Normalizat    1.1770        .15287E-01    .25416E-03   -.40436E-04
   4  Prefactor     .74665        .13773E-01    .27973E-03   -.34546E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101725
  Index      = 2.29875
  Normalizat = 1.17699
  Prefactor  = 0.746654
 **********
 **   18 **HESSE 
 **********

 FCN=   6467.404     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10172E-03    282.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2988        8.8017        .50000       -.57073    
   3  Normalizat    1.1770        .32639E-01    .10166E-04   -.87317    
   4  Prefactor     .74665        .29405E-01    .11189E-04   -1.0173    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.05935e-08
Minuit parameter uncertainties:
  1  0.0443304
  2  652.74
  3  0.0326398
  4  0.0294057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250696': 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) = 6467.40370445
delta logL = 4.02351361117e-07

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.017e-04  4.433e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.299e+00  6.527e+02  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:  7.467e-01  2.941e-02  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.177e+00  3.264e-02  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/250696/cmap_HighResolution_357782401_358041601_4FGL_J1200.6+1229_daily_bin457.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-03', job_status='DONE', photon_flux_upper_limit='5.45e-08', time_completed='2021-09-04 20:22:48.972069', job_id='250696', GAL2='0.75', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630812168.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='4.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='457' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:22:48 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin457 180.173 12.4922 357782401 358041601 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 :                                   712.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             372.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            727 sec.

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

