aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 200 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7448
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0945.7+5759_daily_bin1774
RA = 146.432, Dec = 57.9871
tmin = 699148801, tmax = 699408001
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='678825', job_status='RUN', time_executed='2023-03-02 00:33:51.281636', time_epoch_executed='1677746031.28' WHERE source_name='4FGL J0945.7+5759' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/678825

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/678825/ft1_4FGL_J0945.7+5759_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/678825/ft2_4FGL_J0945.7+5759_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/678825/ft1_4FGL_J0945.7+5759_daily_bin1774.fits outfile=/scratch/kocevski/678825/ft1_filteredMKT_4FGL_J0945.7+5759_daily_bin1774.fits ra=146.432 dec=57.9871 rad=12.0 tmin=699148801.0 tmax=699408001.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 2.79
user 2.59
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/678825/ft2_4FGL_J0945.7+5759_daily_bin1774.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/678825/ft2_4FGL_J0945.7+5759_daily_bin1774.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/678825/ft1_filteredMKT_4FGL_J0945.7+5759_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/678825/ft1_filtered_4FGL_J0945.7+5759_daily_bin1774.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.48
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 141

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/678825/ft1_filtered_4FGL_J0945.7+5759_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/678825/ft2_4FGL_J0945.7+5759_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/678825/ltcube_699148801_699408001_4FGL_J0945.7+5759_daily_bin1774.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/678825/ft2_4FGL_J0945.7+5759_daily_bin1774.fits
.....................!
real 12.33
user 11.99
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/678825/ft1_filtered_4FGL_J0945.7+5759_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/678825/ft2_4FGL_J0945.7+5759_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/678825/ltcube_699148801_699408001_4FGL_J0945.7+5759_daily_bin1774.fits outfile=/scratch/kocevski/678825/expmap_699148801_699408001_4FGL_J0945.7+5759_daily_bin1774.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/678825/ltcube_699148801_699408001_4FGL_J0945.7+5759_daily_bin1774.fits
.....................!
real 189.36
user 184.44
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 239 point sources and 0 extended sources

Setting source of interest to:
4FGL J0945.7+5759 @ 146.432 57.9871

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/678825/ft1_filtered_4FGL_J0945.7+5759_daily_bin1774.fits scfile=/scratch/kocevski/678825/ft2_4FGL_J0945.7+5759_daily_bin1774.fits outfile=/scratch/kocevski/678825/cmap_699148801_699408001_4FGL_J0945.7+5759_daily_bin1774.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=146.432 yref=57.9871 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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/678825/ft1_filtered_4FGL_J0945.7+5759_daily_bin1774.fits scfile=/scratch/kocevski/678825/ft2_4FGL_J0945.7+5759_daily_bin1774.fits outfile=/scratch/kocevski/678825/cmap_HighResolution_699148801_699408001_4FGL_J0945.7+5759_daily_bin1774.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=146.432 yref=57.9871 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/678825/ft1_filtered_4FGL_J0945.7+5759_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/678825/ft2_4FGL_J0945.7+5759_daily_bin1774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/678825/Model_4FGL_J0945.7+5759_daily_bin1774.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/678825/ft1_filtered_4FGL_J0945.7+5759_daily_bin1774.fits.....................!
real 30.10
user 28.82
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/678825/ft1_filtered_4FGL_J0945.7+5759_daily_bin1774.fits', '/scratch/kocevski/678825/ft2_4FGL_J0945.7+5759_daily_bin1774.fits', expMap='/scratch/kocevski/678825/expmap_699148801_699408001_4FGL_J0945.7+5759_daily_bin1774.fits', expCube='/scratch/kocevski/678825/ltcube_699148801_699408001_4FGL_J0945.7+5759_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/678825/Model_4FGL_J0945.7+5759_daily_bin1774.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0945.7+5759'

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  1.030e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
395        alpha:  1.875e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
396         beta:  2.282e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
397           Eb:  1.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/678825/ft1_filtered_4FGL_J0945.7+5759_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/678825/ft2_4FGL_J0945.7+5759_daily_bin1774.fits
Exposure map: /scratch/kocevski/678825/expmap_699148801_699408001_4FGL_J0945.7+5759_daily_bin1774.fits
Exposure cube: /scratch/kocevski/678825/ltcube_699148801_699408001_4FGL_J0945.7+5759_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/678825/Model_4FGL_J0945.7+5759_daily_bin1774.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) = 1112.92705021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15427E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .94964E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .11759E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .24505E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .92561E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .19665E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .25269E-01   1.0000          .0000       .10000E+07
     8 'norm      '    .24358E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .30785E+06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .70200E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .99999E+06   1.0000          .0000       .10000E+07
    12 'Prefactor '    609.75       1.0000          .0000       .10000E+07
    13 'Prefactor '    .31902E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .99995E+06   1.0000          .0000       .10000E+07
    15 'norm      '    .25258       1.0000          .0000       .10000E+07
    16 'Prefactor '    .26423E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .10712E-02   1.0000          .0000       .10000E+07
    18 'norm      '    315.86       1.0000          .0000       .10000E+07
    19 'Prefactor '    .91737E-04   1.0000          .0000       .10000E+07
    20 'norm      '    .52276       1.0000          .0000       .10000E+07
    21 'norm      '    .18238E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    .69228E-04   1.0000          .0000       .10000E+07
    23 'norm      '    .38578E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .90769E-04   1.0000          .0000       .10000E+07
    25 'norm      '    1.6555       1.0000          .0000       .10000E+07
    26 'norm      '    .29546E-03   1.0000          .0000       .10000E+07
    27 'Prefactor '    .16369       1.0000          .0000       .10000E+07
    28 'Prefactor '    .30852       1.0000          .0000       .10000E+07
    29 'norm      '    .10982E-02   1.0000          .0000       .10000E+07
    30 'Prefactor '    .56266E-05   1.0000          .0000       .10000E+07
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .80975E-01   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1112.879     FROM MIGRAD    STATUS=CONVERGED    300 CALLS     3982 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.6091        .75002E-08** at limit **
   2  Prefactor      .0000        4.5225        .62422E-08** at limit **
   3  Prefactor     .55511E-10    21.487       -.18789E-06** at limit **
   4  Prefactor      .0000        7.0000        .20739E-08** at limit **
   5  norm          .36637E-08    26.897       -.14474E-05** at limit **
   6  Prefactor      .0000        53.331       -.22182E-07** at limit **
   7  Prefactor     .67168E-07    537.95        .90859E-05** at limit **
   8  norm           .0000        1.8317        .12423E-08** at limit **
   9  Prefactor     .30785E+06    2.1569        .11226E-08   -.17824    
  10  Prefactor      .0000        2.2028       -.58692E-08** at limit **
  11  Prefactor     .10000E+07    5811.5        .40001E-04** at limit **
  12  Prefactor     610.73        31.187        .34212E-06   -.15546    
  13  Prefactor      .0000        8.8298        .26717E-07** at limit **
  14  Prefactor     .99996E+06    87.686        .36545E-05   -.11950    
  15  norm          .11102E-09    121.26       -.87247E-06** at limit **
  16  Prefactor     .43909E-07    178.72       -.63376E-06** at limit **
  17  norm           .0000        2.9560        .17026E-08** at limit **
  18  norm          316.64        24.957        .38006E-06   -.89520E-01
  19  Prefactor     .55789E-06    467.77        .17910E-05** at limit **
  20  norm          .52319        .47529        .58283E-08    .25254E-03
  21  norm           .0000        52.766       -.19358E-07** at limit **
  22  Prefactor     .16265E-07    158.08        .23176E-05** at limit **
  23  norm           .0000        16.051        .16227E-06** at limit **
  24  Prefactor     .94924E-08    26.037       -.14081E-04** at limit **
  25  norm          1.6550        2.6214        .18700E-05    .12408E-02
  26  norm           .0000        2.3770       -.19173E-07** at limit **
  27  Prefactor      .0000        94.917        .26659E-07** at limit **
  28  Prefactor     .21694E-06    139.90       -.52406E-05** at limit **
  29  norm           .0000        2.5883       -.13789E-07** at limit **
  30  Prefactor      .0000        12.759        .15045E-07** at limit **
  31  Normalizat    .10000E-01    .72443E-01    .54143E-05** at limit **
  32  Prefactor     .80995E-01    .55726E-01    .17659E-05    .65358E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 3.66374e-09
  Prefactor  = 0
  Prefactor  = 6.71685e-08
  norm       = 0
  Prefactor  = 307848
  Prefactor  = 0
  Prefactor  = 1e+06
  Prefactor  = 610.734
  Prefactor  = 0
  Prefactor  = 999958
  norm       = 1.11022e-10
  Prefactor  = 4.39093e-08
  norm       = 0
  norm       = 316.644
  Prefactor  = 5.57887e-07
  norm       = 0.523193
  norm       = 0
  Prefactor  = 1.62648e-08
  norm       = 0
  Prefactor  = 9.49241e-09
  norm       = 1.65499
  norm       = 0
  Prefactor  = 0
  Prefactor  = 2.16938e-07
  norm       = 0
  Prefactor  = 0
  Normalizat = 0.01
  Prefactor  = 0.0809949
 **********
 **   18 **HESSE 
 **********

 FCN=   1112.879     FROM HESSE     STATUS=OK           705 CALLS     4687 TOTAL
                     EDM=   .35E-01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.6093        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.5236        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    21.482        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        7.0016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .36637E-08    26.889        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        53.290        .17059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .67168E-07    533.24        .16712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        1.8314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .30785E+06    .18085E+06    .21664E-03   -.39445    
  10  Prefactor      .0000        2.2033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E+07    5307.4        .43595E-01    1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     610.73        .60439E+06    .40509E-04   -1.5214    
  13  Prefactor      .0000        8.8340        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .99996E+06    18631.        .14897E-03    1.5578    
  15  norm          .11102E-09    121.00        .10906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .43909E-07    178.11        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        2.9563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          316.64        .14575E+06    .56276E-04   -1.5352    
  19  Prefactor     .55789E-06    464.20        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .52319        .47077        .48199E-03   -1.5693    
  21  norm           .0000        52.720        .17155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .16265E-07    157.61        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        16.053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .94924E-08    26.060        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.6550        2.6642        .81995E-03   -1.5682    
  26  norm           .0000        2.3754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor      .0000        94.758        .12461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .21694E-06    139.59        .10096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm           .0000        2.5842        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor      .0000        12.757        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .50152E-01    .92276E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .80995E-01    .59374E-01    .33404E-01   -1.3906    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0352378
Minuit parameter uncertainties:
  1  4.73815e-07
  2  3.75888e-07
  3  5.10591e-05
  4  4.5881e-07
  5  0.000625503
  6  1.61644e-07
  7  0.0119684
  8  1.28262e-07
  9  185831
  10  3.22959e-08
  11  21.5363
  12  24705.6
  13  5.16849e-07
  14  1780.24
  15  0.00025508
  16  0.00559312
  17  1.0084e-07
  18  13943.2
  19  0.0321876
  20  0.470768
  21  1.50649e-07
  22  0.00319991
  23  1.92353e-07
  24  0.000995516
  25  2.66421
  26  1.10427e-07
  27  1.0521e-06
  28  0.0110057
  29  4.36421e-08
  30  4.98334e-08
  31  7.7557e-09
  32  0.0594172
Done.

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

Extracting fit parameters...

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  1.110e-10  2.551e-04  0.000e+00  1.000e+06 ( 1.000e-13)
395        alpha:  1.875e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
396         beta:  2.282e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
397           Eb:  1.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  8.099e-02  5.942e-02  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  1.000e-02  7.756e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 146.432 57.987
Photon Flux Upper Limit: 8.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.11e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/678825/likelihoodResults_699148801_699408001_4FGL_J0945.7+5759_daily_bin1774.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) = 1112.88264525
delta logL = -0.00393763064903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1112.87870795
delta logL = -3.27057023242e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13069E-04   1.0000          .0000       .10000E+07
     2 'alpha     '    3.3265       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80973E-01   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1112.879     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      233 TOTAL
                     EDM=   .31E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11102E-09    127.51       -.71515E-06** at limit **
   2  alpha         1.7397        3.3589        .64501E-04    .21709E-12
   3  Normalizat    .10000E-01    .72853E-01    .10102E-04** at limit **
   4  Prefactor     .80995E-01    .54830E-01   -.22769E-05    .97190E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11022e-10
  alpha      = 1.73973
  Normalizat = 0.01
  Prefactor  = 0.0809949
 **********
 **   18 **HESSE 
 **********

 FCN=   1112.879     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      270 TOTAL
                     EDM=   .51E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11102E-09    4.1158        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7397        3.9452        .51000       -.30900    
   3  Normalizat    .10000E-01    .30626E-05    .92276E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .80995E-01    .44570E-03    .33404E-01   -1.3906    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.07927e-14
Minuit parameter uncertainties:
  1  4.10644e-05
  2  326359
  3  2.02849e-09
  4  0.000445696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/678825': 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) = 1112.87870762
delta logL = 0.0

Extracting fit parameters...

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  1.110e-10  4.106e-05  0.000e+00  1.000e+06 ( 1.000e-13)
395        alpha:  1.740e+00  3.264e+05  0.000e+00  5.000e+00 ( 1.000e+00)
396         beta:  2.282e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
397           Eb:  1.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  8.099e-02  4.457e-04  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  1.000e-02  2.028e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 146.432 57.987

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/678825/cmap_HighResolution_699148801_699408001_4FGL_J0945.7+5759_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.11e-04', job_status='DONE', photon_flux_upper_limit='8.17e-07', time_completed='2023-03-02 00:42:15.112095', job_id='678825', GAL2='0.08', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677746535.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.08', dlogl='0.00e+00', ts2='-0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1774' AND source_name='4FGL J0945.7+5759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:42:15 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 678825: <4FGL_J0945.7+5759_daily_bin1774> in cluster <slac> Done

Job <4FGL_J0945.7+5759_daily_bin1774> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Mar  2 00:30:19 2023
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:30:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:30:21 2023
Terminated at Thu Mar  2 00:42:15 2023
Results reported at Thu Mar  2 00:42:15 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.7+5759_daily_bin1774 146.432 57.9871 699148801 699408001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0945.7+5759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   506.29 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             257.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            716 sec.

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

