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


Performing analysis on: 4FGL_J1245.1+5709_daily_bin974
RA = 191.288, Dec = 57.158
tmin = 491788801, tmax = 492048001
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='892866', job_status='RUN', time_executed='2021-09-06 04:19:24.620904', time_epoch_executed='1630927164.62' WHERE source_name='4FGL J1245.1+5709' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/892866

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/892866/ft1_4FGL_J1245.1+5709_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/892866/ft2_4FGL_J1245.1+5709_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/892866/ft1_4FGL_J1245.1+5709_daily_bin974.fits outfile=/scratch/kocevski/892866/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin974.fits ra=191.288 dec=57.158 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.25
user 4.02
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/892866/ft2_4FGL_J1245.1+5709_daily_bin974.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/892866/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/892866/ft1_filtered_4FGL_J1245.1+5709_daily_bin974.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.49
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/892866/ft1_filtered_4FGL_J1245.1+5709_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/892866/ft2_4FGL_J1245.1+5709_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/892866/ltcube_491788801_492048001_4FGL_J1245.1+5709_daily_bin974.fits outfile=/scratch/kocevski/892866/expmap_491788801_492048001_4FGL_J1245.1+5709_daily_bin974.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/892866/ltcube_491788801_492048001_4FGL_J1245.1+5709_daily_bin974.fits
.....................!
real 190.09
user 184.54
sys 5.08

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/892866/ft1_filtered_4FGL_J1245.1+5709_daily_bin974.fits scfile=/scratch/kocevski/892866/ft2_4FGL_J1245.1+5709_daily_bin974.fits outfile=/scratch/kocevski/892866/cmap_491788801_492048001_4FGL_J1245.1+5709_daily_bin974.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.89
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/892866/ft1_filtered_4FGL_J1245.1+5709_daily_bin974.fits scfile=/scratch/kocevski/892866/ft2_4FGL_J1245.1+5709_daily_bin974.fits outfile=/scratch/kocevski/892866/cmap_HighResolution_491788801_492048001_4FGL_J1245.1+5709_daily_bin974.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.64
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.441       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8199       1.0000         .10000E-03   10000.    
     3 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10745E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .11208E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10823E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.938       1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.273       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.445       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.5996       1.0000         .10000E-03   10000.    
    16 'Prefactor '    75.909       1.0000         .10000E-03   10000.    
    17 'norm      '    .10169E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10694E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.466       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    56.167       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.925       1.0000         .10000E-03   10000.    
    24 'norm      '    7.2411       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .20595       1.0000         .10000E-03   10000.    
    27 'Prefactor '    148.04       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    8.2319       1.0000         .10000E-03   10000.    
    31 'Prefactor '    1311.3       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .43687       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .90126       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=   892.8392     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     5238 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.393        31.472        .30921E-05    .11270E-03
   2  Prefactor     2.9531        449.74       -.34308E-04   -.24344E-04
   3  norm          .10000E-03    21.233        .58487E-06** at limit **
   4  Prefactor     .10019E-03    12.381        .24124E-05** at limit **
   5  norm          .10000E-03    14.870        .31542E-05** at limit **
   6  Prefactor     .10000E-03    94.383       -.19296E-06** at limit **
   7  Prefactor     .10000E-03    14.492        .38619E-06** at limit **
   8  Prefactor     .10000E-03    41.077        .10268E-07** at limit **
   9  norm          13.936        7.7473       -.54589E-07   -.54823E-04
  10  Prefactor     42.223        54.682       -.12336E-06   -.70826E-05
  11  Prefactor     .10000E-03    74.934       -.15183E-06** at limit **
  12  norm          .10000E-03    11.282       -.65699E-06** at limit **
  13  Prefactor     17.406        60.014       -.32883E-06   -.16317E-04
  14  Prefactor     .10000E-03    10.535       -.66438E-07** at limit **
  15  norm          6.5967        5.8763       -.10929E-06    .83467E-05
  16  Prefactor     75.913        79.462       -.83702E-06   -.71103E-05
  17  norm          .10000E-03    3.4728       -.41642E-07** at limit **
  18  Prefactor     .10000E-03    88.179       -.85335E-07** at limit **
  19  Prefactor     .10000E-03    23.649       -.15732E-07** at limit **
  20  norm          14.467        12.110       -.79743E-07   -.13353E-05
  21  Prefactor     .10000E-03    107.45        .42633E-07** at limit **
  22  Prefactor     56.085        98.781       -.94340E-06   -.14965E-04
  23  Prefactor     12.920        37.303       -.56267E-06   -.28103E-05
  24  norm          7.2404        10.488       -.97838E-07   -.33222E-05
  25  Prefactor     .10000E-03    73.060       -.65700E-07** at limit **
  26  Prefactor     .22078        10.203       -.91574E-06    .11490E-03
  27  Prefactor     148.05        128.67       -.80761E-06    .49181E-05
  28  Prefactor     .10000E-03    14.351       -.53764E-07** at limit **
  29  norm          .10000E-03    133.63        .57799E-07** at limit **
  30  norm          8.2266        14.608       -.36048E-06    .54351E-05
  31  Prefactor     1311.7        1655.1       -.16963E-05    .12963E-05
  32  Normalizat    .43766        .43358        .51645E-05   -.57088E-05
  33  Prefactor     .90020        .45229       -.41588E-06    .27202E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.3925
  Prefactor  = 2.95308
  norm       = 0.0001
  Prefactor  = 0.000100186
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.9361
  Prefactor  = 42.2226
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.4057
  Prefactor  = 0.0001
  norm       = 6.59671
  Prefactor  = 75.9132
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.4673
  Prefactor  = 0.0001
  Prefactor  = 56.0846
  Prefactor  = 12.9198
  norm       = 7.2404
  Prefactor  = 0.0001
  Prefactor  = 0.220776
  Prefactor  = 148.05
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.2266
  Prefactor  = 1311.74
  Normalizat = 0.43766
  Prefactor  = 0.900201
 **********
 **   18 **HESSE 
 **********

 FCN=   892.8392     FROM HESSE     STATUS=OK           689 CALLS     5927 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.393        31.789        .59477E-04   -1.4359    
   2  Prefactor     2.9531        461.60        .24220E-03   -1.5364    
   3  norm          .10000E-03    21.235        .13455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10019E-03    40.351        .18027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    14.873        .11202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    94.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.503        .11110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    41.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.936        7.7658        .58783E-04   -1.4961    
  10  Prefactor     42.223        54.940        .61657E-04   -1.4407    
  11  Prefactor     .10000E-03    74.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.298        .98040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.406        60.203        .95891E-04   -1.4873    
  14  Prefactor     .10000E-03    10.564        .94705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.5967        5.8948        .65843E-04   -1.5194    
  16  Prefactor     75.913        79.586        .46087E-04   -1.3963    
  17  norm          .10000E-03    3.5127        .54385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    88.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.733        .14193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.467        12.115        .90954E-04   -1.4947    
  21  Prefactor     .10000E-03    107.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     56.085        98.577        .26763E-03   -1.4209    
  23  Prefactor     12.920        37.327        .11142E-03   -1.4989    
  24  norm          7.2404        10.490        .10420E-03   -1.5170    
  25  Prefactor     .10000E-03    73.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .22078        53.492        .17728E-02   -1.5614    
  27  Prefactor     148.05        128.63        .16561E-03   -1.3268    
  28  Prefactor     .10000E-03    14.364        .11053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    133.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          8.2266        14.676        .13433E-03   -1.5134    
  31  Prefactor     1311.7        1655.0        .59251E-04   -.82958    
  32  Normalizat    .43766        .50183        .28615E-03   -1.1540    
  33  Prefactor     .90020        .52355        .24924E-03   -.96134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15695e-09
Minuit parameter uncertainties:
  1  31.8011
  2  74.4321
  3  2.5657e-05
  4  0.00548454
  5  0.000141178
  6  0.000467857
  7  1.63975e-06
  8  1.73924e-05
  9  7.76638
  10  55.0062
  11  8.57727e-05
  12  3.36618e-05
  13  60.4143
  14  1.53827e-05
  15  5.89533
  16  79.6983
  17  5.38965e-06
  18  2.91668e-05
  19  3.43574e-05
  20  12.1166
  21  7.49606e-05
  22  98.8651
  23  37.3944
  24  10.4929
  25  7.79522e-05
  26  6.87773
  27  128.873
  28  1.30267e-05
  29  5.85402e-05
  30  14.6819
  31  1729.68
  32  0.507126
  33  0.526517
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  1.538e-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.002e-01  5.265e-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.377e-01  5.071e-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.70e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.29e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/892866/likelihoodResults_491788801_492048001_4FGL_J1245.1+5709_daily_bin974.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) = 892.839647677
delta logL = -0.000439782003241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 892.839208632
delta logL = -7.36520064493e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10964E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1253       1.0000          .0000       10.000    
     3 'Normalizat'    .43737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90054       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=   892.8392     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    440.83        .90712E-02** at limit **
   2  Index         2.1221        5.4566        .50000        .23260E-05
   3  Normalizat    .43765        .60395E-01    .64651E-01   -.24965E-03
   4  Prefactor     .90020        .74515E-01    .45012E-01   -.18666E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12214
  Normalizat = 0.437653
  Prefactor  = 0.900204
 **********
 **   18 **HESSE 
 **********

 FCN=   892.8392     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      234 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1006.3        .94746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1221        8.7060        .50000       -.61330    
   3  Normalizat    .43765        .99906E-01    .28615E-03   -1.1540    
   4  Prefactor     .90020        .12352        .24923E-03   -.96134    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.93716e-10
Minuit parameter uncertainties:
  1  0.000423198
  2  40.6717
  3  0.0999465
  4  0.123556
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/892866': 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) = 892.839207892
delta logL = 3.1916442822e-09

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  4.232e-04  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  2.122e+00  4.067e+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.002e-01  1.236e-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.377e-01  9.995e-02  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/892866/cmap_HighResolution_491788801_492048001_4FGL_J1245.1+5709_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', job_status='DONE', photon_flux_upper_limit='1.70e-07', time_completed='2021-09-06 04:27:02.423388', job_id='892866', GAL2='0.90', fit_tolerance='1e-08', EG2='0.44', EG='0.44', time_epoch_completed='1630927622.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.19e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='974' AND source_name='4FGL J1245.1+5709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:27:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 892866: <4FGL_J1245.1+5709_daily_bin974> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1245.1+5709_daily_bin974 191.288 57.158 491788801 492048001 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 :                                   454.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             192.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            691 sec.

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

