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


Performing analysis on: 4FGL_J1754.2+3212_daily_bin1693
RA = 268.553, Dec = 32.2007
tmin = 678153601, tmax = 678412801
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='541672', job_status='RUN', time_executed='2022-07-02 02:41:00.181599', time_epoch_executed='1656754860.18' WHERE source_name='4FGL J1754.2+3212' and cadence='daily' and bin_id='1693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/541672

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/541672/ft1_4FGL_J1754.2+3212_daily_bin1693.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/541672/ft2_4FGL_J1754.2+3212_daily_bin1693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/541672/ft1_4FGL_J1754.2+3212_daily_bin1693.fits outfile=/scratch/kocevski/541672/ft1_filteredMKT_4FGL_J1754.2+3212_daily_bin1693.fits ra=268.553 dec=32.2007 rad=12.0 tmin=678153601.0 tmax=678412801.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.22
user 3.95
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/541672/ft2_4FGL_J1754.2+3212_daily_bin1693.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/541672/ft2_4FGL_J1754.2+3212_daily_bin1693.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/541672/ft1_filteredMKT_4FGL_J1754.2+3212_daily_bin1693.fits evtable="EVENTS" outfile="/scratch/kocevski/541672/ft1_filtered_4FGL_J1754.2+3212_daily_bin1693.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.50
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 881

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/541672/ft1_filtered_4FGL_J1754.2+3212_daily_bin1693.fits" evtable="EVENTS" scfile=/scratch/kocevski/541672/ft2_4FGL_J1754.2+3212_daily_bin1693.fits sctable="SC_DATA" outfile=/scratch/kocevski/541672/ltcube_678153601_678412801_4FGL_J1754.2+3212_daily_bin1693.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/541672/ft2_4FGL_J1754.2+3212_daily_bin1693.fits
.....................!
real 13.72
user 13.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/541672/ft1_filtered_4FGL_J1754.2+3212_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/541672/ft2_4FGL_J1754.2+3212_daily_bin1693.fits sctable="SC_DATA" expcube=/scratch/kocevski/541672/ltcube_678153601_678412801_4FGL_J1754.2+3212_daily_bin1693.fits outfile=/scratch/kocevski/541672/expmap_678153601_678412801_4FGL_J1754.2+3212_daily_bin1693.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/541672/ltcube_678153601_678412801_4FGL_J1754.2+3212_daily_bin1693.fits
.....................!
real 190.91
user 185.71
sys 4.79

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 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J1754.2+3212 @ 268.553 32.2007

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/541672/ft1_filtered_4FGL_J1754.2+3212_daily_bin1693.fits scfile=/scratch/kocevski/541672/ft2_4FGL_J1754.2+3212_daily_bin1693.fits outfile=/scratch/kocevski/541672/cmap_678153601_678412801_4FGL_J1754.2+3212_daily_bin1693.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=268.553 yref=32.2007 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.59
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/541672/ft1_filtered_4FGL_J1754.2+3212_daily_bin1693.fits scfile=/scratch/kocevski/541672/ft2_4FGL_J1754.2+3212_daily_bin1693.fits outfile=/scratch/kocevski/541672/cmap_HighResolution_678153601_678412801_4FGL_J1754.2+3212_daily_bin1693.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=268.553 yref=32.2007 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/541672/ft1_filtered_4FGL_J1754.2+3212_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/541672/ft2_4FGL_J1754.2+3212_daily_bin1693.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/541672/Model_4FGL_J1754.2+3212_daily_bin1693.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/541672/ft1_filtered_4FGL_J1754.2+3212_daily_bin1693.fits.....................!
real 79.21
user 77.81
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/541672/ft1_filtered_4FGL_J1754.2+3212_daily_bin1693.fits', '/scratch/kocevski/541672/ft2_4FGL_J1754.2+3212_daily_bin1693.fits', expMap='/scratch/kocevski/541672/expmap_678153601_678412801_4FGL_J1754.2+3212_daily_bin1693.fits', expCube='/scratch/kocevski/541672/ltcube_678153601_678412801_4FGL_J1754.2+3212_daily_bin1693.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/541672/Model_4FGL_J1754.2+3212_daily_bin1693.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1754.2+3212'

4FGL J1754.2+3212
   Spectrum: LogParabola
348         norm:  1.314e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
349        alpha:  1.748e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
350         beta:  1.054e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
351           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/541672/ft1_filtered_4FGL_J1754.2+3212_daily_bin1693.fits
Spacecraft file(s): /scratch/kocevski/541672/ft2_4FGL_J1754.2+3212_daily_bin1693.fits
Exposure map: /scratch/kocevski/541672/expmap_678153601_678412801_4FGL_J1754.2+3212_daily_bin1693.fits
Exposure cube: /scratch/kocevski/541672/ltcube_678153601_678412801_4FGL_J1754.2+3212_daily_bin1693.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/541672/Model_4FGL_J1754.2+3212_daily_bin1693.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) = 9171.87840497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3439       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.252       1.0000         .10000E-03   10000.    
     3 'norm      '    24.072       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0317       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1661       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.9134       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4939       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5336       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.090       1.0000         .10000E-03   10000.    
    19 'norm      '    15.757       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4288       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5137       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .70755       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9171.864     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2880 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3446        6.0240        .88686E-06   -.15737E-04
   2  Prefactor     19.212        34.415        .51063E-05    .10579E-08
   3  norm          24.072        7.1874       -.24024E-06   -.10977E-03
   4  Prefactor     .10000E-03    68.346        .27836E-05** at limit **
   5  Prefactor     .10000E-03    29.523        .10982E-05** at limit **
   6  Prefactor     4.0367        14.065       -.27991E-07   -.14243E-04
   7  Prefactor     .10000E-03    48.515       -.42640E-05** at limit **
   8  Prefactor     4.1661        6.2839        .73161E-07   -.60010E-05
   9  Prefactor     .10000E-03    12.917        .45699E-06** at limit **
  10  Prefactor     .10000E-03    20.358       -.13208E-05** at limit **
  11  Prefactor     .10000E-03    4.5041        .13381E-07** at limit **
  12  norm          .10000E-03    .68111        .15956E-08** at limit **
  13  norm          .10000E-03    26.697        .14620E-05** at limit **
  14  norm          6.9137        8.0151        .30070E-07   -.41614E-05
  15  Prefactor     5.4947        5.3108        .50359E-07   -.12265E-04
  16  norm          .10000E-03    3.0508        .92012E-08** at limit **
  17  Prefactor     1.5336        3.7103        .29462E-06    .44032E-05
  18  Prefactor     28.096        20.330       -.13358E-06   -.11717E-05
  19  norm          15.756        22.854       -.14285E-06   -.82865E-06
  20  Prefactor     3.4289        5.3231        .25746E-05   -.25978E-05
  21  norm          .10000E-03    11.771       -.21591E-06** at limit **
  22  norm          .10000E-03    1.1559        .48297E-07** at limit **
  23  norm          .10000E-03    .51945        .41380E-07** at limit **
  24  Normalizat    1.5136        .19504        .18179E-06   -.18255E-04
  25  Prefactor     .70761        .84686E-01   -.53073E-06    .43663E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.34457
  Prefactor  = 19.2116
  norm       = 24.0722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.03673
  Prefactor  = 0.0001
  Prefactor  = 4.16614
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.91375
  Prefactor  = 5.49465
  norm       = 0.0001
  Prefactor  = 1.53357
  Prefactor  = 28.0964
  norm       = 15.7557
  Prefactor  = 3.42888
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.51358
  Prefactor  = 0.70761
 **********
 **   18 **HESSE 
 **********

 FCN=   9171.864     FROM HESSE     STATUS=OK           427 CALLS     3307 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3446        5.9649        .37786E-03   -1.5476    
   2  Prefactor     19.212        34.438        .91282E-04   -1.4831    
   3  norm          24.072        7.1909        .81643E-04   -1.4726    
   4  Prefactor     .10000E-03    68.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    29.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.0367        14.104        .20083E-03   -1.5306    
   7  Prefactor     .10000E-03    48.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.1661        6.2750        .19746E-03   -1.5300    
   9  Prefactor     .10000E-03    12.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.5395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .68842        .77146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    26.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.9137        8.0190        .15258E-03   -1.5182    
  15  Prefactor     5.4947        5.3059        .17142E-03   -1.5239    
  16  norm          .10000E-03    3.0553        .16335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5336        3.6467        .26729E-03   -1.5460    
  18  Prefactor     28.096        20.187        .75590E-04   -1.4647    
  19  norm          15.756        22.896        .10090E-03   -1.4914    
  20  Prefactor     3.4289        5.3228        .10922E-02   -1.5338    
  21  norm          .10000E-03    11.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.1881        .20103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .52707        .67386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5136        .22955        .29500E-03   -.77398    
  25  Prefactor     .70761        .99140E-01    .18300E-03   -1.0323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00347e-10
Minuit parameter uncertainties:
  1  5.66474
  2  34.4736
  3  7.19111
  4  2.35833e-05
  5  1.35968e-06
  6  14.1156
  7  1.79485e-05
  8  6.27598
  9  3.70184e-06
  10  8.83338e-07
  11  2.65934e-06
  12  1.93458e-07
  13  2.73665e-06
  14  8.02024
  15  5.30635
  16  4.88779e-07
  17  3.64727
  18  20.1924
  19  22.9087
  20  5.32352
  21  3.2301e-07
  22  1.29151e-07
  23  9.39345e-08
  24  0.229713
  25  0.0991645
Done.

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

Extracting fit parameters...

4FGL J1754.2+3212
   Spectrum: LogParabola
348         norm:  1.000e-04  1.935e-07  1.000e-04  1.000e+04 ( 1.000e-12)
349        alpha:  1.748e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
350         beta:  1.054e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
351           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  7.076e-01  9.916e-02  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  1.514e+00  2.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 268.553 32.201
Photon Flux Upper Limit: 3.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/541672/likelihoodResults_678153601_678412801_4FGL_J1754.2+3212_daily_bin1693.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) = 9171.87130929
delta logL = -0.00681167812581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9171.86449688
delta logL = 7.3875162343e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9171.288     FROM MIGRAD    STATUS=CONVERGED    214 CALLS      367 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20476E-01    1.0274        .14935E-02    .89861E-02
   2  alpha         4.5299        4.6490        .17468       -.59350E-04
   3  Normalizat    1.4517        .14820        .29500E-03    .21273E-04
   4  Prefactor     .72224        .56147E-01    .18300E-03    .95669E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0204764
  alpha      = 4.5299
  Normalizat = 1.45166
  Prefactor  = 0.722245
 **********
 **   18 **HESSE 
 **********

 FCN=   9171.288     FROM HESSE     STATUS=OK            27 CALLS      394 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20476E-01    .86251E-01    .13564E-04   -1.5679    
   2  alpha         4.5299        2.5205        .28368E-02    2.1941    
   3  Normalizat    1.4517        .22560        .11800E-04   -.79146    
   4  Prefactor     .72224        .98340E-01    .73202E-05   -1.0266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82502e-12
Minuit parameter uncertainties:
  1  0.0838451
  2  1.77724
  3  0.22576
  4  0.0983639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/541672': 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) = 9171.28802257
delta logL = 0.576475044907

Extracting fit parameters...

4FGL J1754.2+3212
   Spectrum: LogParabola
348         norm:  2.048e-02  8.385e-02  1.000e-04  1.000e+04 ( 1.000e-12)
349        alpha:  4.530e+00  1.777e+00  0.000e+00  5.000e+00 ( 1.000e+00)
350         beta:  1.054e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
351           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  7.222e-01  9.836e-02  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  1.452e+00  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 268.553 32.201
Photon Index (Free Index): 4.53 +/- 1.78
Photon Flux (Free Index): 5.10e-08 +/- 4.14e-07
Energy Flux (Free Index): 7.47e-06 +/- 5.89e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/541672/cmap_HighResolution_678153601_678412801_4FGL_J1754.2+3212_daily_bin1693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-05', comment='SUCCESS', energy_flux2='7.47e-06', dlogl='5.76e-01', photon_flux2='5.10e-08', job_status='DONE', time_completed='2022-07-02 02:58:26.401669', photon_index_error2='1.78', photon_index2='4.53', ts='-0.00', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='3.25e-08', energy_flux_error2='5.89e-05', EG='1.51', time_epoch_completed='1656755906.4', return_code='0', job_id='541672', GAL2='0.72', EG2='1.45', return_code2='0', photon_flux_error2='4.14e-07', ts2='1.21', photon_index='1.75' WHERE bin_id='1693' AND source_name='4FGL J1754.2+3212' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul  2 02:58:26 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 541671: <4FGL_J1754.2+3212_daily_bin1693> in cluster <slac> Done

Job <4FGL_J1754.2+3212_daily_bin1693> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul  2 00:07:02 2022
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  2 02:39:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  2 02:39:36 2022
Terminated at Sat Jul  2 02:54:40 2022
Results reported at Sat Jul  2 02:54:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1754.2+3212_daily_bin1693 268.553 32.2007 678153601 678412801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1754.2+3212 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   864.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            10058 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 541672: <4FGL_J1754.2+3212_daily_bin1693> in cluster <slac> Done

Job <4FGL_J1754.2+3212_daily_bin1693> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Jul  2 00:07:02 2022
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  2 02:39:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  2 02:39:36 2022
Terminated at Sat Jul  2 02:58:27 2022
Results reported at Sat Jul  2 02:58:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1754.2+3212_daily_bin1693 268.553 32.2007 678153601 678412801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1754.2+3212 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1047.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1130 sec.
    Turnaround time :                            10285 sec.

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

