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


Performing analysis on: 4FGL_J0045.3+2128_daily_bin1600
RA = 11.3396, Dec = 21.4668
tmin = 654048001, tmax = 654307201
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='253294', job_status='RUN', time_executed='2021-09-26 00:06:00.247732', time_epoch_executed='1632639960.25' WHERE source_name='4FGL J0045.3+2128' and cadence='daily' and bin_id='1600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253294

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253294/ft1_4FGL_J0045.3+2128_daily_bin1600.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253294/ft2_4FGL_J0045.3+2128_daily_bin1600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253294/ft1_4FGL_J0045.3+2128_daily_bin1600.fits outfile=/scratch/kocevski/253294/ft1_filteredMKT_4FGL_J0045.3+2128_daily_bin1600.fits ra=11.3396 dec=21.4668 rad=12.0 tmin=654048001.0 tmax=654307201.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.75
user 3.35
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/253294/ft2_4FGL_J0045.3+2128_daily_bin1600.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253294/ft2_4FGL_J0045.3+2128_daily_bin1600.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/253294/ft1_filteredMKT_4FGL_J0045.3+2128_daily_bin1600.fits evtable="EVENTS" outfile="/scratch/kocevski/253294/ft1_filtered_4FGL_J0045.3+2128_daily_bin1600.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 1.96
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253294/ft1_filtered_4FGL_J0045.3+2128_daily_bin1600.fits" evtable="EVENTS" scfile=/scratch/kocevski/253294/ft2_4FGL_J0045.3+2128_daily_bin1600.fits sctable="SC_DATA" outfile=/scratch/kocevski/253294/ltcube_654048001_654307201_4FGL_J0045.3+2128_daily_bin1600.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/253294/ft2_4FGL_J0045.3+2128_daily_bin1600.fits
.....................!
real 12.74
user 11.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253294/ft1_filtered_4FGL_J0045.3+2128_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/253294/ft2_4FGL_J0045.3+2128_daily_bin1600.fits sctable="SC_DATA" expcube=/scratch/kocevski/253294/ltcube_654048001_654307201_4FGL_J0045.3+2128_daily_bin1600.fits outfile=/scratch/kocevski/253294/expmap_654048001_654307201_4FGL_J0045.3+2128_daily_bin1600.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/253294/ltcube_654048001_654307201_4FGL_J0045.3+2128_daily_bin1600.fits
.....................!
real 191.51
user 186.44
sys 4.40

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.3+2128 @ 11.3396 21.4668

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/253294/ft1_filtered_4FGL_J0045.3+2128_daily_bin1600.fits scfile=/scratch/kocevski/253294/ft2_4FGL_J0045.3+2128_daily_bin1600.fits outfile=/scratch/kocevski/253294/cmap_654048001_654307201_4FGL_J0045.3+2128_daily_bin1600.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.3396 yref=21.4668 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/253294/ft1_filtered_4FGL_J0045.3+2128_daily_bin1600.fits scfile=/scratch/kocevski/253294/ft2_4FGL_J0045.3+2128_daily_bin1600.fits outfile=/scratch/kocevski/253294/cmap_HighResolution_654048001_654307201_4FGL_J0045.3+2128_daily_bin1600.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.3396 yref=21.4668 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/253294/ft1_filtered_4FGL_J0045.3+2128_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/253294/ft2_4FGL_J0045.3+2128_daily_bin1600.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/253294/Model_4FGL_J0045.3+2128_daily_bin1600.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/253294/ft1_filtered_4FGL_J0045.3+2128_daily_bin1600.fits.....................!
real 66.60
user 65.21
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/253294/ft1_filtered_4FGL_J0045.3+2128_daily_bin1600.fits', '/scratch/kocevski/253294/ft2_4FGL_J0045.3+2128_daily_bin1600.fits', expMap='/scratch/kocevski/253294/expmap_654048001_654307201_4FGL_J0045.3+2128_daily_bin1600.fits', expCube='/scratch/kocevski/253294/ltcube_654048001_654307201_4FGL_J0045.3+2128_daily_bin1600.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/253294/Model_4FGL_J0045.3+2128_daily_bin1600.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0045.3+2128'

4FGL J0045.3+2128
   Spectrum: LogParabola
170         norm:  3.310e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
171        alpha:  1.669e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
172         beta:  7.630e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
173           Eb:  2.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/253294/ft1_filtered_4FGL_J0045.3+2128_daily_bin1600.fits
Spacecraft file(s): /scratch/kocevski/253294/ft2_4FGL_J0045.3+2128_daily_bin1600.fits
Exposure map: /scratch/kocevski/253294/expmap_654048001_654307201_4FGL_J0045.3+2128_daily_bin1600.fits
Exposure cube: /scratch/kocevski/253294/ltcube_654048001_654307201_4FGL_J0045.3+2128_daily_bin1600.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/253294/Model_4FGL_J0045.3+2128_daily_bin1600.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) = 6570.59464698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3363       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .58706E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.539       1.0000         .10000E-03   10000.    
     6 'norm      '    10.814       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.541       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .37361       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7306       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3169       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15236E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98655       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97021       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6570.462     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1729 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3350        3.6728       -.48643E-07    .37593E-03
   2  Prefactor     .10000E-03    11.131       -.23295E-05** at limit **
   3  Prefactor     .10051E-03    23.285       -.96224E-05** at limit **
   4  Prefactor     .10000E-03    15.330       -.10544E-05** at limit **
   5  Prefactor     11.534        5.1279       -.22334E-06    .33659E-03
   6  norm          10.813        9.3560        .26931E-07    .31649E-04
   7  Prefactor     .10000E-03    43.190       -.88847E-05** at limit **
   8  Prefactor     10.542        10.553        .22909E-06    .66598E-04
   9  norm          .10000E-03    5.1238        .87691E-07** at limit **
  10  Prefactor     .10000E-03    7.3019       -.46081E-06** at limit **
  11  Prefactor     .10000E-03    6.6290       -.59808E-06** at limit **
  12  Prefactor     .10000E-03    13.375        .26924E-05** at limit **
  13  Prefactor     .10000E-03    12.055        .89354E-06** at limit **
  14  norm          .37372        .36082       -.26109E-07   -.58675E-03
  15  Prefactor     5.7309        12.798        .14380E-06    .98971E-06
  16  Prefactor     1.2896        116.40       -.83035E-05   -.99916E-04
  17  Prefactor     .10003E-03    5.6238       -.38339E-05** at limit **
  18  Prefactor     .10000E-03    7.3799        .32909E-06** at limit **
  19  Normalizat    .98648        .18408       -.31150E-06   -.14383E-03
  20  Prefactor     .97026        .12371       -.51700E-06   -.20891E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.335
  Prefactor  = 0.0001
  Prefactor  = 0.000100508
  Prefactor  = 0.0001
  Prefactor  = 11.5341
  norm       = 10.813
  Prefactor  = 0.000100005
  Prefactor  = 10.542
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.373717
  Prefactor  = 5.73093
  Prefactor  = 1.28955
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Normalizat = 0.98648
  Prefactor  = 0.970262
 **********
 **   18 **HESSE 
 **********

 FCN=   6570.462     FROM HESSE     STATUS=OK           293 CALLS     2022 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3350        3.6448        .11225E-03   -1.5205    
   2  Prefactor     .10000E-03    11.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10051E-03    51.980        .35281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.534        5.0961        .11408E-03   -1.5029    
   6  norm          10.813        9.3577        .12183E-03   -1.5050    
   7  Prefactor     .10000E-03    43.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.542        10.552        .12340E-03   -1.5058    
   9  norm          .10000E-03    5.1640        .17920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.5780        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.6726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .37372        .36435        .46231E-04   -1.5586    
  15  Prefactor     5.7309        12.804        .16779E-03   -1.5229    
  16  Prefactor     1.2896        124.52        .38371E-03   -1.5481    
  17  Prefactor     .10003E-03    7.1273        .25677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.4507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .98648        .21095        .28125E-03   -.93485    
  20  Prefactor     .97026        .14210        .19502E-03   -.93727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34231e-08
Minuit parameter uncertainties:
  1  3.64496
  2  8.32097e-05
  3  0.0102819
  4  7.01691e-05
  5  5.09632
  6  9.35898
  7  0.000910617
  8  10.5543
  9  1.38493e-05
  10  6.96006e-06
  11  1.20643e-05
  12  0.000210262
  13  6.72506e-05
  14  0.364352
  15  12.8098
  16  25.3969
  17  0.000856166
  18  2.60335e-05
  19  0.21113
  20  0.142155
Done.

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

Extracting fit parameters...

4FGL J0045.3+2128
   Spectrum: LogParabola
170         norm:  1.000e-04  1.385e-05  1.000e-04  1.000e+04 ( 1.000e-13)
171        alpha:  1.669e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
172         beta:  7.630e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
173           Eb:  2.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  9.703e-01  1.422e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  9.865e-01  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 11.340 21.467
Photon Flux Upper Limit: 3.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253294/likelihoodResults_654048001_654307201_4FGL_J0045.3+2128_daily_bin1600.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) = 6570.46329165
delta logL = -0.000922107057704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6570.46236902
delta logL = 5.19120476383e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7063       1.0000          .0000       5.0000    
     3 'Normalizat'    .98648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97027       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6570.462     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      198 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    5.8221        .26990E-05** at limit **
   2  alpha         1.7464        3.3571        .56838E-04   -.34527E-04
   3  Normalizat    .98648        .17680       -.68064E-08   -.41620E-03
   4  Prefactor     .97026        .12241        .13729E-07   -.62914E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100007
  alpha      = 1.74637
  Normalizat = 0.986479
  Prefactor  = 0.970261
 **********
 **   18 **HESSE 
 **********

 FCN=   6570.462     FROM HESSE     STATUS=OK            29 CALLS      227 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    6.2816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7464        3.3417        .50000       -.30622    
   3  Normalizat    .98648        .20298        .28125E-03   -.93485    
   4  Prefactor     .97026        .14055        .19502E-03   -.93727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17325e-09
Minuit parameter uncertainties:
  1  0.000428798
  2  2.47818
  3  0.203141
  4  0.140607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253294': 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) = 6570.46236844
delta logL = 1.09960910777e-06

Extracting fit parameters...

4FGL J0045.3+2128
   Spectrum: LogParabola
170         norm:  1.000e-04  4.288e-04  1.000e-04  1.000e+04 ( 1.000e-13)
171        alpha:  1.746e+00  2.478e+00  0.000e+00  5.000e+00 ( 1.000e+00)
172         beta:  7.630e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
173           Eb:  2.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  9.703e-01  1.406e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  9.865e-01  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 11.340 21.467

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/253294/cmap_HighResolution_654048001_654307201_4FGL_J0045.3+2128_daily_bin1600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-05', job_status='DONE', photon_flux_upper_limit='3.33e-08', time_completed='2021-09-26 00:15:30.636083', job_id='253294', GAL2='0.97', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632640530.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.10e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.67' WHERE bin_id='1600' AND source_name='4FGL J0045.3+2128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 00:15:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 253294: <4FGL_J0045.3+2128_daily_bin1600> in cluster <slac> Done

Job <4FGL_J0045.3+2128_daily_bin1600> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 26 00:00:26 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 00:03:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 00:03:09 2021
Terminated at Sun Sep 26 00:15:31 2021
Results reported at Sun Sep 26 00:15:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0045.3+2128_daily_bin1600 11.3396 21.4668 654048001 654307201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0045.3+2128 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   569.13 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             281.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            905 sec.

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

