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


Performing analysis on: 4FGL_J1740.5+5211_daily_bin1692
RA = 265.136, Dec = 52.1927
tmin = 677894401, tmax = 678153601
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='406200', job_status='RUN', time_executed='2022-06-29 04:52:48.177275', time_epoch_executed='1656503568.18' WHERE source_name='4FGL J1740.5+5211' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406200

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406200/ft1_4FGL_J1740.5+5211_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406200/ft2_4FGL_J1740.5+5211_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406200/ft1_4FGL_J1740.5+5211_daily_bin1692.fits outfile=/scratch/kocevski/406200/ft1_filteredMKT_4FGL_J1740.5+5211_daily_bin1692.fits ra=265.136 dec=52.1927 rad=12.0 tmin=677894401.0 tmax=678153601.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.52
user 4.26
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/406200/ft2_4FGL_J1740.5+5211_daily_bin1692.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/406200/ft2_4FGL_J1740.5+5211_daily_bin1692.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/406200/ft1_filteredMKT_4FGL_J1740.5+5211_daily_bin1692.fits evtable="EVENTS" outfile="/scratch/kocevski/406200/ft1_filtered_4FGL_J1740.5+5211_daily_bin1692.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.55
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 1130

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406200/ft1_filtered_4FGL_J1740.5+5211_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/406200/ft2_4FGL_J1740.5+5211_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/406200/ltcube_677894401_678153601_4FGL_J1740.5+5211_daily_bin1692.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/406200/ft2_4FGL_J1740.5+5211_daily_bin1692.fits
.....................!
real 14.25
user 13.88
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406200/ft1_filtered_4FGL_J1740.5+5211_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/406200/ft2_4FGL_J1740.5+5211_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/406200/ltcube_677894401_678153601_4FGL_J1740.5+5211_daily_bin1692.fits outfile=/scratch/kocevski/406200/expmap_677894401_678153601_4FGL_J1740.5+5211_daily_bin1692.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/406200/ltcube_677894401_678153601_4FGL_J1740.5+5211_daily_bin1692.fits
.....................!
real 194.24
user 188.37
sys 4.84

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

Setting source of interest to:
4FGL J1740.5+5211 @ 265.136 52.1927

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/406200/ft1_filtered_4FGL_J1740.5+5211_daily_bin1692.fits scfile=/scratch/kocevski/406200/ft2_4FGL_J1740.5+5211_daily_bin1692.fits outfile=/scratch/kocevski/406200/cmap_677894401_678153601_4FGL_J1740.5+5211_daily_bin1692.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=265.136 yref=52.1927 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406200/ft1_filtered_4FGL_J1740.5+5211_daily_bin1692.fits scfile=/scratch/kocevski/406200/ft2_4FGL_J1740.5+5211_daily_bin1692.fits outfile=/scratch/kocevski/406200/cmap_HighResolution_677894401_678153601_4FGL_J1740.5+5211_daily_bin1692.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=265.136 yref=52.1927 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406200/ft1_filtered_4FGL_J1740.5+5211_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/406200/ft2_4FGL_J1740.5+5211_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406200/Model_4FGL_J1740.5+5211_daily_bin1692.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/406200/ft1_filtered_4FGL_J1740.5+5211_daily_bin1692.fits.....................!
real 97.77
user 95.47
sys 1.83

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/406200/ft1_filtered_4FGL_J1740.5+5211_daily_bin1692.fits', '/scratch/kocevski/406200/ft2_4FGL_J1740.5+5211_daily_bin1692.fits', expMap='/scratch/kocevski/406200/expmap_677894401_678153601_4FGL_J1740.5+5211_daily_bin1692.fits', expCube='/scratch/kocevski/406200/ltcube_677894401_678153601_4FGL_J1740.5+5211_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/406200/Model_4FGL_J1740.5+5211_daily_bin1692.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1740.5+5211'

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  5.805e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
346        Index:  2.470e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/406200/ft1_filtered_4FGL_J1740.5+5211_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/406200/ft2_4FGL_J1740.5+5211_daily_bin1692.fits
Exposure map: /scratch/kocevski/406200/expmap_677894401_678153601_4FGL_J1740.5+5211_daily_bin1692.fits
Exposure cube: /scratch/kocevski/406200/ltcube_677894401_678153601_4FGL_J1740.5+5211_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/406200/Model_4FGL_J1740.5+5211_daily_bin1692.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) = 11705.4834362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.2509       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24485       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.886       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.681       1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .59082       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8330       1.0000         .10000E-03   10000.    
    12 'norm      '    .60274       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.248       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4918       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4940       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.016       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1897       1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.307       1.0000         .10000E-03   10000.    
    23 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    11.880       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.7802       1.0000         .10000E-03   10000.    
    28 'norm      '    11.878       1.0000         .10000E-03   10000.    
    29 'norm      '    5.9018       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .68972       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3304       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11705.45     FROM MIGRAD    STATUS=CONVERGED    834 CALLS     4471 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.0492        .33067E-05** at limit **
   2  Prefactor     4.2503        3.2560        .39040E-06    .43943E-03
   3  Prefactor     .10000E-03    6.0451       -.22220E-05** at limit **
   4  Prefactor     .24760        1.2474       -.12630E-05    .19359E-02
   5  Prefactor     14.883        12.604       -.62540E-06    .32402E-03
   6  Prefactor     10.681        13.356       -.20344E-06    .75308E-05
   7  norm          .10000E-03    .22488        .27841E-08** at limit **
   8  Prefactor     .10000E-03    1.3274        .12885E-07** at limit **
   9  norm          .59065        .67283       -.87598E-07   -.18107E-03
  10  Prefactor     .10000E-03    5.6623        .60649E-06** at limit **
  11  Prefactor     1.8303        5.3629       -.19787E-06   -.44544E-03
  12  norm          .60237        1.2919        .18909E-06    .22652E-03
  13  Prefactor     .10000E-03    1.5006       -.45083E-07** at limit **
  14  Prefactor     30.244        55.257       -.50009E-05   -.11648E-04
  15  norm          3.4933        7.6440        .25378E-05   -.18512E-03
  16  Prefactor     .10000E-03    25.487        .17143E-05** at limit **
  17  Prefactor     2.4931        4.2777       -.95559E-06   -.91437E-03
  18  Prefactor     .10000E-03    25.484        .12196E-05** at limit **
  19  Prefactor     .10000E-03    30.585       -.24759E-05** at limit **
  20  Prefactor     12.006        48.027       -.23281E-04   -.12517E-04
  21  Prefactor     7.1890        8.0911        .29437E-07    .12055E-04
  22  Prefactor     28.308        18.297        .39169E-06    .16113E-04
  23  norm          .10000E-03    3.2170       -.42391E-07** at limit **
  24  Prefactor     .10000E-03    2.3560        .23293E-07** at limit **
  25  Prefactor     .10000E-03    8.2931       -.17197E-05** at limit **
  26  norm          11.880        7.2527       -.60406E-07   -.31750E-04
  27  Prefactor     8.7775        22.519       -.37836E-05    .87865E-06
  28  norm          11.878        8.0629       -.19362E-06    .96134E-05
  29  norm          5.9017        5.6807       -.18763E-08    .22579E-05
  30  Prefactor     .10000E-03    .51288       -.55123E-08** at limit **
  31  Normalizat    .68968        .18094        .28085E-05    .25639E-03
  32  Prefactor     1.3304        .12498       -.12787E-06    .41546E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 4.25029
  Prefactor  = 0.0001
  Prefactor  = 0.247599
  Prefactor  = 14.883
  Prefactor  = 10.6805
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.590647
  Prefactor  = 0.0001
  Prefactor  = 1.83027
  norm       = 0.602375
  Prefactor  = 0.0001
  Prefactor  = 30.2441
  norm       = 3.49326
  Prefactor  = 0.0001
  Prefactor  = 2.49309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0059
  Prefactor  = 7.18904
  Prefactor  = 28.3077
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.8804
  Prefactor  = 8.77754
  norm       = 11.8777
  norm       = 5.90166
  Prefactor  = 0.0001
  Normalizat = 0.689685
  Prefactor  = 1.33042
 **********
 **   18 **HESSE 
 **********

 FCN=   11705.45     FROM HESSE     STATUS=OK           665 CALLS     5136 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.0352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.2503        3.2404        .16365E-03   -1.5296    
   3  Prefactor     .10000E-03    6.2154        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .24760        4.6994        .21295E-02   -1.5608    
   5  Prefactor     14.883        12.543        .10381E-03   -1.4936    
   6  Prefactor     10.681        13.374        .61297E-03   -1.5054    
   7  norm          .10000E-03    .32883        .98184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.3301        .12169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .59065        .61375        .90540E-03   -1.5554    
  10  Prefactor     .10000E-03    5.7513        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8303        7.6834        .15411E-02   -1.5437    
  12  norm          .60237        1.2678        .16850E-03   -1.5553    
  13  Prefactor     .10000E-03    1.5279        .12928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.244        55.107        .72850E-04   -1.4608    
  15  norm          3.4933        7.4885        .10819E-02   -1.5334    
  16  Prefactor     .10000E-03    25.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.4931        5.1592        .12940E-02   -1.5392    
  18  Prefactor     .10000E-03    25.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    30.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.006        48.338        .11556E-03   -1.5015    
  21  Prefactor     7.1890        8.0919        .14960E-03   -1.5172    
  22  Prefactor     28.308        18.300        .75301E-04   -1.4643    
  23  norm          .10000E-03    3.2354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.3629        .16217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.3337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          11.880        7.2644        .58112E-03   -1.5018    
  27  Prefactor     8.7775        22.511        .13527E-03   -1.5115    
  28  norm          11.878        8.0719        .11623E-03   -1.5019    
  29  norm          5.9017        5.6855        .16530E-03   -1.5222    
  30  Prefactor     .10000E-03    .51582        .75659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .68968        .21046        .37989E-03   -1.0430    
  32  Prefactor     1.3304        .14591        .21141E-03   -.82407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46123e-08
Minuit parameter uncertainties:
  1  4.69546e-07
  2  3.24057
  3  8.74847e-06
  4  2.15713
  5  12.5453
  6  13.3778
  7  1.39191e-06
  8  6.02949e-07
  9  0.61376
  10  5.88365e-05
  11  7.50152
  12  1.2679
  13  6.32977e-06
  14  55.2
  15  7.49049
  16  0.000191658
  17  5.16008
  18  1.87186e-06
  19  7.15984e-06
  20  48.2485
  21  8.09309
  22  18.3036
  23  3.72214e-06
  24  1.71473e-06
  25  3.89526e-06
  26  7.26489
  27  22.5329
  28  8.07262
  29  5.68604
  30  4.77712e-07
  31  0.210709
  32  0.145956
Done.

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

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  2.493e+00  5.160e+00  1.000e-04  1.000e+04 ( 1.000e-12)
346        Index:  2.470e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  1.330e+00  1.460e-01  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  6.897e-01  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 265.136 52.193
Photon Flux Upper Limit: 9.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/406200/likelihoodResults_677894401_678153601_4FGL_J1740.5+5211_daily_bin1692.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) = 11704.2969476
delta logL = 1.15053488099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11704.2574929
delta logL = 1.18998954047

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62264E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.7290       1.0000          .0000       10.000    
     3 'Normalizat'    .59805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3770       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11704.26     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      295 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62079E-01    .46697        .37710E-02    .11691E-01
   2  Index         5.7320        2.4403        .13256        .35796E-03
   3  Normalizat    .59811        .37124E-01    .91648E-01    .16457E-03
   4  Prefactor     1.3769        .27882E-01    .47122E-01    .85531E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0620792
  Index      = 5.732
  Normalizat = 0.598111
  Prefactor  = 1.37694
 **********
 **   18 **HESSE 
 **********

 FCN=   11704.26     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      330 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62079E-01    1.2408        .17210E-03   -1.5658    
   2  Index         5.7320        7.3077        .64971E-02    .14693    
   3  Normalizat    .59811        .13868        .40608E-03   -1.0806    
   4  Prefactor     1.3769        .10236        .20829E-03   -.81047    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.59654e-10
Minuit parameter uncertainties:
  1  0.554636
  2  5.12569
  3  0.138762
  4  0.102376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406200': 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): 102
logL (Free Index) = 11704.2574866
delta logL = 1.18999591681

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  6.208e-02  5.546e-01  1.000e-04  1.000e+04 ( 1.000e-12)
346        Index:  5.732e+00  5.126e+00  0.000e+00  1.000e+01 (-1.000e+00)
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  1.377e+00  1.024e-01  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  5.981e-01  1.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.98
Ra Dec: 265.136 52.193
Photon Index (Free Index): 5.73 +/- 5.13
Photon Flux (Free Index): 7.51e-08 +/- 4.85e-08
Energy Flux (Free Index): 9.50e-06 +/- 7.48e-06

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/406200/cmap_HighResolution_677894401_678153601_4FGL_J1740.5+5211_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', comment='SUCCESS', energy_flux2='9.50e-06', dlogl='1.19e+00', photon_flux2='7.51e-08', job_status='DONE', time_completed='2022-06-29 05:21:25.489375', photon_index_error2='5.13', photon_index2='5.73', ts='0.33', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='9.30e-08', energy_flux_error2='7.48e-06', EG='0.69', time_epoch_completed='1656505285.49', return_code='0', job_id='406200', GAL2='1.38', EG2='0.60', return_code2='102', photon_flux_error2='4.85e-08', ts2='2.98', photon_index='2.47' WHERE bin_id='1692' AND source_name='4FGL J1740.5+5211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 05:21:25 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 406244: <4FGL_J1740.5+5211_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1740.5+5211_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:07:33 2022
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:51:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:51:44 2022
Terminated at Wed Jun 29 05:20:57 2022
Results reported at Wed Jun 29 05:20:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.5+5211_daily_bin1692 265.136 52.1927 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1740.5+5211 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1715.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1753 sec.
    Turnaround time :                            18804 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 406200: <4FGL_J1740.5+5211_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1740.5+5211_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:07:31 2022
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:51:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:51:29 2022
Terminated at Wed Jun 29 05:21:26 2022
Results reported at Wed Jun 29 05:21:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.5+5211_daily_bin1692 265.136 52.1927 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1740.5+5211 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1712.00 sec.
    Max Memory :                                 1236 MB
    Average Memory :                             327.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1796 sec.
    Turnaround time :                            18835 sec.

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

