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


Performing analysis on: 4FGL_J1245.1+5709_daily_bin768
RA = 191.288, Dec = 57.158
tmin = 438393601, tmax = 438652801
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='891494', job_status='RUN', time_executed='2021-09-06 04:14:50.120708', time_epoch_executed='1630926890.12' WHERE source_name='4FGL J1245.1+5709' and cadence='daily' and bin_id='768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891494

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891494/ft1_4FGL_J1245.1+5709_daily_bin768.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891494/ft2_4FGL_J1245.1+5709_daily_bin768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891494/ft1_4FGL_J1245.1+5709_daily_bin768.fits outfile=/scratch/kocevski/891494/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin768.fits ra=191.288 dec=57.158 rad=12.0 tmin=438393601.0 tmax=438652801.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 6.54
user 6.07
sys 0.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891494/ft1_filtered_4FGL_J1245.1+5709_daily_bin768.fits" evtable="EVENTS" scfile=/scratch/kocevski/891494/ft2_4FGL_J1245.1+5709_daily_bin768.fits sctable="SC_DATA" outfile=/scratch/kocevski/891494/ltcube_438393601_438652801_4FGL_J1245.1+5709_daily_bin768.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/891494/ft2_4FGL_J1245.1+5709_daily_bin768.fits
.....................!
real 13.66
user 13.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891494/ft1_filtered_4FGL_J1245.1+5709_daily_bin768.fits evtable="EVENTS" scfile=/scratch/kocevski/891494/ft2_4FGL_J1245.1+5709_daily_bin768.fits sctable="SC_DATA" expcube=/scratch/kocevski/891494/ltcube_438393601_438652801_4FGL_J1245.1+5709_daily_bin768.fits outfile=/scratch/kocevski/891494/expmap_438393601_438652801_4FGL_J1245.1+5709_daily_bin768.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/891494/ltcube_438393601_438652801_4FGL_J1245.1+5709_daily_bin768.fits
.....................!
real 192.29
user 187.62
sys 4.18

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/891494/ft1_filtered_4FGL_J1245.1+5709_daily_bin768.fits scfile=/scratch/kocevski/891494/ft2_4FGL_J1245.1+5709_daily_bin768.fits outfile=/scratch/kocevski/891494/cmap_438393601_438652801_4FGL_J1245.1+5709_daily_bin768.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891494/ft1_filtered_4FGL_J1245.1+5709_daily_bin768.fits scfile=/scratch/kocevski/891494/ft2_4FGL_J1245.1+5709_daily_bin768.fits outfile=/scratch/kocevski/891494/cmap_HighResolution_438393601_438652801_4FGL_J1245.1+5709_daily_bin768.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    65.233       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1270       1.0000         .10000E-03   10000.    
     5 'norm      '    4.2300       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.417       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10758E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.053       1.0000         .10000E-03   10000.    
    11 'Prefactor '    82.403       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11824       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.0844       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .75167E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    7.6231       1.0000         .10000E-03   10000.    
    21 'Prefactor '    230.56       1.0000         .10000E-03   10000.    
    22 'Prefactor '    74.626       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10490E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.9925       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .26580E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    95.305       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .18221E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1928.6       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .55028       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .99052       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=   2331.424     FROM MIGRAD    STATUS=CONVERGED    919 CALLS     5384 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0515        .18080E-07** at limit **
   2  Prefactor     65.235        59.994       -.31933E-06   -.43943E-06
   3  norm          .10000E-03    22.341        .82048E-06** at limit **
   4  Prefactor     1.1274        3.6860       -.39113E-06   -.72245E-04
   5  norm          4.2302        9.9285        .12017E-06   -.12905E-04
   6  Prefactor     .10000E-03    10.717        .38166E-07** at limit **
   7  Prefactor     16.420        22.392       -.73972E-06   -.82937E-04
   8  Prefactor     .10001E-03    234.77        .63985E-05** at limit **
   9  norm          .10000E-03    2.4583        .54001E-07** at limit **
  10  Prefactor     13.093        65.487       -.24095E-05   -.21479E-04
  11  Prefactor     82.293        195.14       -.23420E-05    .17417E-05
  12  norm          .10000E-03    5.4049       -.90224E-07** at limit **
  13  Prefactor     .10000E-03    12.201       -.80927E-07** at limit **
  14  Prefactor     .10000E-03    3.5489       -.31276E-08** at limit **
  15  norm          .11730        11.697       -.19046E-05   -.11083E-03
  16  Prefactor     .10000E-03    21.444       -.99543E-06** at limit **
  17  norm          3.0844        3.1726       -.69539E-07    .75572E-04
  18  Prefactor     .10000E-03    27.599       -.15219E-06** at limit **
  19  Prefactor     .10087        568.09        .50841E-05    .19929E-03
  20  norm          7.6228        6.4833       -.66439E-07   -.76282E-04
  21  Prefactor     230.57        164.10       -.18724E-07    .20066E-05
  22  Prefactor     74.657        78.251       -.12261E-05   -.59845E-04
  23  Prefactor     .10001E-03    102.44       -.59352E-05** at limit **
  24  norm          2.9906        6.9308       -.87271E-06   -.16989E-03
  25  Prefactor     .10005E-03    759.75       -.10397E-04** at limit **
  26  Prefactor     .10000E-03    5.3460       -.17628E-06** at limit **
  27  Prefactor     95.280        96.103       -.50689E-06    .16552E-03
  28  Prefactor     .10000E-03    11.301       -.72791E-07** at limit **
  29  norm          .10000E-03    76.768       -.15359E-06** at limit **
  30  norm          .16550E-03    46.757       -.38311E-05** at limit **
  31  Prefactor     1928.6        1169.4        .48002E-06    .11426E-04
  32  Normalizat    .55032        .28277        .67624E-05    .23758E-03
  33  Prefactor     .99040        .31439       -.42562E-05    .18899E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 65.235
  norm       = 0.0001
  Prefactor  = 1.12743
  norm       = 4.23024
  Prefactor  = 0.0001
  Prefactor  = 16.4196
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 13.0929
  Prefactor  = 82.2927
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.117296
  Prefactor  = 0.0001
  norm       = 3.08442
  Prefactor  = 0.0001
  Prefactor  = 0.100865
  norm       = 7.62277
  Prefactor  = 230.568
  Prefactor  = 74.6569
  Prefactor  = 0.000100007
  norm       = 2.99059
  Prefactor  = 0.000100054
  Prefactor  = 0.0001
  Prefactor  = 95.2797
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000165503
  Prefactor  = 1928.59
  Normalizat = 0.550321
  Prefactor  = 0.990399
 **********
 **   18 **HESSE 
 **********

 FCN=   2331.424     FROM HESSE     STATUS=OK           699 CALLS     6083 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0598        .10598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     65.235        59.994        .49689E-04   -1.4091    
   3  norm          .10000E-03    22.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1274        3.6287        .16173E-03   -1.5496    
   5  norm          4.2302        9.9019        .19592E-03   -1.5297    
   6  Prefactor     .10000E-03    10.720        .15440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.420        22.429        .98848E-04   -1.4897    
   8  Prefactor     .10001E-03    241.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.5060        .73851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.093        65.302        .11087E-03   -1.4984    
  11  Prefactor     82.293        196.24        .22124E-03   -1.3891    
  12  norm          .10000E-03    5.4214        .10964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.213        .16476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.5495        .88815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .11730        12.167        .17472E-02   -1.5639    
  16  Prefactor     .10000E-03    21.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.0844        3.1699        .83603E-04   -1.5357    
  18  Prefactor     .10000E-03    27.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10087        33.409        .62952E-01   -1.5644    
  20  norm          7.6228        6.4786        .98772E-04   -1.5156    
  21  Prefactor     230.57        164.09        .13326E-03   -1.2659    
  22  Prefactor     74.657        77.922        .46478E-04   -1.3978    
  23  Prefactor     .10001E-03    107.50        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.9906        6.9464        .16804E-03   -1.5362    
  25  Prefactor     .10005E-03    796.77        .42880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.3839        .10907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     95.280        96.384        .41171E-04   -1.3753    
  28  Prefactor     .10000E-03    11.326        .15856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    76.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .16550E-03    9.5079        .29973E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1928.6        1169.1        .50691E-04   -.66148    
  32  Normalizat    .55032        .29426        .26553E-03   -1.1014    
  33  Prefactor     .99040        .32653        .24329E-03   -.93050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7799e-08
Minuit parameter uncertainties:
  1  2.4786e-07
  2  60.0494
  3  0.000173015
  4  3.62937
  5  9.90572
  6  5.30739e-06
  7  22.4409
  8  0.00264781
  9  2.29301e-06
  10  58.5828
  11  197.821
  12  7.26306e-06
  13  1.02343e-05
  14  1.4707e-06
  15  2.38875
  16  0.000170823
  17  3.1701
  18  3.55106e-05
  19  3.67167
  20  6.47915
  21  164.42
  22  78.0286
  23  0.00174029
  24  6.94829
  25  0.0132561
  26  1.78827e-05
  27  96.5432
  28  1.15309e-05
  29  2.25447e-05
  30  0.0499196
  31  1186.93
  32  0.295097
  33  0.327184
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  1.471e-06  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.904e-01  3.272e-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:  5.503e-01  2.951e-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: 8.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891494/likelihoodResults_438393601_438652801_4FGL_J1245.1+5709_daily_bin768.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) = 2331.42574337
delta logL = -0.00128474663961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2331.42446083
delta logL = -2.20196488954e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0915       1.0000          .0000       10.000    
     3 'Normalizat'    .55010       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99066       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2329.305     FROM MIGRAD    STATUS=CONVERGED    175 CALLS      324 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70362        .89280        .93616E-02    .28200E-02
   2  Index         .25905E-10    .40314        .44526    ** at limit **
   3  Normalizat    .47964        .26542        .26553E-02    .18474E-03
   4  Prefactor     1.0591        .32350        .24329E-02    .23000E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.703617
  Index      = 2.59054e-11
  Normalizat = 0.479637
  Prefactor  = 1.05915
 **********
 **   18 **HESSE 
 **********

 FCN=   2329.305     FROM HESSE     STATUS=OK            29 CALLS      353 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70362        .73758        .40297E-03   -1.5540    
   2  Index         .25905E-10    .64684        .15293E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .47964        .26741        .10621E-03   -1.1337    
   4  Prefactor     1.0591        .32605        .97315E-04   -.90783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.70402e-10
Minuit parameter uncertainties:
  1  0.737592
  2  8.27792e-06
  3  0.268132
  4  0.326661
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891494': 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) = 2329.3054318
delta logL = 2.1190268208

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  7.036e-01  7.376e-01  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  2.591e-11  8.278e-06  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.059e+00  3.267e-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:  4.796e-01  2.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.31
Ra Dec: 191.288 57.158
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 7.03e-09 +/- 7.37e-09
Energy Flux (Free Index): 3.52e-04 +/- 3.69e-04

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/891494/cmap_HighResolution_438393601_438652801_4FGL_J1245.1+5709_daily_bin768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-03', comment='SUCCESS', energy_flux2='3.52e-04', dlogl='2.12e+00', photon_flux2='7.03e-09', job_status='DONE', time_completed='2021-09-06 04:25:21.453658', photon_index_error2='0.00', photon_index2='0.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='8.43e-08', energy_flux_error2='3.69e-04', EG='0.55', time_epoch_completed='1630927521.45', return_code='0', job_id='891494', GAL2='1.06', EG2='0.48', return_code2='0', photon_flux_error2='7.37e-09', ts2='4.31', photon_index='2.13' WHERE bin_id='768' AND source_name='4FGL J1245.1+5709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:25:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 891494: <4FGL_J1245.1+5709_daily_bin768> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1245.1+5709_daily_bin768 191.288 57.158 438393601 438652801 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 :                                   629.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

