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


Performing analysis on: 4FGL_J1245.1+5709_daily_bin330
RA = 191.288, Dec = 57.158
tmin = 324864001, tmax = 325123201
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='889753', job_status='RUN', time_executed='2021-09-06 04:06:23.728656', time_epoch_executed='1630926383.73' WHERE source_name='4FGL J1245.1+5709' and cadence='daily' and bin_id='330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889753

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889753/ft1_4FGL_J1245.1+5709_daily_bin330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889753/ft2_4FGL_J1245.1+5709_daily_bin330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889753/ft1_4FGL_J1245.1+5709_daily_bin330.fits outfile=/scratch/kocevski/889753/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin330.fits ra=191.288 dec=57.158 rad=12.0 tmin=324864001.0 tmax=325123201.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 5.71
user 5.43
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889753/ft1_filtered_4FGL_J1245.1+5709_daily_bin330.fits" evtable="EVENTS" scfile=/scratch/kocevski/889753/ft2_4FGL_J1245.1+5709_daily_bin330.fits sctable="SC_DATA" outfile=/scratch/kocevski/889753/ltcube_324864001_325123201_4FGL_J1245.1+5709_daily_bin330.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/889753/ft2_4FGL_J1245.1+5709_daily_bin330.fits
.....................!
real 13.53
user 13.09
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889753/ft1_filtered_4FGL_J1245.1+5709_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/889753/ft2_4FGL_J1245.1+5709_daily_bin330.fits sctable="SC_DATA" expcube=/scratch/kocevski/889753/ltcube_324864001_325123201_4FGL_J1245.1+5709_daily_bin330.fits outfile=/scratch/kocevski/889753/expmap_324864001_325123201_4FGL_J1245.1+5709_daily_bin330.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/889753/ltcube_324864001_325123201_4FGL_J1245.1+5709_daily_bin330.fits
.....................!
real 192.82
user 186.19
sys 5.33

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/889753/ft1_filtered_4FGL_J1245.1+5709_daily_bin330.fits scfile=/scratch/kocevski/889753/ft2_4FGL_J1245.1+5709_daily_bin330.fits outfile=/scratch/kocevski/889753/cmap_324864001_325123201_4FGL_J1245.1+5709_daily_bin330.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.54
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5214       1.0000         .10000E-03   10000.    
     2 'Prefactor '    48.622       1.0000         .10000E-03   10000.    
     3 'norm      '    4.9647       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.353       1.0000         .10000E-03   10000.    
     5 'norm      '    4.6044       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1948       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.3989       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.295       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.352       1.0000         .10000E-03   10000.    
    12 'norm      '    11.425       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4610       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2570       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .88358       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.3015       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.0523       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.1609       1.0000         .10000E-03   10000.    
    25 'Prefactor '    67.069       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.0667       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .23165E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .11056E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .83529       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .95277       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=   4944.961     FROM MIGRAD    STATUS=CONVERGED    894 CALLS     4601 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5234        6.6949       -.46256E-05   -.33845E-03
   2  Prefactor     48.629        35.417        .68682E-06    .49445E-04
   3  norm          4.9640        8.4112       -.19153E-06   -.55990E-04
   4  Prefactor     16.355        5.8846       -.95038E-06   -.94392E-04
   5  norm          4.6064        5.8516       -.74979E-06   -.23692E-03
   6  Prefactor     .10000E-03    20.189        .49355E-05** at limit **
   7  Prefactor     4.1949        6.8628        .81537E-07   -.12266E-03
   8  Prefactor     .10000E-03    6.6249        .21504E-07** at limit **
   9  norm          8.3999        3.0865       -.10441E-06    .87918E-04
  10  Prefactor     21.307        24.151       -.45408E-05    .21156E-04
  11  Prefactor     33.351        61.649       -.24695E-05    .11209E-04
  12  norm          11.425        7.6261       -.51403E-06   -.58469E-03
  13  Prefactor     .10000E-03    11.633       -.14543E-05** at limit **
  14  Prefactor     7.4621        6.4240       -.36955E-06    .63090E-04
  15  norm          2.2574        2.4478       -.10013E-06    .97108E-04
  16  Prefactor     .10000E-03    14.362       -.34896E-06** at limit **
  17  norm          .88322        1.7350       -.35290E-06   -.10852E-02
  18  Prefactor     7.3044        30.068       -.16086E-05   -.82527E-05
  19  Prefactor     .10000E-03    17.327       -.70940E-05** at limit **
  20  norm          5.0524        4.2836       -.41684E-06   -.15681E-04
  21  Prefactor     .10000E-03    51.694       -.14860E-06** at limit **
  22  Prefactor     .10000E-03    19.844        .26709E-05** at limit **
  23  Prefactor     .10000E-03    12.691        .14545E-05** at limit **
  24  norm          1.1639        5.8808       -.13035E-05   -.91988E-03
  25  Prefactor     67.046        69.411       -.18288E-04   -.12826E-03
  26  Prefactor     3.0671        3.2889       -.42466E-06   -.26899E-03
  27  Prefactor     .10000E-03    182.10        .49757E-04** at limit **
  28  Prefactor     .10000E-03    3.9009        .10272E-06** at limit **
  29  norm          .10000E-03    30.477       -.23225E-05** at limit **
  30  norm          .10000E-03    2.7217        .95889E-06** at limit **
  31  Prefactor     .10000E-03    215.07       -.62061E-04** at limit **
  32  Normalizat    .83484        .19599        .57886E-05   -.33776E-03
  33  Prefactor     .95318        .22218       -.82467E-06    .10947E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.52343
  Prefactor  = 48.629
  norm       = 4.96402
  Prefactor  = 16.3551
  norm       = 4.60636
  Prefactor  = 0.0001
  Prefactor  = 4.19488
  Prefactor  = 0.0001
  norm       = 8.39986
  Prefactor  = 21.3071
  Prefactor  = 33.3507
  norm       = 11.4246
  Prefactor  = 0.0001
  Prefactor  = 7.46215
  norm       = 2.25736
  Prefactor  = 0.0001
  norm       = 0.883217
  Prefactor  = 7.30442
  Prefactor  = 0.0001
  norm       = 5.05243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.16392
  Prefactor  = 67.0455
  Prefactor  = 3.06706
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  Normalizat = 0.834844
  Prefactor  = 0.95318
 **********
 **   18 **HESSE 
 **********

 FCN=   4944.961     FROM HESSE     STATUS=OK           699 CALLS     5300 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5234        6.7269        .21543E-03   -1.5333    
   2  Prefactor     48.629        35.389        .57508E-04   -1.4312    
   3  norm          4.9640        8.4063        .18049E-03   -1.5262    
   4  Prefactor     16.355        5.8835        .97931E-04   -1.4899    
   5  norm          4.6064        5.8380        .16318E-03   -1.5279    
   6  Prefactor     .10000E-03    20.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1949        6.8411        .19677E-03   -1.5298    
   8  Prefactor     .10000E-03    6.6256        .17676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.3999        3.0910        .71165E-04   -1.5128    
  10  Prefactor     21.307        24.257        .86798E-04   -1.4784    
  11  Prefactor     33.351        61.593        .69386E-04   -1.4552    
  12  norm          11.425        7.6402        .59262E-03   -1.5032    
  13  Prefactor     .10000E-03    11.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.4621        6.4097        .14683E-03   -1.5162    
  15  norm          2.2574        2.4359        .10439E-03   -1.5407    
  16  Prefactor     .10000E-03    14.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .88322        1.4943        .12603E-02   -1.5520    
  18  Prefactor     7.3044        30.055        .14844E-03   -1.5167    
  19  Prefactor     .10000E-03    17.764        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.0524        4.2791        .12923E-03   -1.5258    
  21  Prefactor     .10000E-03    51.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.1639        5.9552        .31768E-03   -1.5492    
  25  Prefactor     67.046        68.862        .49009E-04   -1.4069    
  26  Prefactor     3.0671        3.2808        .12709E-03   -1.5358    
  27  Prefactor     .10000E-03    184.66        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.9067        .13552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    30.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    13.333        .22023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    212.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .83484        .23007        .23709E-03   -.98789    
  33  Prefactor     .95318        .26202        .27615E-03   -.94307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38984e-09
Minuit parameter uncertainties:
  1  6.72831
  2  35.4041
  3  8.40831
  4  5.88372
  5  5.83875
  6  3.46349e-05
  7  6.84242
  8  7.04805e-06
  9  3.09108
  10  24.2682
  11  61.7112
  12  7.64084
  13  1.31699e-05
  14  6.41026
  15  2.436
  16  3.67574e-05
  17  1.49441
  18  29.6587
  19  2.95882e-05
  20  4.27938
  21  8.17241e-05
  22  3.27932e-06
  23  0.0001168
  24  5.26608
  25  68.9441
  26  3.28102
  27  0.000605853
  28  3.12017e-06
  29  2.28033e-06
  30  0.000467828
  31  3.8041e-05
  32  0.230335
  33  0.262372
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  7.462e+00  6.410e+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

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  9.532e-01  2.624e-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:  8.348e-01  2.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.69
Ra Dec: 191.288 57.158
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 3.26e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.45e-05

TS (Fixed Index): 2.69
Ra Dec: 191.288 57.158
Photon Flux Upper Limit: 9.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/889753/likelihoodResults_324864001_325123201_4FGL_J1245.1+5709_daily_bin330.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) = 4944.87066311
delta logL = 0.0901747564221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4944.87054396
delta logL = 0.0902939027537

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5710       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9040       1.0000          .0000       10.000    
     3 'Normalizat'    .84207       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94727       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=   4944.871     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      264 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5678        275.12        .32384E-02    .50406E-04
   2  Index         1.9037        5.7446        .13632        .73609E-04
   3  Normalizat    .84204        .98679E-01    .44157E-01    .13280E-04
   4  Prefactor     .94736        .10141        .45605E-01    .98954E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.56775
  Index      = 1.90374
  Normalizat = 0.842035
  Prefactor  = 0.947356
 **********
 **   18 **HESSE 
 **********

 FCN=   4944.871     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5678        8.9060        .12953E-03   -1.5089    
   2  Index         1.9037        .52453        .68003E-02   -.66779    
   3  Normalizat    .84204        .20661        .23618E-03   -.98528    
   4  Prefactor     .94736        .25622        .27688E-03   -.94505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03128e-12
Minuit parameter uncertainties:
  1  8.90727
  2  0.526099
  3  0.206801
  4  0.256552
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889753': 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): 0
logL (Free Index) = 4944.87054354
delta logL = 0.0902943306364

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  9.568e+00  8.907e+00  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  1.904e+00  5.261e-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:  9.474e-01  2.566e-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:  8.420e-01  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.87
Ra Dec: 191.288 57.158
Photon Index (Free Index): 1.90 +/- 0.53
Photon Flux (Free Index): 2.71e-08 +/- 2.64e-08
Energy Flux (Free Index): 2.41e-05 +/- 2.97e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/889753/cmap_HighResolution_324864001_325123201_4FGL_J1245.1+5709_daily_bin330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-03', comment='SUCCESS', photon_flux='3.26e-08', energy_flux2='2.41e-05', photon_flux_error='2.80e-08', dlogl='9.03e-02', energy_flux='1.69e-05', photon_flux2='2.71e-08', job_status='DONE', time_completed='2021-09-06 04:22:14.676127', photon_index_error2='0.53', photon_index2='1.90', ts='2.69', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.52e-08', energy_flux_error2='2.97e-05', EG='0.83', time_epoch_completed='1630927334.68', return_code='0', job_id='889753', GAL2='0.95', EG2='0.84', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='2.64e-08', ts2='2.87', photon_index='2.13' WHERE bin_id='330' AND source_name='4FGL J1245.1+5709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:22:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 889753: <4FGL_J1245.1+5709_daily_bin330> in cluster <slac> Done

Job <4FGL_J1245.1+5709_daily_bin330> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 04:06:10 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:06:11 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:11 2021
Terminated at Mon Sep  6 04:22:15 2021
Results reported at Mon Sep  6 04:22:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1245.1+5709_daily_bin330 191.288 57.158 324864001 325123201 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 :                                   944.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

