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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin899
RA = 180.173, Dec = 12.4922
tmin = 472348801, tmax = 472608001
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='253451', job_status='RUN', time_executed='2021-09-04 20:20:46.163395', time_epoch_executed='1630812046.16' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='899'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253451

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253451/ft1_4FGL_J1200.6+1229_daily_bin899.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253451/ft2_4FGL_J1200.6+1229_daily_bin899.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253451/ft1_4FGL_J1200.6+1229_daily_bin899.fits outfile=/scratch/kocevski/253451/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin899.fits ra=180.173 dec=12.4922 rad=12.0 tmin=472348801.0 tmax=472608001.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.81
user 3.59
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253451/ft1_filtered_4FGL_J1200.6+1229_daily_bin899.fits" evtable="EVENTS" scfile=/scratch/kocevski/253451/ft2_4FGL_J1200.6+1229_daily_bin899.fits sctable="SC_DATA" outfile=/scratch/kocevski/253451/ltcube_472348801_472608001_4FGL_J1200.6+1229_daily_bin899.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/253451/ft2_4FGL_J1200.6+1229_daily_bin899.fits
.....................!
real 11.82
user 11.37
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253451/ft1_filtered_4FGL_J1200.6+1229_daily_bin899.fits evtable="EVENTS" scfile=/scratch/kocevski/253451/ft2_4FGL_J1200.6+1229_daily_bin899.fits sctable="SC_DATA" expcube=/scratch/kocevski/253451/ltcube_472348801_472608001_4FGL_J1200.6+1229_daily_bin899.fits outfile=/scratch/kocevski/253451/expmap_472348801_472608001_4FGL_J1200.6+1229_daily_bin899.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/253451/ltcube_472348801_472608001_4FGL_J1200.6+1229_daily_bin899.fits
.....................!
real 193.07
user 187.23
sys 5.10

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/253451/ft1_filtered_4FGL_J1200.6+1229_daily_bin899.fits scfile=/scratch/kocevski/253451/ft2_4FGL_J1200.6+1229_daily_bin899.fits outfile=/scratch/kocevski/253451/cmap_472348801_472608001_4FGL_J1200.6+1229_daily_bin899.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.53
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .82134E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.731       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8841       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2171       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .49613       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.059       1.0000         .10000E-03   10000.    
    15 'norm      '    6.6934       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .21939       1.0000         .10000E-03   10000.    
    18 'norm      '    61.051       1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.648       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.6715       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1349       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99921       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=   7547.899     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2572 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.0848       -.21803E-05** at limit **
   2  Prefactor     10.729        10.576       -.16214E-05    .22414E-04
   3  Prefactor     .10000E-03    34.477        .92460E-06** at limit **
   4  Prefactor     .10000E-03    3.9573       -.94661E-07** at limit **
   5  Prefactor     .10000E-03    26.294       -.20708E-06** at limit **
   6  Prefactor     7.8783        7.3701       -.81626E-06    .60220E-04
   7  Prefactor     .10000E-03    1.2843       -.25519E-07** at limit **
   8  Prefactor     .10000E-03    6.6452       -.54294E-08** at limit **
   9  Prefactor     .10000E-03    1.0461       -.57494E-07** at limit **
  10  Prefactor     .10000E-03    89.777       -.25154E-05** at limit **
  11  Prefactor     .10000E-03    15.952        .99264E-07** at limit **
  12  Prefactor     1.2163        2.2762       -.45425E-06   -.46404E-03
  13  Prefactor     .49293        2.1863       -.14662E-05   -.43932E-03
  14  Prefactor     11.059        14.968        .39265E-05    .34103E-04
  15  norm          6.6943        4.4151       -.76936E-05    .52768E-04
  16  Prefactor     .10000E-03    9.9608        .44529E-06** at limit **
  17  norm          .21933        .24197       -.18906E-06   -.24843E-02
  18  norm          60.923        54.658        .65413E-04   -.38921E-04
  19  Prefactor     28.323        89.963       -.22284E-03    .22845E-04
  20  Prefactor     7.6691        9.8132       -.25846E-05   -.67749E-05
  21  Prefactor     .10000E-03    6.9911        .90586E-07** at limit **
  22  Normalizat    1.1354        .17202        .31147E-05    .61279E-03
  23  Prefactor     .99875        .15704        .21278E-05    .56299E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100004
  Prefactor  = 10.7294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.8783
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.21632
  Prefactor  = 0.492927
  Prefactor  = 11.0585
  norm       = 6.69429
  Prefactor  = 0.000100001
  norm       = 0.21933
  norm       = 60.923
  Prefactor  = 28.3227
  Prefactor  = 7.66907
  Prefactor  = 0.0001
  Normalizat = 1.13541
  Prefactor  = 0.99875
 **********
 **   18 **HESSE 
 **********

 FCN=   7547.899     FROM HESSE     STATUS=OK           370 CALLS     2942 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    45.475        .43875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.729        10.582        .12230E-03   -1.5053    
   3  Prefactor     .10000E-03    34.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9724        .16876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8783        7.3681        .14280E-03   -1.5147    
   7  Prefactor     .10000E-03    1.2851        .96153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.6599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.0510        .86746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    90.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2163        2.1552        .15971E-03   -1.5487    
  13  Prefactor     .49293        3.7612        .22344E-02   -1.5568    
  14  Prefactor     11.059        14.959        .12047E-03   -1.5043    
  15  norm          6.6943        4.4274        .11510E-03   -1.5190    
  16  Prefactor     .10000E-03    9.9747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .21933        .23046        .42379E-03   -1.5614    
  18  norm          60.923        54.774        .25676E-03   -1.4145    
  19  Prefactor     28.323        90.147        .74852E-04   -1.4643    
  20  Prefactor     7.6691        9.8024        .14478E-03   -1.5154    
  21  Prefactor     .10000E-03    6.9952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1354        .20027        .25453E-03   -.88623    
  23  Prefactor     .99875        .18571        .25326E-03   -.92771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.94677e-10
Minuit parameter uncertainties:
  1  0.000899168
  2  10.5835
  3  0.000135513
  4  1.54501e-05
  5  1.47449e-05
  6  7.36898
  7  6.5495e-07
  8  1.2289e-05
  9  3.29303e-06
  10  8.57337e-05
  11  6.4341e-08
  12  2.15535
  13  2.72318
  14  14.9643
  15  4.42759
  16  0.000148038
  17  0.230464
  18  54.8192
  19  90.5849
  20  9.80446
  21  1.50475e-05
  22  0.200405
  23  0.185833
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.229e-05  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:  9.987e-01  1.858e-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.135e+00  2.004e-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.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253451/likelihoodResults_472348801_472608001_4FGL_J1200.6+1229_daily_bin899.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) = 7547.89929601
delta logL = -0.000715359617061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7547.89858076
delta logL = -1.08604581328e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3766       1.0000          .0000       10.000    
     3 'Normalizat'    1.1354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99880       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=   7547.899     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10054E-03    78.358        .18142E-02** at limit **
   2  Index         2.3363        6.6109        .50000        .11284E-04
   3  Normalizat    1.1354        .14551E-01    .25453E-03    .16928E-04
   4  Prefactor     .99875        .13749E-01    .25326E-03    .13512E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010054
  Index      = 2.33631
  Normalizat = 1.13541
  Prefactor  = 0.998749
 **********
 **   18 **HESSE 
 **********

 FCN=   7547.899     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10054E-03    344.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3363        5.8406        .50000       -.56183    
   3  Normalizat    1.1354        .32104E-01    .10181E-04   -.88623    
   4  Prefactor     .99875        .30333E-01    .10130E-04   -.92771    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25146e-08
Minuit parameter uncertainties:
  1  0.0274204
  2  777.474
  3  0.0321041
  4  0.0303335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253451': 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) = 7547.89858054
delta logL = 1.11451299745e-07

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.005e-04  2.742e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.336e+00  7.775e+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:  9.987e-01  3.033e-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.135e+00  3.210e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/253451/cmap_HighResolution_472348801_472608001_4FGL_J1200.6+1229_daily_bin899.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-03', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2021-09-04 20:33:55.894650', job_id='253451', GAL2='1.00', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630812835.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='899' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:33:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 253451: <4FGL_J1200.6+1229_daily_bin899> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin899> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 20:20:28 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:20:30 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:30 2021
Terminated at Sat Sep  4 20:33:56 2021
Results reported at Sat Sep  4 20:33:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin899 180.173 12.4922 472348801 472608001 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 :                                   781.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            808 sec.

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

