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


Performing analysis on: 4FGL_J0045.7+1217_daily_bin1725
RA = 11.4309, Dec = 12.292
tmin = 686448001, tmax = 686707201
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='875270', job_status='RUN', time_executed='2022-10-06 00:08:29.605282', time_epoch_executed='1665040109.61' WHERE source_name='4FGL J0045.7+1217' and cadence='daily' and bin_id='1725'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875270

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875270/ft1_4FGL_J0045.7+1217_daily_bin1725.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875270/ft2_4FGL_J0045.7+1217_daily_bin1725.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875270/ft1_4FGL_J0045.7+1217_daily_bin1725.fits outfile=/scratch/kocevski/875270/ft1_filteredMKT_4FGL_J0045.7+1217_daily_bin1725.fits ra=11.4309 dec=12.292 rad=12.0 tmin=686448001.0 tmax=686707201.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.63
user 4.35
sys 0.26

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

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

Number of photons that the gtmktime cut: 438

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875270/ft1_filtered_4FGL_J0045.7+1217_daily_bin1725.fits" evtable="EVENTS" scfile=/scratch/kocevski/875270/ft2_4FGL_J0045.7+1217_daily_bin1725.fits sctable="SC_DATA" outfile=/scratch/kocevski/875270/ltcube_686448001_686707201_4FGL_J0045.7+1217_daily_bin1725.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/875270/ft2_4FGL_J0045.7+1217_daily_bin1725.fits
.....................!
real 16.63
user 16.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875270/ft1_filtered_4FGL_J0045.7+1217_daily_bin1725.fits evtable="EVENTS" scfile=/scratch/kocevski/875270/ft2_4FGL_J0045.7+1217_daily_bin1725.fits sctable="SC_DATA" expcube=/scratch/kocevski/875270/ltcube_686448001_686707201_4FGL_J0045.7+1217_daily_bin1725.fits outfile=/scratch/kocevski/875270/expmap_686448001_686707201_4FGL_J0045.7+1217_daily_bin1725.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/875270/ltcube_686448001_686707201_4FGL_J0045.7+1217_daily_bin1725.fits
.....................!
real 191.09
user 184.94
sys 5.69

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/875270/ft1_filtered_4FGL_J0045.7+1217_daily_bin1725.fits scfile=/scratch/kocevski/875270/ft2_4FGL_J0045.7+1217_daily_bin1725.fits outfile=/scratch/kocevski/875270/cmap_686448001_686707201_4FGL_J0045.7+1217_daily_bin1725.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875270/ft1_filtered_4FGL_J0045.7+1217_daily_bin1725.fits scfile=/scratch/kocevski/875270/ft2_4FGL_J0045.7+1217_daily_bin1725.fits outfile=/scratch/kocevski/875270/cmap_HighResolution_686448001_686707201_4FGL_J0045.7+1217_daily_bin1725.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/875270/ft1_filtered_4FGL_J0045.7+1217_daily_bin1725.fits evtable="EVENTS" scfile=/scratch/kocevski/875270/ft2_4FGL_J0045.7+1217_daily_bin1725.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/875270/Model_4FGL_J0045.7+1217_daily_bin1725.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/875270/ft1_filtered_4FGL_J0045.7+1217_daily_bin1725.fits.....................!
real 54.35
user 52.97
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3270       1.0000          .0000       .10000E+07
     2 'Prefactor '    .67690E-06   1.0000          .0000       .10000E+07
     3 'norm      '    .12768E-08   1.0000          .0000       .10000E+07
     4 'Prefactor '    .11657E-08   1.0000          .0000       .10000E+07
     5 'Prefactor '    .31308E-07   1.0000          .0000       .10000E+07
     6 'norm      '    .88818E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    61.922       1.0000          .0000       .10000E+07
     8 'Prefactor '    .33307E-09   1.0000          .0000       .10000E+07
     9 'norm      '    7.4806       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.1074       1.0000          .0000       .10000E+07
    11 'Prefactor '    5.9698       1.0000          .0000       .10000E+07
    12 'Prefactor '    .75037E-05   1.0000          .0000       .10000E+07
    13 'norm      '    57.904       1.0000          .0000       .10000E+07
    14 'Prefactor '    32.597       1.0000          .0000       .10000E+07
    15 'Prefactor '    610.39       1.0000          .0000       .10000E+07
    16 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.6834       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .58147       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=   4620.325     FROM MIGRAD    STATUS=CONVERGED    110 CALLS     1618 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3236        3.9180        .11488E-05    .46618E-01
   2  Prefactor     .11102E-09    12.921        .14041E-05** at limit **
   3  norm          .20484E-07    10.891       -.42211E-05** at limit **
   4  Prefactor     .83267E-09    6.7467       -.16110E-06** at limit **
   5  Prefactor     .11102E-08    2.3132        .74462E-07** at limit **
   6  norm          .11102E-09    8.2719        .37037E-05** at limit **
   7  Prefactor     61.936        23.918        .14923E-05    .91499E-01
   8  Prefactor     .42744E-08    5.8943        .12136E-05** at limit **
   9  norm          7.4806        7.2323       -.11234E-07   -.13309E-03
  10  Prefactor     5.1078        5.9271        .13388E-06    .12147E-02
  11  Prefactor     5.9696        7.3869       -.97506E-07    .37004E-04
  12  Prefactor     .75925E-04    71.245       -.10231E-04** at limit **
  13  norm          57.893        10.757       -.45386E-06   -.10250    
  14  Prefactor     32.599        10.848       -.11065E-05    .39084E-02
  15  Prefactor     610.39        1.1750       -.14906E-07    .28567E-02
  16  Prefactor     .43854E-08    4.8928       -.31806E-06** at limit **
  17  Normalizat    1.6834        .27930       -.55794E-07   -.78777E-04
  18  Prefactor     .58137        .19274        .46975E-05   -.52021E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.32359
  Prefactor  = 1.11022e-10
  norm       = 2.04836e-08
  Prefactor  = 8.32667e-10
  Prefactor  = 1.11022e-09
  norm       = 1.11022e-10
  Prefactor  = 61.9362
  Prefactor  = 4.27436e-09
  norm       = 7.48057
  Prefactor  = 5.10785
  Prefactor  = 5.96964
  Prefactor  = 7.59247e-05
  norm       = 57.8931
  Prefactor  = 32.5987
  Prefactor  = 610.393
  Prefactor  = 4.38538e-09
  Normalizat = 1.68345
  Prefactor  = 0.581372
 **********
 **   18 **HESSE 
 **********

 FCN=   4620.325     FROM HESSE     STATUS=OK           282 CALLS     1900 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3236        11.043        .34717E-03   -1.5650    
   2  Prefactor     .11102E-09    12.868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .20484E-07    11.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .83267E-09    7.0448        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11102E-08    2.3090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .11102E-09    8.4371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     61.936        37.845        .12709E-03   -1.5551    
   8  Prefactor     .42744E-08    5.9701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.4806        7.2318        .36645E-03   -1.5653    
  10  Prefactor     5.1078        5.9340        .44464E-03   -1.5663    
  11  Prefactor     5.9696        7.3898        .41073E-03   -1.5659    
  12  Prefactor     .75925E-04    2.5432        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          57.893        30.184        .13142E-03   -1.5556    
  14  Prefactor     32.599        49.685        .17518E-03   -1.5594    
  15  Prefactor     610.39        194.05        .40488E-04   -1.5214    
  16  Prefactor     .43854E-08    4.9240        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.6834        .24710        .57797E-01   -.72746    
  18  Prefactor     .58137        .16762        .63822E-01   -1.0838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99807e-07
Minuit parameter uncertainties:
  1  11.0426
  2  8.11132e-05
  3  0.000960208
  4  0.000154159
  5  0.000101391
  6  6.63383e-05
  7  37.8447
  8  0.000319115
  9  7.23178
  10  5.93404
  11  7.38979
  12  0.0277915
  13  30.1843
  14  49.6855
  15  194.056
  16  0.000293493
  17  0.247277
  18  0.167768
Done.

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

Extracting fit parameters...

4FGL J0045.7+1217
   Spectrum: PowerLaw
185    Prefactor:  5.108e+00  5.934e+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

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  5.814e-01  1.678e-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.683e+00  2.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.43
Ra Dec: 11.431 12.292
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 2.33e-08 +/- 2.70e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 1.95e-05

TS (Fixed Index): 1.43
Ra Dec: 11.431 12.292
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/875270/likelihoodResults_686448001_686707201_4FGL_J0045.7+1217_daily_bin1725.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) = 4620.25891859
delta logL = 0.0659874828443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4620.2572428
delta logL = 0.0676632652512

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4927       1.0000          .0000       .10000E+07
     2 'Index     '    2.3236       1.0000          .0000       10.000    
     3 'Normalizat'    1.6725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58451       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=   4620.257     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      253 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4905        134.49        .54077E-03    .17049E-02
   2  Index         2.3250        6.0373        .11978        .95277E-04
   3  Normalizat    1.6724        .12136        .57949E-01   -.59952E-05
   4  Prefactor     .58479        .65795E-01    .63640E-01    .13118E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.49054
  Index      = 2.32504
  Normalizat = 1.67241
  Prefactor  = 0.58479
 **********
 **   18 **HESSE 
 **********

 FCN=   4620.257     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4905        7.3155        .13304E-04   -1.5671    
   2  Index         2.3250        1.1448        .75606E-02   -.56450    
   3  Normalizat    1.6724        .28158        .25623E-03   -.73042    
   4  Prefactor     .58479        .19306        .28159E-03   -1.0823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85424e-11
Minuit parameter uncertainties:
  1  7.31552
  2  1.15925
  3  0.28185
  4  0.193281
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875270': 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) = 4620.25723803
delta logL = 0.0676680358474

Extracting fit parameters...

4FGL J0045.7+1217
   Spectrum: PowerLaw
185    Prefactor:  3.491e+00  7.316e+00  0.000e+00  1.000e+06 ( 1.000e-13)
186        Index:  2.325e+00  1.159e+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:  5.848e-01  1.933e-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.672e+00  2.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.57
Ra Dec: 11.431 12.292
Photon Index (Free Index): 2.33 +/- 1.16
Photon Flux (Free Index): 3.39e-08 +/- 4.77e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.69e-05

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/875270/cmap_HighResolution_686448001_686707201_4FGL_J0045.7+1217_daily_bin1725.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.49e-03', comment='SUCCESS', photon_flux='2.33e-08', energy_flux2='1.23e-05', photon_flux_error='2.70e-08', dlogl='6.77e-02', energy_flux='1.68e-05', photon_flux2='3.39e-08', job_status='DONE', time_completed='2022-10-06 00:16:51.461738', photon_index_error2='1.16', photon_index2='2.33', ts='1.43', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='1.69e-05', EG='1.68', time_epoch_completed='1665040611.46', return_code='0', job_id='875270', GAL2='0.58', EG2='1.67', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='4.77e-08', ts2='1.57', photon_index='1.98' WHERE bin_id='1725' AND source_name='4FGL J0045.7+1217' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Oct  6 00:16:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 875269: <4FGL_J0045.7+1217_daily_bin1725> in cluster <slac> Done

Job <4FGL_J0045.7+1217_daily_bin1725> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Oct  6 00:05:43 2022
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct  6 00:06:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct  6 00:06:55 2022
Terminated at Thu Oct  6 00:15:49 2022
Results reported at Thu Oct  6 00:15:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0045.7+1217_daily_bin1725 11.4309 12.292 686448001 686707201 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 :                                   503.47 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             354.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   533 sec.
    Turnaround time :                            606 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 875270: <4FGL_J0045.7+1217_daily_bin1725> in cluster <slac> Done

Job <4FGL_J0045.7+1217_daily_bin1725> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Oct  6 00:05:43 2022
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct  6 00:06:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct  6 00:06:55 2022
Terminated at Thu Oct  6 00:16:51 2022
Results reported at Thu Oct  6 00:16:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0045.7+1217_daily_bin1725 11.4309 12.292 686448001 686707201 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 :                                   504.21 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             297.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   596 sec.
    Turnaround time :                            668 sec.

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

