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


Performing analysis on: 4FGL_J1245.1+5709_daily_bin451
RA = 191.288, Dec = 57.158
tmin = 356227201, tmax = 356486401
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='889958', job_status='RUN', time_executed='2021-09-06 04:08:31.819179', time_epoch_executed='1630926511.82' WHERE source_name='4FGL J1245.1+5709' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889958

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889958/ft1_4FGL_J1245.1+5709_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/889958/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/889958/ft2_4FGL_J1245.1+5709_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889958/ft1_4FGL_J1245.1+5709_daily_bin451.fits outfile=/scratch/kocevski/889958/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin451.fits ra=191.288 dec=57.158 rad=12.0 tmin=356227201.0 tmax=356486401.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.36
user 2.92
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/889958/ft2_4FGL_J1245.1+5709_daily_bin451.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/889958/ft2_4FGL_J1245.1+5709_daily_bin451.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/889958/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/889958/ft1_filtered_4FGL_J1245.1+5709_daily_bin451.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 1.07
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889958/ft1_filtered_4FGL_J1245.1+5709_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/889958/ft2_4FGL_J1245.1+5709_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/889958/ltcube_356227201_356486401_4FGL_J1245.1+5709_daily_bin451.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/889958/ft2_4FGL_J1245.1+5709_daily_bin451.fits
.....................!
real 3.78
user 3.03
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889958/ft1_filtered_4FGL_J1245.1+5709_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/889958/ft2_4FGL_J1245.1+5709_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/889958/ltcube_356227201_356486401_4FGL_J1245.1+5709_daily_bin451.fits outfile=/scratch/kocevski/889958/expmap_356227201_356486401_4FGL_J1245.1+5709_daily_bin451.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/889958/ltcube_356227201_356486401_4FGL_J1245.1+5709_daily_bin451.fits
.....................!
real 191.07
user 185.83
sys 4.79

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 217 point sources and 0 extended sources

Setting source of interest to:
4FGL J1245.1+5709 @ 191.288 57.158

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/889958/ft1_filtered_4FGL_J1245.1+5709_daily_bin451.fits scfile=/scratch/kocevski/889958/ft2_4FGL_J1245.1+5709_daily_bin451.fits outfile=/scratch/kocevski/889958/cmap_356227201_356486401_4FGL_J1245.1+5709_daily_bin451.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=191.288 yref=57.158 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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889958/ft1_filtered_4FGL_J1245.1+5709_daily_bin451.fits scfile=/scratch/kocevski/889958/ft2_4FGL_J1245.1+5709_daily_bin451.fits outfile=/scratch/kocevski/889958/cmap_HighResolution_356227201_356486401_4FGL_J1245.1+5709_daily_bin451.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=191.288 yref=57.158 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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/889958/ft1_filtered_4FGL_J1245.1+5709_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/889958/ft2_4FGL_J1245.1+5709_daily_bin451.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/889958/Model_4FGL_J1245.1+5709_daily_bin451.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/889958/ft1_filtered_4FGL_J1245.1+5709_daily_bin451.fits........................!
real 23.08
user 21.29
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/889958/ft1_filtered_4FGL_J1245.1+5709_daily_bin451.fits', '/scratch/kocevski/889958/ft2_4FGL_J1245.1+5709_daily_bin451.fits', expMap='/scratch/kocevski/889958/expmap_356227201_356486401_4FGL_J1245.1+5709_daily_bin451.fits', expCube='/scratch/kocevski/889958/ltcube_356227201_356486401_4FGL_J1245.1+5709_daily_bin451.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/889958/Model_4FGL_J1245.1+5709_daily_bin451.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1245.1+5709'

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.104e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/889958/ft1_filtered_4FGL_J1245.1+5709_daily_bin451.fits
Spacecraft file(s): /scratch/kocevski/889958/ft2_4FGL_J1245.1+5709_daily_bin451.fits
Exposure map: /scratch/kocevski/889958/expmap_356227201_356486401_4FGL_J1245.1+5709_daily_bin451.fits
Exposure cube: /scratch/kocevski/889958/ltcube_356227201_356486401_4FGL_J1245.1+5709_daily_bin451.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/889958/Model_4FGL_J1245.1+5709_daily_bin451.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) = 1228.16195475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.228       1.0000         .10000E-03   10000.    
     2 'Prefactor '    82.014       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8054       1.0000         .10000E-03   10000.    
     5 'norm      '    7.2140       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7298       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.3315       1.0000         .10000E-03   10000.    
    13 'Prefactor '    105.14       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.6464       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.924       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    200.02       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .93410E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    133.30       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13127       1.0000         .10000E-03   10000.    
    24 'norm      '    14.612       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .71743       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .13836E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    19.906       1.0000         .10000E-03   10000.    
    29 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    10.353       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .26340E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1637       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .21600E-02   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1227.947     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     4014 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.236        9.2406        .11454E-05    .78378E-02
   2  Prefactor     82.005        1.5906       -.32614E-07   -.56479E-03
   3  norm          .10000E-03    15.595        .88773E-07** at limit **
   4  Prefactor     7.7889        7.9348       -.73374E-06    .46739E-02
   5  norm          7.2133        7.4479        .12110E-05    .28058E-02
   6  Prefactor     3.9039        13.659        .62073E-05    .26411E-02
   7  Prefactor     .10000E-03    6.0486       -.14742E-07** at limit **
   8  Prefactor     .10000E-03    18.029       -.72558E-07** at limit **
   9  norm          .10000E-03    1.9514       -.73531E-08** at limit **
  10  Prefactor     .10001E-03    23.958       -.38825E-06** at limit **
  11  Prefactor     .10009E-03    47.799        .74566E-06** at limit **
  12  norm          3.3005        18.235       -.38800E-05    .16784E-02
  13  Prefactor     105.18        4.8016        .27542E-06    .18229E-03
  14  Prefactor     .10000E-03    7.4815        .13779E-06** at limit **
  15  norm          7.6445        5.1467       -.41140E-07   -.60208E-04
  16  Prefactor     25.970        3.6699        .66089E-06    .85126E-03
  17  norm          .10000E-03    2.1682       -.18314E-07** at limit **
  18  Prefactor     200.01        1.1340       -.34183E-07   -.80940E-03
  19  Prefactor     .10000E-03    7.4003       -.24433E-06** at limit **
  20  norm          .10000E-03    10.134        .29433E-08** at limit **
  21  Prefactor     .76016E-03    38.339       -.13162E-04** at limit **
  22  Prefactor     133.22        8.5047       -.73880E-06    .87627E-02
  23  Prefactor     .42650        634.86        .53042E-04   -.93966E-03
  24  norm          14.590        7.9930       -.15873E-05   -.85749E-02
  25  Prefactor     .10046E-03    48.034        .16135E-05** at limit **
  26  Prefactor     .71665        4.3065       -.22082E-06   -.91639E-03
  27  Prefactor     .13755E-03    225.99       -.57486E-05** at limit **
  28  Prefactor     19.907        1.4386       -.14551E-07   -.18373E-02
  29  norm          .71897E-03    106.66       -.15387E-04** at limit **
  30  norm          10.350        1.4951       -.21128E-06   -.15164E-02
  31  Prefactor     .10989E-03    1.9285       -.21492E-05** at limit **
  32  Normalizat    1.1655        .17356       -.48613E-05   -.15696E-03
  33  Prefactor     .91528E-09    8.4012       -.14886E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2356
  Prefactor  = 82.0046
  norm       = 0.000100004
  Prefactor  = 7.78886
  norm       = 7.21326
  Prefactor  = 3.90387
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.000100091
  norm       = 3.30054
  Prefactor  = 105.177
  Prefactor  = 0.0001
  norm       = 7.64449
  Prefactor  = 25.9695
  norm       = 0.0001
  Prefactor  = 200.01
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000760163
  Prefactor  = 133.222
  Prefactor  = 0.426496
  norm       = 14.5897
  Prefactor  = 0.000100462
  Prefactor  = 0.716648
  Prefactor  = 0.000137549
  Prefactor  = 19.9071
  norm       = 0.000718966
  norm       = 10.3505
  Prefactor  = 0.000109895
  Normalizat = 1.16548
  Prefactor  = 9.15282e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   1227.947     FROM HESSE     STATUS=OK           771 CALLS     4785 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.236        12.451        .31322E-02   -1.5068    
   2  Prefactor     82.005        70.332        .11088E-02   -1.3894    
   3  norm          .10000E-03    15.579        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.7889        12.673        .35881E-02   -1.5150    
   5  norm          7.2133        7.5423        .37335E-02   -1.5171    
   6  Prefactor     3.9039        210.10        .52271E-02   -1.5313    
   7  Prefactor     .10000E-03    6.0492        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.986        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.9373        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    24.150        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10009E-03    90.182        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.3005        41.026        .55440E-02   -1.5345    
  13  Prefactor     105.18        92.944        .98044E-03   -1.3653    
  14  Prefactor     .10000E-03    7.4193        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.6445        5.1473        .36256E-02   -1.5155    
  16  Prefactor     25.970        56.168        .19670E-02   -1.4688    
  17  norm          .10000E-03    2.1606        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     200.01        124.85        .71426E-03   -1.2870    
  19  Prefactor     .10000E-03    7.3764        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    10.065        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .76016E-03    1615.3        .91002E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     133.22        117.80        .87196E-03   -1.3394    
  23  Prefactor     .42650        70.957        .96593E-01   -1.5577    
  24  norm          14.590        12.070        .26195E-02   -1.4944    
  25  Prefactor     .10046E-03    88.042        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .71665        39.687        .43441E-01   -1.5539    
  27  Prefactor     .13755E-03    243.66        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     19.907        33.941        .22443E-02   -1.4815    
  29  norm          .71897E-03    496.70        .90712E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          10.350        11.435        .31132E-02   -1.5064    
  31  Prefactor     .10989E-03    774.07        .10722E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1655        .29515        .35850E-01   -.87676    
  33  Prefactor     .91528E-09    .89414        .20129       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.295e-06
Minuit parameter uncertainties:
  1  12.4546
  2  70.4039
  3  0.000489094
  4  12.6773
  5  7.54332
  6  57.4912
  7  2.10331e-06
  8  0.0004068
  9  2.78704e-06
  10  0.00103819
  11  0.00575316
  12  23.2924
  13  93.0726
  14  1.85249e-05
  15  5.14759
  16  56.2825
  17  2.12046e-06
  18  125.013
  19  7.04671e-06
  20  2.56923e-05
  21  2.1254
  22  118.006
  23  11.0143
  24  12.072
  25  0.0127784
  26  10.6728
  27  0.192087
  28  33.9744
  29  1.11833
  30  11.437
  31  0.177376
  32  0.295572
  33  5.81041e-05
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  1.852e-05  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  9.153e-10  5.810e-05  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  1.165e+00  2.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 191.288 57.158
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/889958/likelihoodResults_356227201_356486401_4FGL_J1245.1+5709_daily_bin451.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) = 1227.94745539
delta logL = -0.000630886087265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1227.94682451
delta logL = -3.60910235031e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1215       1.0000          .0000       10.000    
     3 'Normalizat'    1.1655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50533E-08   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1227.947     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      235 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    327.13        .90712E-02** at limit **
   2  Index         2.1147        5.6701        .50000        .74628E-05
   3  Normalizat    1.1655        .52120E-01    .35799E-01    .66372E-05
   4  Prefactor     .17066E-08    .29790E-01    .20144    ** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1147
  Normalizat = 1.16548
  Prefactor  = 1.70665e-09
 **********
 **   18 **HESSE 
 **********

 FCN=   1227.947     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      276 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1062.8        .93399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1147        5.8945        .50000       -.61512    
   3  Normalizat    1.1655        .11331        .17840E-03   -.87676    
   4  Prefactor     .17066E-08    .22160        .14919       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.80193e-09
Minuit parameter uncertainties:
  1  4.43991e-05
  2  49.7057
  3  0.113329
  4  3.90397e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889958': 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) = 1227.94682448
delta logL = 2.47530351771e-08

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  4.440e-05  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  2.115e+00  4.971e+01  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.707e-09  3.904e-05  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  1.165e+00  1.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 191.288 57.158

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/889958/cmap_HighResolution_356227201_356486401_4FGL_J1245.1+5709_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-06 04:16:21.144412', job_id='889958', GAL2='0.00', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630926981.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='2.48e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='451' AND source_name='4FGL J1245.1+5709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:16:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 889958: <4FGL_J1245.1+5709_daily_bin451> in cluster <slac> Done

Job <4FGL_J1245.1+5709_daily_bin451> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 04:06:27 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:06:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 04:06:28 2021
Terminated at Mon Sep  6 04:16:21 2021
Results reported at Mon Sep  6 04:16:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1245.1+5709_daily_bin451 191.288 57.158 356227201 356486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1245.1+5709 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   465.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   593 sec.
    Turnaround time :                            594 sec.

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

