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


Performing analysis on: 4FGL_J0945.7+5759_daily_bin1747
RA = 146.432, Dec = 57.9871
tmin = 692150401, tmax = 692409601
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='794352', job_status='RUN', time_executed='2022-12-11 00:30:57.562015', time_epoch_executed='1670747457.56' WHERE source_name='4FGL J0945.7+5759' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/794352

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/794352/ft1_4FGL_J0945.7+5759_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/794352/ft2_4FGL_J0945.7+5759_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/794352/ft1_4FGL_J0945.7+5759_daily_bin1747.fits outfile=/scratch/kocevski/794352/ft1_filteredMKT_4FGL_J0945.7+5759_daily_bin1747.fits ra=146.432 dec=57.9871 rad=12.0 tmin=692150401.0 tmax=692409601.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.00
user 3.76
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/794352/ft2_4FGL_J0945.7+5759_daily_bin1747.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/794352/ft1_filteredMKT_4FGL_J0945.7+5759_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/794352/ft1_filtered_4FGL_J0945.7+5759_daily_bin1747.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.32
sys 0.15

Number of photons that the gtmktime cut: 738

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/794352/ft1_filtered_4FGL_J0945.7+5759_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/794352/ft2_4FGL_J0945.7+5759_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/794352/ltcube_692150401_692409601_4FGL_J0945.7+5759_daily_bin1747.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/794352/ft2_4FGL_J0945.7+5759_daily_bin1747.fits
.....................!
real 12.31
user 11.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/794352/ft1_filtered_4FGL_J0945.7+5759_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/794352/ft2_4FGL_J0945.7+5759_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/794352/ltcube_692150401_692409601_4FGL_J0945.7+5759_daily_bin1747.fits outfile=/scratch/kocevski/794352/expmap_692150401_692409601_4FGL_J0945.7+5759_daily_bin1747.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/794352/ltcube_692150401_692409601_4FGL_J0945.7+5759_daily_bin1747.fits
.....................!
real 192.64
user 185.11
sys 5.55

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/794352/ft1_filtered_4FGL_J0945.7+5759_daily_bin1747.fits scfile=/scratch/kocevski/794352/ft2_4FGL_J0945.7+5759_daily_bin1747.fits outfile=/scratch/kocevski/794352/cmap_692150401_692409601_4FGL_J0945.7+5759_daily_bin1747.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.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/794352/ft1_filtered_4FGL_J0945.7+5759_daily_bin1747.fits scfile=/scratch/kocevski/794352/ft2_4FGL_J0945.7+5759_daily_bin1747.fits outfile=/scratch/kocevski/794352/cmap_HighResolution_692150401_692409601_4FGL_J0945.7+5759_daily_bin1747.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/794352/ft1_filtered_4FGL_J0945.7+5759_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/794352/ft2_4FGL_J0945.7+5759_daily_bin1747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/794352/Model_4FGL_J0945.7+5759_daily_bin1747.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/794352/ft1_filtered_4FGL_J0945.7+5759_daily_bin1747.fits.....................!
real 78.03
user 75.77
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/794352/ft1_filtered_4FGL_J0945.7+5759_daily_bin1747.fits', '/scratch/kocevski/794352/ft2_4FGL_J0945.7+5759_daily_bin1747.fits', expMap='/scratch/kocevski/794352/expmap_692150401_692409601_4FGL_J0945.7+5759_daily_bin1747.fits', expCube='/scratch/kocevski/794352/ltcube_692150401_692409601_4FGL_J0945.7+5759_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/794352/Model_4FGL_J0945.7+5759_daily_bin1747.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/794352/ft1_filtered_4FGL_J0945.7+5759_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/794352/ft2_4FGL_J0945.7+5759_daily_bin1747.fits
Exposure map: /scratch/kocevski/794352/expmap_692150401_692409601_4FGL_J0945.7+5759_daily_bin1747.fits
Exposure cube: /scratch/kocevski/794352/ltcube_692150401_692409601_4FGL_J0945.7+5759_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/794352/Model_4FGL_J0945.7+5759_daily_bin1747.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8051.04420541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99501E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.4233       1.0000          .0000       .10000E+07
     3 'Prefactor '    6.4000       1.0000          .0000       .10000E+07
     4 'Prefactor '    19.513       1.0000          .0000       .10000E+07
     5 'norm      '    .75495E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.9525       1.0000          .0000       .10000E+07
     7 'Prefactor '    .69759E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .81966       1.0000          .0000       .10000E+07
     9 'Prefactor '    .66613E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.8328       1.0000          .0000       .10000E+07
    11 'Prefactor '    .28011E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    5.8431       1.0000          .0000       .10000E+07
    13 'Prefactor '    .33018E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    18.034       1.0000          .0000       .10000E+07
    15 'norm      '    2.3536       1.0000          .0000       .10000E+07
    16 'Prefactor '    44.712       1.0000          .0000       .10000E+07
    17 'norm      '    1.6346       1.0000          .0000       .10000E+07
    18 'norm      '    54.862       1.0000          .0000       .10000E+07
    19 'Prefactor '    .14152E-02   1.0000          .0000       .10000E+07
    20 'norm      '    1.7925       1.0000          .0000       .10000E+07
    21 'norm      '    2.0516       1.0000          .0000       .10000E+07
    22 'Prefactor '    .15433E-01   1.0000          .0000       .10000E+07
    23 'norm      '    .86930E-07   1.0000          .0000       .10000E+07
    24 'Prefactor '    15.011       1.0000          .0000       .10000E+07
    25 'norm      '    3.0126       1.0000          .0000       .10000E+07
    26 'norm      '    .41078E-08   1.0000          .0000       .10000E+07
    27 'Prefactor '    .31492E-02   1.0000          .0000       .10000E+07
    28 'Prefactor '    .83275E-01   1.0000          .0000       .10000E+07
    29 'norm      '    6.0717       1.0000          .0000       .10000E+07
    30 'Prefactor '    .17320E-02   1.0000          .0000       .10000E+07
    31 'Normalizat'    .83460       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0830       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=   8049.487     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     1841 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37192E-08    6.2458        .74469E-07** at limit **
   2  Prefactor     9.4161        6.1400       -.19445E-06   -.10603E-01
   3  Prefactor     6.4075        6.6867        .11465E-05    .70182E-01
   4  Prefactor     19.369        2.2741       -.10783E-06    .35512E-01
   5  norm           .0000        1.6902       -.40947E-08** at limit **
   6  Prefactor     7.9458        1.1229        .53695E-07    .96038E-02
   7  Prefactor     .12734E-06    12.208        .59926E-07** at limit **
   8  norm          .81967        .59356       -.24759E-08    .44694E-02
   9  Prefactor     .16653E-09    2.2231       -.20481E-06** at limit **
  10  Prefactor     1.9050        6.3094        .30600E-06    .30937E-02
  11  Prefactor      .0000        3.7372       -.17893E-07** at limit **
  12  Prefactor     5.8337        1.8418       -.10078E-07   -.50958E-02
  13  Prefactor     .19984E-08    5.5617       -.18674E-06** at limit **
  14  Prefactor     18.071        7.7592       -.85279E-07   -.27374E-01
  15  norm          2.3451        6.0789       -.86582E-07   -.59431E-02
  16  Prefactor     45.019        5.7016       -.31568E-06    .22846    
  17  norm          1.6340        .55045        .43206E-07   -.26390E-02
  18  norm          54.815        3.8353       -.12202E-07    .18106E-01
  19  Prefactor     .59452E-07    26.483        .17044E-05** at limit **
  20  norm          1.7920        .67040       -.24815E-07    .46451E-02
  21  norm          2.0523        1.6011        .98009E-07   -.24587E-03
  22  Prefactor     .55511E-10    23.833       -.41032E-07** at limit **
  23  norm          .72164E-09    3.9028       -.21265E-06** at limit **
  24  Prefactor     15.143        1.1263        .27187E-07   -.59887E-02
  25  norm          3.0027        1.9115        .33332E-07    .23719E-02
  26  norm           .0000        .38410        .28392E-07** at limit **
  27  Prefactor     .65953E-06    112.83       -.13542E-05** at limit **
  28  Prefactor     .13565E-04    8.2182       -.12318E-05** at limit **
  29  norm          6.0725        2.6236        .10328E-07    .19795E-02
  30  Prefactor     .36804E-07    10.664        .11467E-06** at limit **
  31  Normalizat    .83397        .16697        .33255E-05    .15815E-03
  32  Prefactor     1.0832        .16599       -.23998E-05    .15035E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.71925e-09
  Prefactor  = 9.4161
  Prefactor  = 6.40754
  Prefactor  = 19.3686
  norm       = 0
  Prefactor  = 7.94584
  Prefactor  = 1.27343e-07
  norm       = 0.819673
  Prefactor  = 1.66533e-10
  Prefactor  = 1.90498
  Prefactor  = 0
  Prefactor  = 5.8337
  Prefactor  = 1.9984e-09
  Prefactor  = 18.0706
  norm       = 2.34511
  Prefactor  = 45.0187
  norm       = 1.63401
  norm       = 54.8152
  Prefactor  = 5.94524e-08
  norm       = 1.79201
  norm       = 2.05231
  Prefactor  = 5.55112e-11
  norm       = 7.21645e-10
  Prefactor  = 15.1433
  norm       = 3.00269
  norm       = 0
  Prefactor  = 6.59528e-07
  Prefactor  = 1.35647e-05
  norm       = 6.07249
  Prefactor  = 3.68039e-08
  Normalizat = 0.833972
  Prefactor  = 1.08322
 **********
 **   18 **HESSE 
 **********

 FCN=   8049.487     FROM HESSE     STATUS=OK           727 CALLS     2568 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37192E-08    6.2417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.4161        6.1593        .32622E-03   -1.5647    
   3  Prefactor     6.4075        6.8763        .39651E-03   -1.5657    
   4  Prefactor     19.369        18.994        .22646E-03   -1.5620    
   5  norm           .0000        1.6984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.9458        12.188        .35531E-03   -1.5652    
   7  Prefactor     .12734E-06    12.852        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .81967        .59472        .51481E-03   -1.5690    
   9  Prefactor     .16653E-09    2.2277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.9050        6.3496        .77051E-03   -1.5680    
  11  Prefactor      .0000        3.6795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.8337        12.745        .41523E-03   -1.5660    
  13  Prefactor     .19984E-08    5.5496        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.071        8.1905        .23557E-03   -1.5623    
  15  norm          2.3451        6.2844        .66784E-03   -1.5677    
  16  Prefactor     45.019        36.426        .14956E-03   -1.5574    
  17  norm          1.6340        .55422        .82654E-03   -1.5682    
  18  norm          54.815        16.335        .13502E-03   -1.5560    
  19  Prefactor     .59452E-07    25.706        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7920        .67323        .78087E-03   -1.5681    
  21  norm          2.0523        1.6051        .72140E-03   -1.5679    
  22  Prefactor     .55511E-10    23.548        .17358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .72164E-09    3.9022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     15.143        19.385        .25825E-03   -1.5630    
  25  norm          3.0027        2.3906        .58449E-03   -1.5673    
  26  norm           .0000        .38335        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .65953E-06    113.46        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .13565E-04    183.99        .14402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          6.0725        2.6266        .40723E-03   -1.5659    
  30  Prefactor     .36804E-07    11.057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .83397        .15608        .44060E-01   -.98821    
  32  Prefactor     1.0832        .14880        .56480E-01   -.90005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65218e-06
Minuit parameter uncertainties:
  1  0.000304699
  2  6.15928
  3  6.87628
  4  18.9944
  5  1.38748e-06
  6  12.1881
  7  0.00255884
  8  0.594718
  9  3.91475e-05
  10  6.34965
  11  1.28211e-05
  12  12.7454
  13  0.000210234
  14  8.19052
  15  6.28441
  16  36.4258
  17  0.554221
  18  16.3352
  19  0.00247229
  20  0.673232
  21  1.60513
  22  5.68367e-05
  23  0.00010793
  24  19.3853
  25  2.39061
  26  8.42807e-07
  27  0.0173013
  28  0.0999198
  29  2.62657
  30  0.00127595
  31  0.156161
  32  0.148857
Done.

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

Extracting fit parameters...

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  2.345e+00  6.284e+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

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  1.083e+00  1.489e-01  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:  8.340e-01  1.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.20
Ra Dec: 146.432 57.987
Photon Flux Upper Limit: 3.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/794352/likelihoodResults_692150401_692409601_4FGL_J0945.7+5759_daily_bin1747.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) = 8049.48077425
delta logL = 0.00581622400659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8049.4806949
delta logL = 0.00589557753847

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8049.481     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      276 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2755        6.3148        .13592E-03    .47334E-02
   2  alpha         2.0920        1.8734        .50882E-01    .93344E-04
   3  Normalizat    .83334        .15903        .27646E-03   -.41122E-06
   4  Prefactor     1.0832        .16241        .24972E-03   -.89231E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.27554
  alpha      = 2.09202
  Normalizat = 0.833338
  Prefactor  = 1.0832
 **********
 **   18 **HESSE 
 **********

 FCN=   8049.481     FROM HESSE     STATUS=OK            27 CALLS      303 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2755        5.9871        .27184E-04   -1.5678    
   2  alpha         2.0920        1.8038        .10176E-01   -.16392    
   3  Normalizat    .83334        .15905        .11059E-04   -.98844    
   4  Prefactor     1.0832        .16250        .99888E-05   -.90005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10737e-12
Minuit parameter uncertainties:
  1  5.98709
  2  2.02318
  3  0.159142
  4  0.162574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/794352': 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) = 8049.48068909
delta logL = 0.00590138828102

Extracting fit parameters...

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  2.276e+00  5.987e+00  0.000e+00  1.000e+06 ( 1.000e-13)
395        alpha:  2.092e+00  2.023e+00  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:  1.083e+00  1.626e-01  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:  8.333e-01  1.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
Ra Dec: 146.432 57.987

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/794352/cmap_HighResolution_692150401_692409601_4FGL_J0945.7+5759_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.34e-05', job_status='DONE', photon_flux_upper_limit='3.00e-08', time_completed='2022-12-11 00:46:51.118070', job_id='794352', GAL2='1.08', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1670748411.12', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='5.90e-03', ts2='0.21', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1747' AND source_name='4FGL J0945.7+5759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 00:46:51 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 794352: <4FGL_J0945.7+5759_daily_bin1747> in cluster <slac> Done

Job <4FGL_J0945.7+5759_daily_bin1747> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Dec 11 00:30:29 2022
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 00:30:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 00:30:31 2022
Terminated at Sun Dec 11 00:46:51 2022
Results reported at Sun Dec 11 00:46:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.7+5759_daily_bin1747 146.432 57.9871 692150401 692409601 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 :                                   946.08 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             350.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            982 sec.

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

