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


Performing analysis on: 4FGL_J0045.7+1217_daily_bin1674
RA = 11.4309, Dec = 12.292
tmin = 673228801, tmax = 673488001
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='668229', job_status='RUN', time_executed='2022-05-06 00:12:54.532021', time_epoch_executed='1651821174.53' WHERE source_name='4FGL J0045.7+1217' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/668229

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/668229/ft1_4FGL_J0045.7+1217_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/668229/ft2_4FGL_J0045.7+1217_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/668229/ft1_4FGL_J0045.7+1217_daily_bin1674.fits outfile=/scratch/kocevski/668229/ft1_filteredMKT_4FGL_J0045.7+1217_daily_bin1674.fits ra=11.4309 dec=12.292 rad=12.0 tmin=673228801.0 tmax=673488001.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.81
user 2.57
sys 0.20

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

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

Number of photons that the gtmktime cut: 364

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/668229/ft1_filtered_4FGL_J0045.7+1217_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/668229/ft2_4FGL_J0045.7+1217_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/668229/ltcube_673228801_673488001_4FGL_J0045.7+1217_daily_bin1674.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/668229/ft2_4FGL_J0045.7+1217_daily_bin1674.fits
.....................!
real 15.49
user 15.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/668229/ft1_filtered_4FGL_J0045.7+1217_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/668229/ft2_4FGL_J0045.7+1217_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/668229/ltcube_673228801_673488001_4FGL_J0045.7+1217_daily_bin1674.fits outfile=/scratch/kocevski/668229/expmap_673228801_673488001_4FGL_J0045.7+1217_daily_bin1674.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/668229/ltcube_673228801_673488001_4FGL_J0045.7+1217_daily_bin1674.fits
.....................!
real 195.31
user 187.92
sys 6.48

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/668229/ft1_filtered_4FGL_J0045.7+1217_daily_bin1674.fits scfile=/scratch/kocevski/668229/ft2_4FGL_J0045.7+1217_daily_bin1674.fits outfile=/scratch/kocevski/668229/cmap_673228801_673488001_4FGL_J0045.7+1217_daily_bin1674.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/668229/ft1_filtered_4FGL_J0045.7+1217_daily_bin1674.fits scfile=/scratch/kocevski/668229/ft2_4FGL_J0045.7+1217_daily_bin1674.fits outfile=/scratch/kocevski/668229/cmap_HighResolution_673228801_673488001_4FGL_J0045.7+1217_daily_bin1674.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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/668229/ft1_filtered_4FGL_J0045.7+1217_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/668229/ft2_4FGL_J0045.7+1217_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/668229/Model_4FGL_J0045.7+1217_daily_bin1674.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/668229/ft1_filtered_4FGL_J0045.7+1217_daily_bin1674.fits.....................!
real 50.40
user 49.01
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/668229/ft1_filtered_4FGL_J0045.7+1217_daily_bin1674.fits', '/scratch/kocevski/668229/ft2_4FGL_J0045.7+1217_daily_bin1674.fits', expMap='/scratch/kocevski/668229/expmap_673228801_673488001_4FGL_J0045.7+1217_daily_bin1674.fits', expCube='/scratch/kocevski/668229/ltcube_673228801_673488001_4FGL_J0045.7+1217_daily_bin1674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/668229/Model_4FGL_J0045.7+1217_daily_bin1674.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  1.000e-04  1.000e+04 ( 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/668229/ft1_filtered_4FGL_J0045.7+1217_daily_bin1674.fits
Spacecraft file(s): /scratch/kocevski/668229/ft2_4FGL_J0045.7+1217_daily_bin1674.fits
Exposure map: /scratch/kocevski/668229/expmap_673228801_673488001_4FGL_J0045.7+1217_daily_bin1674.fits
Exposure cube: /scratch/kocevski/668229/ltcube_673228801_673488001_4FGL_J0045.7+1217_daily_bin1674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/668229/Model_4FGL_J0045.7+1217_daily_bin1674.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) = 4086.82971086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.687       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.1435       1.0000         .10000E-03   10000.    
     3 'norm      '    6.1736       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12968E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.008       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7270       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5328       1.0000         .10000E-03   10000.    
    13 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    55.310       1.0000         .10000E-03   10000.    
    15 'Prefactor '    814.15       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0920       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .89519       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4086.801     FROM MIGRAD    STATUS=CONVERGED    338 CALLS     1690 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.681        15.795       -.26642E-05   -.19984E-03
   2  Prefactor     9.1411        9.2895        .15782E-06   -.22965E-03
   3  norm          6.1743        4.7665        .16079E-06    .64588E-04
   4  Prefactor     .10000E-03    14.683       -.64397E-05** at limit **
   5  Prefactor     .10003E-03    4.4164        .37647E-05** at limit **
   6  norm          .10000E-03    7.9443       -.42048E-05** at limit **
   7  Prefactor     .10000E-03    17.894        .12852E-04** at limit **
   8  Prefactor     13.000        18.261       -.69632E-05   -.42890E-04
   9  norm          .10000E-03    4.1572        .26247E-06** at limit **
  10  Prefactor     1.7305        5.6164        .72055E-07   -.44257E-03
  11  Prefactor     .10000E-03    8.1918        .12415E-05** at limit **
  12  Prefactor     5.5322        4.7130        .23808E-05   -.87954E-04
  13  norm          .10000E-03    10.940       -.52650E-05** at limit **
  14  Prefactor     55.327        65.340        .20672E-04    .34155E-05
  15  Prefactor     814.14        246.59       -.23200E-05   -.31817E-05
  16  Prefactor     .10000E-03    27.303       -.62922E-05** at limit **
  17  Normalizat    1.0922        .26914       -.19390E-05   -.27644E-03
  18  Prefactor     .89490        .18362        .44662E-06   -.40307E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6812
  Prefactor  = 9.14106
  norm       = 6.17431
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0001
  norm       = 0.0001
  Prefactor  = 1.73053
  Prefactor  = 0.0001
  Prefactor  = 5.53224
  norm       = 0.0001
  Prefactor  = 55.3267
  Prefactor  = 814.143
  Prefactor  = 0.0001
  Normalizat = 1.09225
  Prefactor  = 0.894902
 **********
 **   18 **HESSE 
 **********

 FCN=   4086.801     FROM HESSE     STATUS=OK           236 CALLS     1926 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.681        15.806        .10451E-03   -1.4941    
   2  Prefactor     9.1411        9.2811        .13254E-03   -1.5103    
   3  norm          6.1743        4.7668        .11838E-03   -1.5211    
   4  Prefactor     .10000E-03    14.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    8.8227        .25103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.9514        .17583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.000        18.206        .11106E-03   -1.4987    
   9  norm          .10000E-03    4.1581        .12731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7305        5.5714        .26183E-03   -1.5445    
  11  Prefactor     .10000E-03    8.2096        .17871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.5322        4.7128        .12112E-03   -1.5238    
  13  norm          .10000E-03    10.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     55.327        65.596        .53936E-04   -1.4219    
  15  Prefactor     814.14        246.78        .73134E-04   -.99209    
  16  Prefactor     .10000E-03    27.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0922        .31355        .30982E-03   -.90001    
  18  Prefactor     .89490        .21461        .23507E-03   -.96319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35573e-09
Minuit parameter uncertainties:
  1  15.8101
  2  9.28251
  3  4.76707
  4  3.3598e-05
  5  0.00109187
  6  2.72022e-05
  7  2.97398e-05
  8  18.2141
  9  5.81766e-07
  10  5.57306
  11  5.71107e-07
  12  4.71309
  13  1.27583e-06
  14  65.6815
  15  247.115
  16  9.68381e-05
  17  0.31409
  18  0.214815
Done.

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

Extracting fit parameters...

4FGL J0045.7+1217
   Spectrum: PowerLaw
185    Prefactor:  1.731e+00  5.573e+00  1.000e-04  1.000e+04 ( 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:  8.949e-01  2.148e-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.092e+00  3.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/668229/likelihoodResults_673228801_673488001_4FGL_J0045.7+1217_daily_bin1674.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) = 4086.79479719
delta logL = 0.00616569927615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4086.79304056
delta logL = 0.00792232551976

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1144       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8299       1.0000          .0000       10.000    
     3 'Normalizat'    1.0934       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89427       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=   4086.793     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1192        366.09        .70920E-02    .40069E-03
   2  Index         1.8278        5.2732        .26870        .23411E-04
   3  Normalizat    1.0934        .68392E-01    .69989E-01    .73166E-05
   4  Prefactor     .89424        .46193E-01    .44932E-01    .15955E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.11923
  Index      = 1.82777
  Normalizat = 1.09341
  Prefactor  = 0.894245
 **********
 **   18 **HESSE 
 **********

 FCN=   4086.793     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1192        6.9544        .27495E-03   -1.5417    
   2  Index         1.8278        1.2058        .11531E-01   -.68729    
   3  Normalizat    1.0934        .30307        .30968E-03   -.89964    
   4  Prefactor     .89424        .21267        .23514E-03   -.96342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.39401e-10
Minuit parameter uncertainties:
  1  6.95702
  2  1.22631
  3  0.303558
  4  0.212864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/668229': 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) = 4086.79303891
delta logL = 0.00792397406622

Extracting fit parameters...

4FGL J0045.7+1217
   Spectrum: PowerLaw
185    Prefactor:  2.119e+00  6.957e+00  1.000e-04  1.000e+04 ( 1.000e-13)
186        Index:  1.828e+00  1.226e+00  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:  8.942e-01  2.129e-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.093e+00  3.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 11.431 12.292

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/668229/cmap_HighResolution_673228801_673488001_4FGL_J0045.7+1217_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.98e-03', job_status='DONE', photon_flux_upper_limit='9.32e-08', time_completed='2022-05-06 00:20:41.091215', job_id='668229', GAL2='0.89', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1651821641.09', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='7.92e-03', ts2='0.14', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1674' AND source_name='4FGL J0045.7+1217' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 00:20:41 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 668230: <4FGL_J0045.7+1217_daily_bin1674> in cluster <slac> Done

Job <4FGL_J0045.7+1217_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:05:27 2022
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 00:08:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 00:08:53 2022
Terminated at Fri May  6 00:18:58 2022
Results reported at Fri May  6 00:18:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0045.7+1217_daily_bin1674 11.4309 12.292 673228801 673488001 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 :                                   470.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   607 sec.
    Turnaround time :                            811 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 668229: <4FGL_J0045.7+1217_daily_bin1674> in cluster <slac> Done

Job <4FGL_J0045.7+1217_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:05:27 2022
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 00:08:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 00:08:51 2022
Terminated at Fri May  6 00:20:41 2022
Results reported at Fri May  6 00:20:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0045.7+1217_daily_bin1674 11.4309 12.292 673228801 673488001 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 :                                   468.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            914 sec.

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

