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


Performing analysis on: 4FGL_J0045.7+1217_daily_bin1752
RA = 11.4309, Dec = 12.292
tmin = 693446401, tmax = 693705601
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='248209', job_status='RUN', time_executed='2022-12-26 00:10:58.700280', time_epoch_executed='1672042258.7' WHERE source_name='4FGL J0045.7+1217' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248209

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248209/ft1_4FGL_J0045.7+1217_daily_bin1752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248209/ft2_4FGL_J0045.7+1217_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248209/ft1_4FGL_J0045.7+1217_daily_bin1752.fits outfile=/scratch/kocevski/248209/ft1_filteredMKT_4FGL_J0045.7+1217_daily_bin1752.fits ra=11.4309 dec=12.292 rad=12.0 tmin=693446401.0 tmax=693705601.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 3.49
user 3.24
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/248209/ft2_4FGL_J0045.7+1217_daily_bin1752.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/248209/ft2_4FGL_J0045.7+1217_daily_bin1752.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/248209/ft1_filteredMKT_4FGL_J0045.7+1217_daily_bin1752.fits evtable="EVENTS" outfile="/scratch/kocevski/248209/ft1_filtered_4FGL_J0045.7+1217_daily_bin1752.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.52
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 677

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248209/ft1_filtered_4FGL_J0045.7+1217_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/248209/ft2_4FGL_J0045.7+1217_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/248209/ltcube_693446401_693705601_4FGL_J0045.7+1217_daily_bin1752.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/248209/ft2_4FGL_J0045.7+1217_daily_bin1752.fits
.....................!
real 13.46
user 13.02
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248209/ft1_filtered_4FGL_J0045.7+1217_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/248209/ft2_4FGL_J0045.7+1217_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/248209/ltcube_693446401_693705601_4FGL_J0045.7+1217_daily_bin1752.fits outfile=/scratch/kocevski/248209/expmap_693446401_693705601_4FGL_J0045.7+1217_daily_bin1752.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/248209/ltcube_693446401_693705601_4FGL_J0045.7+1217_daily_bin1752.fits
.....................!
real 193.74
user 187.11
sys 4.97

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 156 point sources and 0 extended sources

Setting source of interest to:
4FGL J0045.7+1217 @ 11.4309 12.292

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/248209/ft1_filtered_4FGL_J0045.7+1217_daily_bin1752.fits scfile=/scratch/kocevski/248209/ft2_4FGL_J0045.7+1217_daily_bin1752.fits outfile=/scratch/kocevski/248209/cmap_693446401_693705601_4FGL_J0045.7+1217_daily_bin1752.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=11.4309 yref=12.292 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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248209/ft1_filtered_4FGL_J0045.7+1217_daily_bin1752.fits scfile=/scratch/kocevski/248209/ft2_4FGL_J0045.7+1217_daily_bin1752.fits outfile=/scratch/kocevski/248209/cmap_HighResolution_693446401_693705601_4FGL_J0045.7+1217_daily_bin1752.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=11.4309 yref=12.292 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/248209/ft1_filtered_4FGL_J0045.7+1217_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/248209/ft2_4FGL_J0045.7+1217_daily_bin1752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/248209/Model_4FGL_J0045.7+1217_daily_bin1752.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/248209/ft1_filtered_4FGL_J0045.7+1217_daily_bin1752.fits.....................!
real 83.49
user 81.23
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/248209/ft1_filtered_4FGL_J0045.7+1217_daily_bin1752.fits', '/scratch/kocevski/248209/ft2_4FGL_J0045.7+1217_daily_bin1752.fits', expMap='/scratch/kocevski/248209/expmap_693446401_693705601_4FGL_J0045.7+1217_daily_bin1752.fits', expCube='/scratch/kocevski/248209/ltcube_693446401_693705601_4FGL_J0045.7+1217_daily_bin1752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/248209/Model_4FGL_J0045.7+1217_daily_bin1752.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0045.7+1217'

4FGL J0045.7+1217
   Spectrum: PowerLaw
185    Prefactor:  1.915e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
186        Index:  1.982e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
187        Scale:  2.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/248209/ft1_filtered_4FGL_J0045.7+1217_daily_bin1752.fits
Spacecraft file(s): /scratch/kocevski/248209/ft2_4FGL_J0045.7+1217_daily_bin1752.fits
Exposure map: /scratch/kocevski/248209/expmap_693446401_693705601_4FGL_J0045.7+1217_daily_bin1752.fits
Exposure cube: /scratch/kocevski/248209/ltcube_693446401_693705601_4FGL_J0045.7+1217_daily_bin1752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/248209/Model_4FGL_J0045.7+1217_daily_bin1752.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) = 7557.56879322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71009E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .25138E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .26343E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    9.6265       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.3624       1.0000          .0000       .10000E+07
     6 'norm      '    .48779E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .16619E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.2288       1.0000          .0000       .10000E+07
     9 'norm      '    .65595E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .40712E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .16364E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .65279E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .37174E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .85806E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    417.03       1.0000          .0000       .10000E+07
    16 'Prefactor '    .43418E-01   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.0150       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1088       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7557.566     FROM MIGRAD    STATUS=CONVERGED     99 CALLS     1359 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83267E-09    .69232       -.68578E-07** at limit **
   2  Prefactor     .11102E-07    8.8610        .12326E-06** at limit **
   3  norm          .55511E-10    1.2569        .98372E-07** at limit **
   4  Prefactor     9.5847        2.3746       -.64455E-07   -.65510E-01
   5  Prefactor     3.3625        3.6973        .25277E-06   -.11817E-02
   6  norm          .20539E-08    2.6973       -.43860E-06** at limit **
   7  Prefactor      .0000        5.9431       -.39131E-06** at limit **
   8  Prefactor     1.1758        2.3790       -.14632E-06   -.17170E-02
   9  norm           .0000        2.8260       -.88778E-07** at limit **
  10  Prefactor     .64210E-06    5.7398        .24575E-06** at limit **
  11  Prefactor     .27756E-09    3.9842        .36472E-06** at limit **
  12  Prefactor     .38303E-08    3.4113        .82112E-07** at limit **
  13  norm          .38802E-06    8.1473        .20278E-06** at limit **
  14  Prefactor     .33307E-09    22.150       -.11645E-05** at limit **
  15  Prefactor     416.99        1.5258       -.54953E-08    .48617    
  16  Prefactor     .85332E-06    1.3386       -.18219E-06** at limit **
  17  Normalizat    1.0152        .22082        .11107E-04   -.18193E-04
  18  Prefactor     1.1089        .15831       -.57163E-05    .11667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.32667e-10
  Prefactor  = 1.11022e-08
  norm       = 5.55112e-11
  Prefactor  = 9.58471
  Prefactor  = 3.36248
  norm       = 2.05391e-09
  Prefactor  = 0
  Prefactor  = 1.17584
  norm       = 0
  Prefactor  = 6.42097e-07
  Prefactor  = 2.77556e-10
  Prefactor  = 3.83027e-09
  norm       = 3.88023e-07
  Prefactor  = 3.33067e-10
  Prefactor  = 416.992
  Prefactor  = 8.53317e-07
  Normalizat = 1.01519
  Prefactor  = 1.10886
 **********
 **   18 **HESSE 
 **********

 FCN=   7557.566     FROM HESSE     STATUS=OK           284 CALLS     1643 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83267E-09    11.382        .10850E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11102E-07    9.0001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    1.2609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.5847        8.2811        .32274E-03   -1.5646    
   5  Prefactor     3.3625        3.7352        .55163E-03   -1.5671    
   6  norm          .20539E-08    2.7582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        6.0372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1758        40.284        .10146E-02   -1.5686    
   9  norm           .0000        2.8366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .64210E-06    13.551        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .27756E-09    3.9891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .38303E-08    3.5089        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .38802E-06    13.833        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .33307E-09    22.288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     416.99        131.32        .48979E-04   -1.5300    
  16  Prefactor     .85332E-06    5.6949        .11099E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0152        .19850        .71586E-01   -.92523    
  18  Prefactor     1.1089        .13885        .37263E-01   -.89184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05707e-05
Minuit parameter uncertainties:
  1  0.000192842
  2  0.000631887
  3  1.31392e-05
  4  8.2811
  5  3.73516
  6  0.000150982
  7  1.36454e-05
  8  13.7649
  9  5.1774e-06
  10  0.00589946
  11  6.49983e-05
  12  0.000231196
  13  0.00463355
  14  0.000166536
  15  131.317
  16  0.0044089
  17  0.198645
  18  0.138894
Done.

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

Extracting fit parameters...

4FGL J0045.7+1217
   Spectrum: PowerLaw
185    Prefactor:  6.421e-07  5.899e-03  0.000e+00  1.000e+06 ( 1.000e-13)
186        Index:  1.982e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
187        Scale:  2.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  1.109e+00  1.389e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.015e+00  1.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 11.431 12.292
Photon Flux Upper Limit: 7.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248209/likelihoodResults_693446401_693705601_4FGL_J0045.7+1217_daily_bin1752.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) = 7557.60757305
delta logL = -0.041602778997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7557.55233654
delta logL = 0.0136337247905

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28946       1.0000          .0000       .10000E+07
     2 'Index     '    2.8329       1.0000          .0000       10.000    
     3 'Normalizat'    1.0088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1087       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7557.552     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      233 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29072        5.5394        .41590E-02    .83938E-02
   2  Index         2.8306        1.7665        .22519        .23663E-04
   3  Normalizat    1.0087        .13332E-01    .71808E-01   -.28379E-04
   4  Prefactor     1.1088        .95975E-02    .37264E-01   -.11059E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.290718
  Index      = 2.83056
  Normalizat = 1.00872
  Prefactor  = 1.10879
 **********
 **   18 **HESSE 
 **********

 FCN=   7557.552     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29072        456.04        .15129E-03   -1.5697    
   2  Index         2.8306        5.7901        .12951E-01   -.44880    
   3  Normalizat    1.0087        .13352        .31770E-03   -.92739    
   4  Prefactor     1.1088        .11651        .21826E-03   -.89186    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.95085e-06
Minuit parameter uncertainties:
  1  23.0304
  2  26.815
  3  0.13356
  4  0.116535
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248209': 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) = 7557.5523361
delta logL = 0.0136341674934

Extracting fit parameters...

4FGL J0045.7+1217
   Spectrum: PowerLaw
185    Prefactor:  2.907e-01  2.303e+01  0.000e+00  1.000e+06 ( 1.000e-13)
186        Index:  2.831e+00  2.681e+01  0.000e+00  1.000e+01 (-1.000e+00)
187        Scale:  2.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  1.109e+00  1.165e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.009e+00  1.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 11.431 12.292

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/248209/cmap_HighResolution_693446401_693705601_4FGL_J0045.7+1217_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-03', job_status='DONE', photon_flux_upper_limit='7.83e-08', time_completed='2022-12-26 00:20:43.009186', job_id='248209', GAL2='1.11', fit_tolerance='1e-08', EG2='1.01', EG='1.02', time_epoch_completed='1672042843.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.36e-02', ts2='0.03', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1752' AND source_name='4FGL J0045.7+1217' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 00:20:43 PST 2022

'SUCCESS', return_code='0', GAL='1.11', dlogl='1.36e-02', ts2='0.03', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1752' AND source_name='4FGL J0045.7+1217' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 00:19:29 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 248208: <4FGL_J0045.7+1217_daily_bin1752> in cluster <slac> Done

Job <4FGL_J0045.7+1217_daily_bin1752> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Dec 26 00:06:12 2022
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 00:07:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 00:07:48 2022
Terminated at Mon Dec 26 00:19:30 2022
Results reported at Mon Dec 26 00:19:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0045.7+1217_daily_bin1752 11.4309 12.292 693446401 693705601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0045.7+1217 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   575.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            798 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 248209: <4FGL_J0045.7+1217_daily_bin1752> in cluster <slac> Done

Job <4FGL_J0045.7+1217_daily_bin1752> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Dec 26 00:06:12 2022
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 00:07:49 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 00:07:49 2022
Terminated at Mon Dec 26 00:20:43 2022
Results reported at Mon Dec 26 00:20:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0045.7+1217_daily_bin1752 11.4309 12.292 693446401 693705601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0045.7+1217 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   581.28 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             274.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            871 sec.

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

