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


Performing analysis on: 4FGL_J1741.2+5739_daily_bin1667
RA = 265.323, Dec = 57.6587
tmin = 671414401, tmax = 671673601
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='478469', job_status='RUN', time_executed='2022-04-15 03:32:59.273647', time_epoch_executed='1650018779.27' WHERE source_name='4FGL J1741.2+5739' and cadence='daily' and bin_id='1667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478469

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478469/ft1_4FGL_J1741.2+5739_daily_bin1667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478469/ft2_4FGL_J1741.2+5739_daily_bin1667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478469/ft1_4FGL_J1741.2+5739_daily_bin1667.fits outfile=/scratch/kocevski/478469/ft1_filteredMKT_4FGL_J1741.2+5739_daily_bin1667.fits ra=265.323 dec=57.6587 rad=12.0 tmin=671414401.0 tmax=671673601.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.57
user 3.28
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/478469/ft2_4FGL_J1741.2+5739_daily_bin1667.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/478469/ft2_4FGL_J1741.2+5739_daily_bin1667.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/478469/ft1_filteredMKT_4FGL_J1741.2+5739_daily_bin1667.fits evtable="EVENTS" outfile="/scratch/kocevski/478469/ft1_filtered_4FGL_J1741.2+5739_daily_bin1667.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.33
sys 0.16

Number of photons that the gtmktime cut: 1014

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478469/ft1_filtered_4FGL_J1741.2+5739_daily_bin1667.fits" evtable="EVENTS" scfile=/scratch/kocevski/478469/ft2_4FGL_J1741.2+5739_daily_bin1667.fits sctable="SC_DATA" outfile=/scratch/kocevski/478469/ltcube_671414401_671673601_4FGL_J1741.2+5739_daily_bin1667.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/478469/ft2_4FGL_J1741.2+5739_daily_bin1667.fits
.....................!
real 12.21
user 11.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478469/ft1_filtered_4FGL_J1741.2+5739_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/478469/ft2_4FGL_J1741.2+5739_daily_bin1667.fits sctable="SC_DATA" expcube=/scratch/kocevski/478469/ltcube_671414401_671673601_4FGL_J1741.2+5739_daily_bin1667.fits outfile=/scratch/kocevski/478469/expmap_671414401_671673601_4FGL_J1741.2+5739_daily_bin1667.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/478469/ltcube_671414401_671673601_4FGL_J1741.2+5739_daily_bin1667.fits
.....................!
real 190.96
user 185.90
sys 4.70

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

Setting source of interest to:
4FGL J1741.2+5739 @ 265.323 57.6587

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/478469/ft1_filtered_4FGL_J1741.2+5739_daily_bin1667.fits scfile=/scratch/kocevski/478469/ft2_4FGL_J1741.2+5739_daily_bin1667.fits outfile=/scratch/kocevski/478469/cmap_671414401_671673601_4FGL_J1741.2+5739_daily_bin1667.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.323 yref=57.6587 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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478469/ft1_filtered_4FGL_J1741.2+5739_daily_bin1667.fits scfile=/scratch/kocevski/478469/ft2_4FGL_J1741.2+5739_daily_bin1667.fits outfile=/scratch/kocevski/478469/cmap_HighResolution_671414401_671673601_4FGL_J1741.2+5739_daily_bin1667.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.323 yref=57.6587 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/478469/ft1_filtered_4FGL_J1741.2+5739_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/478469/ft2_4FGL_J1741.2+5739_daily_bin1667.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478469/Model_4FGL_J1741.2+5739_daily_bin1667.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/478469/ft1_filtered_4FGL_J1741.2+5739_daily_bin1667.fits.....................!
real 91.27
user 89.87
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/478469/ft1_filtered_4FGL_J1741.2+5739_daily_bin1667.fits', '/scratch/kocevski/478469/ft2_4FGL_J1741.2+5739_daily_bin1667.fits', expMap='/scratch/kocevski/478469/expmap_671414401_671673601_4FGL_J1741.2+5739_daily_bin1667.fits', expCube='/scratch/kocevski/478469/ltcube_671414401_671673601_4FGL_J1741.2+5739_daily_bin1667.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/478469/Model_4FGL_J1741.2+5739_daily_bin1667.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1741.2+5739'

4FGL J1741.2+5739
   Spectrum: PowerLaw
364    Prefactor:  8.390e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
365        Index:  2.378e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
366        Scale:  1.396e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/478469/ft1_filtered_4FGL_J1741.2+5739_daily_bin1667.fits
Spacecraft file(s): /scratch/kocevski/478469/ft2_4FGL_J1741.2+5739_daily_bin1667.fits
Exposure map: /scratch/kocevski/478469/expmap_671414401_671673601_4FGL_J1741.2+5739_daily_bin1667.fits
Exposure cube: /scratch/kocevski/478469/ltcube_671414401_671673601_4FGL_J1741.2+5739_daily_bin1667.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/478469/Model_4FGL_J1741.2+5739_daily_bin1667.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) = 10496.5654684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    46.659       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.5619       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .92535       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1894       1.0000         .10000E-03   10000.    
     8 'norm      '    .45539       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .79060       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7935       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.720       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9367       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24513E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.464       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7397       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.7828       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.614       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.2802       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .15602E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.9405       1.0000         .10000E-03   10000.    
    27 'norm      '    2.5190       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    14.568       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    2.2494       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0429       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0205       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+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=   10496.56     FROM MIGRAD    STATUS=CONVERGED   1720 CALLS     5782 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          46.661        22.411        .58699E-04    .13015E-04
   2  Prefactor     7.5617        6.4695        .14584E-03    .34456E-04
   3  norm          .10000E-03    2.1278        .14572E-02** at limit **
   4  Prefactor     .92553        2.3567        .24441E-03   -.13861E-04
   5  Prefactor     .10000E-03    5.2928        .18142E-02** at limit **
   6  Prefactor     .10000E-03    4.0458        .18142E-02** at limit **
   7  norm          1.1895        .88661        .80883E-04    .14084E-03
   8  norm          .45550        .62856        .10227E-02    .61572E-03
   9  Prefactor     .79203        12.379        .32472E-02    .13828E-03
  10  Prefactor     .10000E-03    4.1017        .18142E-02** at limit **
  11  Prefactor     .10000E-03    2.4343        .15517E-02** at limit **
  12  Prefactor     1.7971        4.5396        .15614E-02    .75433E-04
  13  Prefactor     .10000E-03    1.3326        .11463E-02** at limit **
  14  Prefactor     22.716        26.710        .84035E-04    .13637E-04
  15  norm          2.9380        3.8153        .21924E-03    .90437E-04
  16  Prefactor     .10000E-03    123.15        .18142E-02** at limit **
  17  Prefactor     .10000E-03    2.9548        .33768E-03** at limit **
  18  Prefactor     .10000E-03    17.046        .18142E-02** at limit **
  19  Prefactor     .10000E-03    177.93        .18142E-02** at limit **
  20  Prefactor     27.460        40.623        .76444E-04   -.24390E-04
  21  Prefactor     3.7407        12.855        .20880E-03    .10781E-04
  22  Prefactor     7.7824        10.421        .14374E-03    .31321E-04
  23  Prefactor     12.617        14.188        .11279E-03    .31651E-04
  24  Prefactor     6.2774        11.204        .80089E-03    .11101E-04
  25  Prefactor     1.3370        61.102        .28337        .13061E-03
  26  Prefactor     6.9275        6.8752        .76142E-03    .53960E-04
  27  norm          2.5202        6.6368        .12870E-02    .51107E-03
  28  Prefactor     .10000E-03    8.0164        .18142E-02** at limit **
  29  norm          14.571        10.318        .10494E-03    .17551E-04
  30  Prefactor     .10000E-03    21.478        .18142E-02** at limit **
  31  Prefactor     .10000E-03    77.446        .18142E-02** at limit **
  32  norm          2.2498        1.7362        .11521E-03    .23486E-04
  33  Normalizat    1.0430        .21850        .31526E-03    .27926E-03
  34  Prefactor     1.0203        .14940        .23285E-03    .16698E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 46.6605
  Prefactor  = 7.56173
  norm       = 0.0001
  Prefactor  = 0.925529
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.18948
  norm       = 0.455497
  Prefactor  = 0.792027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.79707
  Prefactor  = 0.0001
  Prefactor  = 22.7157
  norm       = 2.93798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 27.46
  Prefactor  = 3.74071
  Prefactor  = 7.78242
  Prefactor  = 12.617
  Prefactor  = 6.27739
  Prefactor  = 1.33699
  Prefactor  = 6.92749
  norm       = 2.52022
  Prefactor  = 0.0001
  norm       = 14.5708
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.24978
  Normalizat = 1.04303
  Prefactor  = 1.0203
 **********
 **   18 **HESSE 
 **********

 FCN=   10496.56     FROM HESSE     STATUS=OK           718 CALLS     6500 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          46.661        22.410        .11740E-04   -1.4341    
   2  Prefactor     7.5617        6.4671        .58335E-05   -1.5158    
   3  norm          .10000E-03    2.1279        .29145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .92553        2.3560        .97765E-05   -1.5516    
   5  Prefactor     .10000E-03    5.2943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0460        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1895        .88644        .32353E-05   -1.5490    
   8  norm          .45550        .62453        .40908E-04   -1.5573    
   9  Prefactor     .79203        12.163        .12989E-03   -1.5530    
  10  Prefactor     .10000E-03    4.1021        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.4350        .31034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7971        4.5369        .62455E-04   -1.5440    
  13  Prefactor     .10000E-03    1.3329        .22927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.716        26.708        .16807E-04   -1.4754    
  15  norm          2.9380        3.8147        .87694E-05   -1.5365    
  16  Prefactor     .10000E-03    123.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.9549        .67535E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.046        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    177.99        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.460        40.604        .30578E-05   -1.4659    
  21  Prefactor     3.7407        12.852        .83518E-05   -1.5321    
  22  Prefactor     7.7824        10.418        .57494E-05   -1.5150    
  23  Prefactor     12.617        14.184        .45114E-05   -1.4997    
  24  Prefactor     6.2774        11.203        .32035E-04   -1.5207    
  25  Prefactor     1.3370        61.202        .28284       -1.5477    
  26  Prefactor     6.9275        6.8736        .30457E-04   -1.5182    
  27  norm          2.5202        6.6325        .25741E-03   -1.5390    
  28  Prefactor     .10000E-03    8.0165        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          14.571        10.317        .41975E-05   -1.4944    
  30  Prefactor     .10000E-03    21.494        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    77.465        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          2.2498        1.7362        .46083E-05   -1.5408    
  33  Normalizat    1.0430        .21789        .12610E-04   -.91602    
  34  Prefactor     1.0203        .14945        .93138E-05   -.92056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07365e-10
Minuit parameter uncertainties:
  1  22.4137
  2  6.46768
  3  2.10206e-06
  4  2.35622
  5  2.60549e-06
  6  1.94755e-06
  7  0.886447
  8  0.624536
  9  6.20872
  10  3.69621e-06
  11  5.14128e-06
  12  4.5378
  13  3.46552e-06
  14  26.7225
  15  3.81505
  16  0.000199731
  17  1.11162e-05
  18  8.53817e-07
  19  0.00070341
  20  40.6449
  21  12.862
  22  10.4207
  23  14.1876
  24  11.2069
  25  18.1106
  26  6.87438
  27  6.63445
  28  5.15495e-06
  29  10.3184
  30  6.88522e-05
  31  0.000436562
  32  1.73628
  33  0.218079
  34  0.149506
Done.

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

Extracting fit parameters...

4FGL J1741.2+5739
   Spectrum: PowerLaw
364    Prefactor:  1.000e-04  7.034e-04  1.000e-04  1.000e+04 ( 1.000e-14)
365        Index:  2.378e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
366        Scale:  1.396e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  1.020e+00  1.495e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.043e+00  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 265.323 57.659
Photon Flux Upper Limit: 6.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478469/likelihoodResults_671414401_671673601_4FGL_J1741.2+5739_daily_bin1667.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): 102
logL (Free Index) = 10496.558883
delta logL = -2.66401566478e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10496.5588564
delta logL = -5.88206603425e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4115       1.0000          .0000       10.000    
     3 'Normalizat'    1.0430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0203       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+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=   10496.34     FROM MIGRAD    STATUS=CONVERGED    189 CALLS      374 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.649        220.57        .18142E-01    .81559E-04
   2  Index         1.3477        1.1658        .29215       -.42023E-04
   3  Normalizat    1.0482        .19978        .31522E-03   -.34248E-03
   4  Prefactor     1.0119        .14803        .23287E-03   -.31781E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.6489
  Index      = 1.34767
  Normalizat = 1.04819
  Prefactor  = 1.01189
 **********
 **   18 **HESSE 
 **********

 FCN=   10496.34     FROM HESSE     STATUS=OK            29 CALLS      403 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.649        102.36        .72569E-03   -1.4188    
   2  Index         1.3477        .68059        .15739E-01   -.81901    
   3  Normalizat    1.0482        .19653        .12609E-04   -.91433    
   4  Prefactor     1.0119        .14501        .46575E-04   -.92334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01811e-10
Minuit parameter uncertainties:
  1  102.675
  2  0.685174
  3  0.19667
  4  0.145067
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478469': 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) = 10496.3443913
delta logL = 0.214464997269

Extracting fit parameters...

4FGL J1741.2+5739
   Spectrum: PowerLaw
364    Prefactor:  5.765e+01  1.027e+02  1.000e-04  1.000e+04 ( 1.000e-14)
365        Index:  1.348e+00  6.852e-01  0.000e+00  1.000e+01 (-1.000e+00)
366        Scale:  1.396e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  1.012e+00  1.451e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.048e+00  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 265.323 57.659

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/478469/cmap_HighResolution_671414401_671673601_4FGL_J1741.2+5739_daily_bin1667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.02e-03', job_status='DONE', photon_flux_upper_limit='6.50e-08', time_completed='2022-04-15 04:03:40.623458', job_id='478469', GAL2='1.01', fit_tolerance='1e-08', EG2='1.05', EG='1.04', time_epoch_completed='1650020620.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.14e-01', ts2='0.43', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1667' AND source_name='4FGL J1741.2+5739' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Apr 15 04:03:40 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 478468: <4FGL_J1741.2+5739_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1741.2+5739_daily_bin1667> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:52 2022
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:31:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:31:48 2022
Terminated at Fri Apr 15 04:03:33 2022
Results reported at Fri Apr 15 04:03:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1741.2+5739_daily_bin1667 265.323 57.6587 671414401 671673601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1741.2+5739 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1846.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1905 sec.
    Turnaround time :                            14141 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 478469: <4FGL_J1741.2+5739_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1741.2+5739_daily_bin1667> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:52 2022
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:31:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:31:48 2022
Terminated at Fri Apr 15 04:03:41 2022
Results reported at Fri Apr 15 04:03:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1741.2+5739_daily_bin1667 265.323 57.6587 671414401 671673601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1741.2+5739 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1842.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1912 sec.
    Turnaround time :                            14149 sec.

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

