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


Performing analysis on: 4FGL_J0045.7+1217_daily_bin1673
RA = 11.4309, Dec = 12.292
tmin = 672969601, tmax = 673228801
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='350813', job_status='RUN', time_executed='2022-05-03 00:07:10.774130', time_epoch_executed='1651561630.77' WHERE source_name='4FGL J0045.7+1217' and cadence='daily' and bin_id='1673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/350813

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/350813/ft1_4FGL_J0045.7+1217_daily_bin1673.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/350813/ft2_4FGL_J0045.7+1217_daily_bin1673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/350813/ft1_4FGL_J0045.7+1217_daily_bin1673.fits outfile=/scratch/kocevski/350813/ft1_filteredMKT_4FGL_J0045.7+1217_daily_bin1673.fits ra=11.4309 dec=12.292 rad=12.0 tmin=672969601.0 tmax=673228801.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.02
user 2.75
sys 0.21

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

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

Number of photons that the gtmktime cut: 387

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/350813/ft1_filtered_4FGL_J0045.7+1217_daily_bin1673.fits" evtable="EVENTS" scfile=/scratch/kocevski/350813/ft2_4FGL_J0045.7+1217_daily_bin1673.fits sctable="SC_DATA" outfile=/scratch/kocevski/350813/ltcube_672969601_673228801_4FGL_J0045.7+1217_daily_bin1673.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/350813/ft2_4FGL_J0045.7+1217_daily_bin1673.fits
.....................!
real 17.40
user 16.90
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/350813/ft1_filtered_4FGL_J0045.7+1217_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/350813/ft2_4FGL_J0045.7+1217_daily_bin1673.fits sctable="SC_DATA" expcube=/scratch/kocevski/350813/ltcube_672969601_673228801_4FGL_J0045.7+1217_daily_bin1673.fits outfile=/scratch/kocevski/350813/expmap_672969601_673228801_4FGL_J0045.7+1217_daily_bin1673.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/350813/ltcube_672969601_673228801_4FGL_J0045.7+1217_daily_bin1673.fits
.....................!
real 192.52
user 186.54
sys 5.53

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/350813/ft1_filtered_4FGL_J0045.7+1217_daily_bin1673.fits scfile=/scratch/kocevski/350813/ft2_4FGL_J0045.7+1217_daily_bin1673.fits outfile=/scratch/kocevski/350813/cmap_672969601_673228801_4FGL_J0045.7+1217_daily_bin1673.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/350813/ft1_filtered_4FGL_J0045.7+1217_daily_bin1673.fits scfile=/scratch/kocevski/350813/ft2_4FGL_J0045.7+1217_daily_bin1673.fits outfile=/scratch/kocevski/350813/cmap_HighResolution_672969601_673228801_4FGL_J0045.7+1217_daily_bin1673.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/350813/ft1_filtered_4FGL_J0045.7+1217_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/350813/ft2_4FGL_J0045.7+1217_daily_bin1673.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/350813/Model_4FGL_J0045.7+1217_daily_bin1673.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/350813/ft1_filtered_4FGL_J0045.7+1217_daily_bin1673.fits.....................!
real 56.93
user 54.27
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/350813/ft1_filtered_4FGL_J0045.7+1217_daily_bin1673.fits', '/scratch/kocevski/350813/ft2_4FGL_J0045.7+1217_daily_bin1673.fits', expMap='/scratch/kocevski/350813/expmap_672969601_673228801_4FGL_J0045.7+1217_daily_bin1673.fits', expCube='/scratch/kocevski/350813/ltcube_672969601_673228801_4FGL_J0045.7+1217_daily_bin1673.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/350813/Model_4FGL_J0045.7+1217_daily_bin1673.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/350813/ft1_filtered_4FGL_J0045.7+1217_daily_bin1673.fits
Spacecraft file(s): /scratch/kocevski/350813/ft2_4FGL_J0045.7+1217_daily_bin1673.fits
Exposure map: /scratch/kocevski/350813/expmap_672969601_673228801_4FGL_J0045.7+1217_daily_bin1673.fits
Exposure cube: /scratch/kocevski/350813/ltcube_672969601_673228801_4FGL_J0045.7+1217_daily_bin1673.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/350813/Model_4FGL_J0045.7+1217_daily_bin1673.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) = 4322.82510589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.8797       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20797E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.847       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.151       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3505       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1719.2       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20898E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2098       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .84746       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=   4322.788     FROM MIGRAD    STATUS=CONVERGED    361 CALLS     1713 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2086       -.40415E-07** at limit **
   2  Prefactor     .10000E-03    5.4534        .93992E-07** at limit **
   3  norm          9.8832        6.0085       -.45923E-07   -.75493E-04
   4  Prefactor     .10000E-03    3.4408        .27918E-07** at limit **
   5  Prefactor     .10000E-03    2.5171        .32398E-06** at limit **
   6  norm          10.847        9.5753        .14139E-06    .12860E-04
   7  Prefactor     .10000E-03    15.540        .16983E-05** at limit **
   8  Prefactor     .10000E-03    11.547       -.10882E-05** at limit **
   9  norm          .10000E-03    9.1099        .46801E-06** at limit **
  10  Prefactor     13.156        10.269        .72768E-06   -.11707E-04
  11  Prefactor     7.3503        11.759       -.93007E-06   -.72073E-03
  12  Prefactor     .10000E-03    2.3004       -.29226E-06** at limit **
  13  norm          .10000E-03    42.116        .26612E-04** at limit **
  14  Prefactor     .10000E-03    35.835       -.19611E-04** at limit **
  15  Prefactor     1719.3        340.78        .32299E-04   -.14421E-04
  16  Prefactor     .10000E-03    74.617       -.11627E-04** at limit **
  17  Normalizat    1.2091        .27658       -.48785E-05    .15236E-04
  18  Prefactor     .84768        .18417        .71258E-06   -.20834E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.88321
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.1555
  Prefactor  = 7.35026
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1719.33
  Prefactor  = 0.0001
  Normalizat = 1.20905
  Prefactor  = 0.847678
 **********
 **   18 **HESSE 
 **********

 FCN=   4322.788     FROM HESSE     STATUS=OK           238 CALLS     1951 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2201        .16000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.4839        .14994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.8832        6.0145        .12068E-03   -1.5079    
   4  Prefactor     .10000E-03    3.4426        .11911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6069        .20195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.847        9.5774        .12165E-03   -1.5049    
   7  Prefactor     .10000E-03    15.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.1612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.156        10.271        .11045E-03   -1.4982    
  11  Prefactor     7.3503        11.821        .73968E-03   -1.5166    
  12  Prefactor     .10000E-03    2.3243        .97392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    42.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    35.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1719.3        339.99        .53007E-04   -.71568    
  16  Prefactor     .10000E-03    75.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2091        .32475        .31193E-03   -.86323    
  18  Prefactor     .84768        .21721        .24827E-03   -.97994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49756e-09
Minuit parameter uncertainties:
  1  9.81375e-06
  2  1.33476e-05
  3  6.01488
  4  2.03658e-06
  5  7.3003e-05
  6  9.57878
  7  2.41447e-05
  8  6.74119e-06
  9  2.0583e-05
  10  10.2725
  11  11.8247
  12  4.53511e-05
  13  0.000418545
  14  1.00473e-05
  15  340.453
  16  0.000267532
  17  0.325298
  18  0.217428
Done.

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

Extracting fit parameters...

4FGL J0045.7+1217
   Spectrum: PowerLaw
185    Prefactor:  1.316e+01  1.027e+01  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.477e-01  2.174e-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.209e+00  3.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.14
Ra Dec: 11.431 12.292
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 5.99e-08 +/- 4.68e-08
Energy Flux (Fixed Index): 4.33e-05 +/- 3.38e-05

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) = 4322.62722333
delta logL = 0.161013467086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4322.5830807
delta logL = 0.205156097004

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8766       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2196       1.0000          .0000       10.000    
     3 'Normalizat'    1.2355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85587       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=   4322.583     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      220 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8704        13.279       -.89828E-05    .43098E-03
   2  Index         1.2191        .98629       -.91956E-04   -.15534E-04
   3  Normalizat    1.2354        .26839        .12373E-05    .87267E-03
   4  Prefactor     .85589        .18405        .14829E-05    .93286E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.87036
  Index      = 1.21907
  Normalizat = 1.23543
  Prefactor  = 0.855886
 **********
 **   18 **HESSE 
 **********

 FCN=   4322.583     FROM HESSE     STATUS=OK            29 CALLS      249 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8704        12.524        .14287E-03   -1.5147    
   2  Index         1.2191        .93493        .10960E-01   -.85746    
   3  Normalizat    1.2354        .31688        .30904E-03   -.85515    
   4  Prefactor     .85589        .21734        .24740E-03   -.97700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88485e-09
Minuit parameter uncertainties:
  1  12.528
  2  0.948146
  3  0.317378
  4  0.217563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/350813': 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) = 4322.58308055
delta logL = 0.20515624298

Extracting fit parameters...

4FGL J0045.7+1217
   Spectrum: PowerLaw
185    Prefactor:  7.870e+00  1.253e+01  1.000e-04  1.000e+04 ( 1.000e-13)
186        Index:  1.219e+00  9.481e-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:  8.559e-01  2.176e-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.235e+00  3.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.44
Ra Dec: 11.431 12.292
Photon Index (Free Index): 1.22 +/- 0.95
Photon Flux (Free Index): 1.20e-08 +/- 2.34e-08
Energy Flux (Free Index): 9.43e-05 +/- 1.46e-04

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/350813/cmap_HighResolution_672969601_673228801_4FGL_J0045.7+1217_daily_bin1673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.99e-08', energy_flux2='9.43e-05', photon_flux_error='4.68e-08', dlogl='2.05e-01', energy_flux='4.33e-05', photon_flux2='1.20e-08', job_status='DONE', time_completed='2022-05-03 00:14:53.558220', photon_index_error2='0.95', photon_index2='1.22', ts='10.14', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.46e-04', EG='1.21', time_epoch_completed='1651562093.56', return_code='0', job_id='350813', GAL2='0.86', EG2='1.24', return_code2='0', energy_flux_error='3.38e-05', photon_flux_error2='2.34e-08', ts2='10.44', photon_index='1.98' WHERE bin_id='1673' AND source_name='4FGL J0045.7+1217' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May  3 00:14:53 PDT 2022

24', return_code2='0', energy_flux_error='3.38e-05', photon_flux_error2='2.34e-08', ts2='10.44', photon_index='1.98' WHERE bin_id='1673' AND source_name='4FGL J0045.7+1217' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May  3 00:14:37 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 350814: <4FGL_J0045.7+1217_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0045.7+1217_daily_bin1673> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue May  3 00:05:22 2022
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:06:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:06:15 2022
Terminated at Tue May  3 00:14:38 2022
Results reported at Tue May  3 00:14:38 2022

Your job looked like:

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

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0182>
Subject: Job 350813: <4FGL_J0045.7+1217_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0045.7+1217_daily_bin1673> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue May  3 00:05:22 2022
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:06:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:06:14 2022
Terminated at Tue May  3 00:14:54 2022
Results reported at Tue May  3 00:14:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0045.7+1217_daily_bin1673 11.4309 12.292 672969601 673228801 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 :                                   458.51 sec.
    Max Memory :                                 1144 MB
    Average Memory :                             331.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   519 sec.
    Turnaround time :                            572 sec.

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

