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


Performing analysis on: 4FGL_J1245.1+5709_daily_bin75
RA = 191.288, Dec = 57.158
tmin = 258768001, tmax = 259027201
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='887949', job_status='RUN', time_executed='2021-09-06 04:03:42.435208', time_epoch_executed='1630926222.44' WHERE source_name='4FGL J1245.1+5709' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887949

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887949/ft1_4FGL_J1245.1+5709_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887949/ft2_4FGL_J1245.1+5709_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887949/ft1_4FGL_J1245.1+5709_daily_bin75.fits outfile=/scratch/kocevski/887949/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin75.fits ra=191.288 dec=57.158 rad=12.0 tmin=258768001.0 tmax=259027201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.12
user 0.94
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887949/ft1_filtered_4FGL_J1245.1+5709_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/887949/ft2_4FGL_J1245.1+5709_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/887949/ltcube_258768001_259027201_4FGL_J1245.1+5709_daily_bin75.fits outfile=/scratch/kocevski/887949/expmap_258768001_259027201_4FGL_J1245.1+5709_daily_bin75.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/887949/ltcube_258768001_259027201_4FGL_J1245.1+5709_daily_bin75.fits
.....................!
real 191.20
user 185.95
sys 4.61

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/887949/ft1_filtered_4FGL_J1245.1+5709_daily_bin75.fits scfile=/scratch/kocevski/887949/ft2_4FGL_J1245.1+5709_daily_bin75.fits outfile=/scratch/kocevski/887949/cmap_258768001_259027201_4FGL_J1245.1+5709_daily_bin75.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
real 0.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887949/ft1_filtered_4FGL_J1245.1+5709_daily_bin75.fits scfile=/scratch/kocevski/887949/ft2_4FGL_J1245.1+5709_daily_bin75.fits outfile=/scratch/kocevski/887949/cmap_HighResolution_258768001_259027201_4FGL_J1245.1+5709_daily_bin75.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
real 0.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/887949/ft1_filtered_4FGL_J1245.1+5709_daily_bin75.fits', '/scratch/kocevski/887949/ft2_4FGL_J1245.1+5709_daily_bin75.fits', expMap='/scratch/kocevski/887949/expmap_258768001_259027201_4FGL_J1245.1+5709_daily_bin75.fits', expCube='/scratch/kocevski/887949/ltcube_258768001_259027201_4FGL_J1245.1+5709_daily_bin75.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/887949/Model_4FGL_J1245.1+5709_daily_bin75.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/887949/ft1_filtered_4FGL_J1245.1+5709_daily_bin75.fits
Spacecraft file(s): /scratch/kocevski/887949/ft2_4FGL_J1245.1+5709_daily_bin75.fits
Exposure map: /scratch/kocevski/887949/expmap_258768001_259027201_4FGL_J1245.1+5709_daily_bin75.fits
Exposure cube: /scratch/kocevski/887949/ltcube_258768001_259027201_4FGL_J1245.1+5709_daily_bin75.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/887949/Model_4FGL_J1245.1+5709_daily_bin75.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) = 3202.52240896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9463       1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.234       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14662       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10523E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3505       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.3343       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .70686E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.4046       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13270E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.3632       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.687       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9622       1.0000         .10000E-03   10000.    
    20 'norm      '    2.9578       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.8382       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .14685E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    29.182       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0110       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .83634       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3202.465     FROM MIGRAD    STATUS=CONVERGED    905 CALLS     4605 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9476        11.649       -.26582E-06   -.56188E-05
   2  Prefactor     38.242        59.011       -.88658E-07    .31544E-05
   3  norm          .10000E-03    7.5678       -.33760E-07** at limit **
   4  Prefactor     .14611        3.9348        .93709E-06   -.19706E-03
   5  norm          .10000E-03    4.8627       -.68402E-06** at limit **
   6  Prefactor     .10000E-03    39.730        .27520E-06** at limit **
   7  Prefactor     2.3594        14.043        .81901E-06    .50887E-04
   8  Prefactor     .10000E-03    100.05       -.58233E-05** at limit **
   9  norm          4.3352        3.1385        .57982E-07   -.26340E-04
  10  Prefactor     .10009E-03    147.54        .11083E-04** at limit **
  11  Prefactor     .10000E-03    31.524       -.18557E-06** at limit **
  12  norm          3.4111        7.3471        .35412E-07   -.35010E-05
  13  Prefactor     .10000E-03    84.101       -.78950E-06** at limit **
  14  Prefactor     .10007E-03    12.384       -.20445E-05** at limit **
  15  norm          6.3666        4.0057        .72369E-06   -.43486E-04
  16  Prefactor     .10000E-03    9.1691       -.18096E-06** at limit **
  17  norm          .10000E-03    .89593       -.69887E-07** at limit **
  18  Prefactor     17.882        41.214        .11384E-05   -.35922E-05
  19  Prefactor     5.9720        15.376        .10808E-05   -.61872E-04
  20  norm          2.9604        5.3111       -.93989E-06   -.18672E-03
  21  Prefactor     .10000E-03    70.208       -.11875E-05** at limit **
  22  Prefactor     .10000E-03    16.035       -.68069E-06** at limit **
  23  Prefactor     .10000E-03    16.087       -.40726E-06** at limit **
  24  norm          .10000E-03    1.8816       -.22605E-06** at limit **
  25  Prefactor     .10000E-03    23.726        .59086E-07** at limit **
  26  Prefactor     9.8248        6.9589       -.10519E-06    .10881E-04
  27  Prefactor     .10000E-03    28.049       -.38104E-06** at limit **
  28  Prefactor     .10000E-03    42.316       -.36513E-06** at limit **
  29  norm          .10000E-03    35.230        .32217E-06** at limit **
  30  norm          .10000E-03    1.2445       -.16085E-07** at limit **
  31  Prefactor     31.293        6272.1        .20008E-04    .57005E-05
  32  Normalizat    1.0112        .22210       -.85463E-06    .15965E-03
  33  Prefactor     .83592        .26471        .33825E-05   -.17203E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.9476
  Prefactor  = 38.2423
  norm       = 0.0001
  Prefactor  = 0.146114
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.35939
  Prefactor  = 0.000100001
  norm       = 4.33525
  Prefactor  = 0.000100088
  Prefactor  = 0.0001
  norm       = 3.41113
  Prefactor  = 0.0001
  Prefactor  = 0.000100075
  norm       = 6.36664
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.8825
  Prefactor  = 5.97197
  norm       = 2.96041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.82483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 31.2935
  Normalizat = 1.01119
  Prefactor  = 0.83592
 **********
 **   18 **HESSE 
 **********

 FCN=   3202.465     FROM HESSE     STATUS=OK           697 CALLS     5302 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9476        11.595        .18084E-03   -1.5263    
   2  Prefactor     38.242        59.007        .64819E-04   -1.4470    
   3  norm          .10000E-03    7.5693        .15206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .14611        27.179        .18993E-02   -1.5632    
   5  norm          .10000E-03    4.8946        .12178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    39.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3594        13.766        .26737E-03   -1.5401    
   8  Prefactor     .10000E-03    101.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.3352        3.1392        .81430E-04   -1.5292    
  10  Prefactor     .10009E-03    167.55        .57000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.4111        7.3078        .21588E-03   -1.5339    
  13  Prefactor     .10000E-03    85.996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10007E-03    27.427        .33269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.3666        3.9686        .82507E-04   -1.5203    
  16  Prefactor     .10000E-03    9.1775        .16737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .90238        .52317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.882        41.080        .95235E-04   -1.4862    
  19  Prefactor     5.9720        15.263        .82225E-03   -1.5219    
  20  norm          2.9604        5.2611        .82606E-03   -1.5364    
  21  Prefactor     .10000E-03    70.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.8868        .75795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    23.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.8248        6.9171        .11823E-03   -1.5081    
  27  Prefactor     .10000E-03    28.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    42.979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    35.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    1.2469        .61655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     31.293        6193.2        .37083E-02   -1.4589    
  32  Normalizat    1.0112        .25923        .21073E-03   -.92657    
  33  Prefactor     .83592        .30169        .27998E-03   -.98418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9315e-09
Minuit parameter uncertainties:
  1  11.5999
  2  59.0973
  3  2.13535e-06
  4  3.98608
  5  1.29657e-05
  6  4.8409e-05
  7  11.4019
  8  0.000474978
  9  3.13928
  10  0.00771285
  11  1.84813e-05
  12  7.30971
  13  0.000124889
  14  0.00286429
  15  3.9688
  16  7.28628e-07
  17  8.79023e-07
  18  41.145
  19  15.2725
  20  5.26189
  21  9.29307e-06
  22  9.09303e-06
  23  2.01107e-06
  24  6.755e-07
  25  8.81715e-06
  26  6.9177
  27  2.67365e-05
  28  7.5699e-05
  29  4.19758e-06
  30  6.63417e-07
  31  636.748
  32  0.259557
  33  0.302292
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.001e-04  2.864e-03  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:  8.359e-01  3.023e-01  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.011e+00  2.596e-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.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/887949/likelihoodResults_258768001_259027201_4FGL_J1245.1+5709_daily_bin75.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): 0
logL (Free Index) = 3202.46541947
delta logL = -0.000173016366716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3202.46524709
delta logL = -6.30333488516e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16174E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2194       1.0000          .0000       10.000    
     3 'Normalizat'    1.0115       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83558       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=   3202.146     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      286 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68810E-02    .17998        .13357E-02    .83722E-02
   2  Index         5.1672        2.8542        .82365E-01    .13085E-03
   3  Normalizat    .93772        .43377E-01    .45196E-01   -.16967E-04
   4  Prefactor     .89469        .53198E-01    .44179E-01   -.23542E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00688102
  Index      = 5.1672
  Normalizat = 0.937716
  Prefactor  = 0.894688
 **********
 **   18 **HESSE 
 **********

 FCN=   3202.146     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      319 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68810E-02    .56638        .59608E-05   -1.5691    
   2  Index         5.1672        7.5050        .42705E-02    .33446E-01
   3  Normalizat    .93772        .20170        .21757E-03   -.95147    
   4  Prefactor     .89469        .24037        .27140E-03   -.96327    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.27881e-10
Minuit parameter uncertainties:
  1  0.123947
  2  6.7606
  3  0.201858
  4  0.24065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887949': 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) = 3202.14557448
delta logL = 0.319671974544

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  6.881e-03  1.239e-01  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  5.167e+00  6.761e+00  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:  8.947e-01  2.407e-01  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:  9.377e-01  2.019e-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/887949/cmap_HighResolution_258768001_259027201_4FGL_J1245.1+5709_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.78e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-06 04:15:25.402597', job_id='887949', GAL2='0.89', fit_tolerance='1e-08', EG2='0.94', EG='1.01', time_epoch_completed='1630926925.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='3.20e-01', ts2='0.71', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='75' AND source_name='4FGL J1245.1+5709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:15:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 887949: <4FGL_J1245.1+5709_daily_bin75> in cluster <slac> Done

Job <4FGL_J1245.1+5709_daily_bin75> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 04:00:32 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:01:04 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:01:04 2021
Terminated at Mon Sep  6 04:15:26 2021
Results reported at Mon Sep  6 04:15:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1245.1+5709_daily_bin75 191.288 57.158 258768001 259027201 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 :                                   701.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            894 sec.

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

