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


Performing analysis on: 4FGL_J0045.3+2128_daily_bin1707
RA = 11.3396, Dec = 21.4668
tmin = 681782401, tmax = 682041601
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='542139', job_status='RUN', time_executed='2022-08-13 00:05:23.748389', time_epoch_executed='1660374323.75' WHERE source_name='4FGL J0045.3+2128' and cadence='daily' and bin_id='1707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542139

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542139/ft1_4FGL_J0045.3+2128_daily_bin1707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542139/ft2_4FGL_J0045.3+2128_daily_bin1707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542139/ft1_4FGL_J0045.3+2128_daily_bin1707.fits outfile=/scratch/kocevski/542139/ft1_filteredMKT_4FGL_J0045.3+2128_daily_bin1707.fits ra=11.3396 dec=21.4668 rad=12.0 tmin=681782401.0 tmax=682041601.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 6.23
user 5.18
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/542139/ft2_4FGL_J0045.3+2128_daily_bin1707.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/542139/ft1_filteredMKT_4FGL_J0045.3+2128_daily_bin1707.fits evtable="EVENTS" outfile="/scratch/kocevski/542139/ft1_filtered_4FGL_J0045.3+2128_daily_bin1707.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.69
user 0.33
sys 0.19

Number of photons that the gtmktime cut: 589

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/542139/ft1_filtered_4FGL_J0045.3+2128_daily_bin1707.fits" evtable="EVENTS" scfile=/scratch/kocevski/542139/ft2_4FGL_J0045.3+2128_daily_bin1707.fits sctable="SC_DATA" outfile=/scratch/kocevski/542139/ltcube_681782401_682041601_4FGL_J0045.3+2128_daily_bin1707.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/542139/ft2_4FGL_J0045.3+2128_daily_bin1707.fits
.....................!
real 15.29
user 14.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542139/ft1_filtered_4FGL_J0045.3+2128_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/542139/ft2_4FGL_J0045.3+2128_daily_bin1707.fits sctable="SC_DATA" expcube=/scratch/kocevski/542139/ltcube_681782401_682041601_4FGL_J0045.3+2128_daily_bin1707.fits outfile=/scratch/kocevski/542139/expmap_681782401_682041601_4FGL_J0045.3+2128_daily_bin1707.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/542139/ltcube_681782401_682041601_4FGL_J0045.3+2128_daily_bin1707.fits
.....................!
real 194.19
user 188.17
sys 4.46

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/542139/ft1_filtered_4FGL_J0045.3+2128_daily_bin1707.fits scfile=/scratch/kocevski/542139/ft2_4FGL_J0045.3+2128_daily_bin1707.fits outfile=/scratch/kocevski/542139/cmap_681782401_682041601_4FGL_J0045.3+2128_daily_bin1707.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 1.83
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542139/ft1_filtered_4FGL_J0045.3+2128_daily_bin1707.fits scfile=/scratch/kocevski/542139/ft2_4FGL_J0045.3+2128_daily_bin1707.fits outfile=/scratch/kocevski/542139/cmap_HighResolution_681782401_682041601_4FGL_J0045.3+2128_daily_bin1707.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 2.66
user 0.39
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/542139/ft1_filtered_4FGL_J0045.3+2128_daily_bin1707.fits', '/scratch/kocevski/542139/ft2_4FGL_J0045.3+2128_daily_bin1707.fits', expMap='/scratch/kocevski/542139/expmap_681782401_682041601_4FGL_J0045.3+2128_daily_bin1707.fits', expCube='/scratch/kocevski/542139/ltcube_681782401_682041601_4FGL_J0045.3+2128_daily_bin1707.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/542139/Model_4FGL_J0045.3+2128_daily_bin1707.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/542139/ft1_filtered_4FGL_J0045.3+2128_daily_bin1707.fits
Spacecraft file(s): /scratch/kocevski/542139/ft2_4FGL_J0045.3+2128_daily_bin1707.fits
Exposure map: /scratch/kocevski/542139/expmap_681782401_682041601_4FGL_J0045.3+2128_daily_bin1707.fits
Exposure cube: /scratch/kocevski/542139/ltcube_681782401_682041601_4FGL_J0045.3+2128_daily_bin1707.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/542139/Model_4FGL_J0045.3+2128_daily_bin1707.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) = 6468.41703984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4374       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16232E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8843       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7140       1.0000         .10000E-03   10000.    
     6 'norm      '    .14076E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.008       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.2785       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2607       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.091       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4331       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10931E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .62312       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1770       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6468.311     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     2131 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4388        2.8061        .13840E-03   -.55136E-03
   2  Prefactor     .10000E-03    12.864        .18142E-02** at limit **
   3  Prefactor     .10000E-03    91.503        .37937E-02** at limit **
   4  Prefactor     4.8862        52.268        .18200E-03   -.11806E-04
   5  Prefactor     3.7143        3.3852        .13427E-03   -.36409E-03
   6  norm          .10000E-03    25.346        .34937E-02** at limit **
   7  Prefactor     15.007        18.808        .10339E-03   -.51792E-04
   8  Prefactor     .10000E-03    6.4868        .18142E-02** at limit **
   9  norm          4.2780        6.0925        .19478E-03   -.19086E-04
  10  Prefactor     .10000E-03    5.5038        .18142E-02** at limit **
  11  Prefactor     1.2625        26.122        .19861E-02   -.94464E-04
  12  Prefactor     .10000E-03    23.555        .18142E-02** at limit **
  13  Prefactor     11.094        27.248        .12030E-03   -.67664E-04
  14  norm          1.4332        .65269        .40340E-04   -.97088E-03
  15  Prefactor     .10000E-03    7.8915        .18142E-02** at limit **
  16  Prefactor     .10000E-03    26.340        .18142E-02** at limit **
  17  Prefactor     .10000E-03    3.8406        .30338E-03** at limit **
  18  Prefactor     .10000E-03    39.077        .37175E-02** at limit **
  19  Normalizat    .62312        .21240        .32742E-03   -.54767E-03
  20  Prefactor     1.1769        .14897        .17566E-03   -.39951E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.4388
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 4.88619
  Prefactor  = 3.71425
  norm       = 0.0001
  Prefactor  = 15.0071
  Prefactor  = 0.0001
  norm       = 4.27797
  Prefactor  = 0.0001
  Prefactor  = 1.2625
  Prefactor  = 0.0001
  Prefactor  = 11.0942
  norm       = 1.43323
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 0.623121
  Prefactor  = 1.17694
 **********
 **   18 **HESSE 
 **********

 FCN=   6468.311     FROM HESSE     STATUS=OK           273 CALLS     2404 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4388        2.8046        .55359E-05   -1.5396    
   2  Prefactor     .10000E-03    12.870        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    94.116        .15175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8862        52.276        .72802E-05   -1.5266    
   5  Prefactor     3.7143        3.3843        .53707E-05   -1.5322    
   6  norm          .10000E-03    25.701        .69875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.007        18.806        .41355E-05   -1.4933    
   8  Prefactor     .10000E-03    6.4874        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.2780        6.0804        .77911E-05   -1.5294    
  10  Prefactor     .10000E-03    5.5071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2625        25.918        .79445E-04   -1.5483    
  12  Prefactor     .10000E-03    23.556        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.094        27.245        .48120E-05   -1.5042    
  14  norm          1.4332        .65263        .16136E-05   -1.5469    
  15  Prefactor     .10000E-03    7.8937        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.344        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.8407        .60677E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    39.612        .74350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .62312        .21223        .13097E-04   -1.0701    
  20  Prefactor     1.1769        .14903        .35133E-04   -.87044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22031e-09
Minuit parameter uncertainties:
  1  2.80477
  2  4.26998e-05
  3  0.00109448
  4  31.9997
  5  3.38446
  6  0.000179427
  7  18.8131
  8  2.06121e-05
  9  6.08125
  10  3.03383e-05
  11  11.4458
  12  0.000106341
  13  27.2751
  14  0.652632
  15  2.16743e-05
  16  7.85248e-05
  17  8.27032e-07
  18  0.000639347
  19  0.212503
  20  0.149087
Done.

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

Extracting fit parameters...

4FGL J0045.3+2128
   Spectrum: LogParabola
170         norm:  4.278e+00  6.081e+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

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.177e+00  1.491e-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:  6.231e-01  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 11.340 21.467
Photon Index (Fixed Index): 1.67 +/- 0.00
Photon Flux (Fixed Index): 7.61e-09 +/- 1.08e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.82e-05

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

Saving results to:
/scratch/kocevski/542139/likelihoodResults_681782401_682041601_4FGL_J0045.3+2128_daily_bin1707.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) = 6468.2997385
delta logL = 0.0116133004867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6468.29941734
delta logL = 0.0119344629838

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1595       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8039       1.0000          .0000       5.0000    
     3 'Normalizat'    .62194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1771       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6468.299     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      236 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1594        5.9411        .19762E-03    .34660E-03
   2  alpha         1.8041        .86661        .19131E-01    .36877E-04
   3  Normalizat    .62187        .20548        .32773E-03   -.47178E-04
   4  Prefactor     1.1771        .14853        .17565E-03   -.10083E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.15936
  alpha      = 1.80408
  Normalizat = 0.621868
  Prefactor  = 1.17712
 **********
 **   18 **HESSE 
 **********

 FCN=   6468.299     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1594        5.8634        .79050E-05   -1.5300    
   2  alpha         1.8041        .85600        .76522E-03   -.28209    
   3  Normalizat    .62187        .20557        .13109E-04   -1.0706    
   4  Prefactor     1.1771        .14862        .35129E-04   -.87038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03205e-10
Minuit parameter uncertainties:
  1  5.86419
  2  0.875255
  3  0.205826
  4  0.14867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542139': 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) = 6468.29941718
delta logL = 0.0119346206166

Extracting fit parameters...

4FGL J0045.3+2128
   Spectrum: LogParabola
170         norm:  4.159e+00  5.864e+00  1.000e-04  1.000e+04 ( 1.000e-13)
171        alpha:  1.804e+00  8.753e-01  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:  1.177e+00  1.487e-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:  6.219e-01  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 11.340 21.467
Photon Index (Free Index): 1.80 +/- 0.88
Photon Flux (Free Index): 9.12e-09 +/- 1.60e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.88e-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/542139/cmap_HighResolution_681782401_682041601_4FGL_J0045.3+2128_daily_bin1707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.15e-05', comment='SUCCESS', photon_flux='7.61e-09', energy_flux2='1.09e-05', photon_flux_error='1.08e-08', dlogl='1.19e-02', energy_flux='1.28e-05', photon_flux2='9.12e-09', job_status='DONE', time_completed='2022-08-13 00:16:14.808751', photon_index_error2='0.88', photon_index2='1.80', ts='1.02', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='4.24e-08', energy_flux_error2='1.88e-05', EG='0.62', time_epoch_completed='1660374974.81', return_code='0', job_id='542139', GAL2='1.18', EG2='0.62', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='1.60e-08', ts2='1.04', photon_index='1.67' WHERE bin_id='1707' AND source_name='4FGL J0045.3+2128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 13 00:16:14 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0063>
Subject: Job 542139: <4FGL_J0045.3+2128_daily_bin1707> in cluster <slac> Done

Job <4FGL_J0045.3+2128_daily_bin1707> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 13 00:04:35 2022
Job was executed on host(s) <bullet0063>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 13 00:04:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 13 00:04:37 2022
Terminated at Sat Aug 13 00:16:15 2022
Results reported at Sat Aug 13 00:16:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0045.3+2128_daily_bin1707 11.3396 21.4668 681782401 682041601 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 :                                   599.50 sec.
    Max Memory :                                 627 MB
    Average Memory :                             293.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   18647 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            700 sec.

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

