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


Performing analysis on: 4FGL_J1741.2+5739_monthly_bin169
RA = 265.323, Dec = 57.6587
tmin = 675043201, tmax = 677635201
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='182817', job_status='RUN', time_executed='2022-06-23 02:42:18.447889', time_epoch_executed='1655977338.45' WHERE source_name='4FGL J1741.2+5739' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/182817

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/182817/ft1_4FGL_J1741.2+5739_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/182817/ft2_4FGL_J1741.2+5739_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/182817/ft1_4FGL_J1741.2+5739_monthly_bin169.fits outfile=/scratch/kocevski/182817/ft1_filteredMKT_4FGL_J1741.2+5739_monthly_bin169.fits ra=265.323 dec=57.6587 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.93
user 27.15
sys 0.68

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/182817/ft2_4FGL_J1741.2+5739_monthly_bin169.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/182817/ft1_filteredMKT_4FGL_J1741.2+5739_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/182817/ft1_filtered_4FGL_J1741.2+5739_monthly_bin169.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.86
user 0.67
sys 0.17

Number of photons that the gtmktime cut: 13547

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/182817/ft1_filtered_4FGL_J1741.2+5739_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/182817/ft2_4FGL_J1741.2+5739_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/182817/ltcube_675043201_677635201_4FGL_J1741.2+5739_monthly_bin169.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/182817/ft2_4FGL_J1741.2+5739_monthly_bin169.fits
.....................!
real 136.96
user 135.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/182817/ft1_filtered_4FGL_J1741.2+5739_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/182817/ft2_4FGL_J1741.2+5739_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/182817/ltcube_675043201_677635201_4FGL_J1741.2+5739_monthly_bin169.fits outfile=/scratch/kocevski/182817/expmap_675043201_677635201_4FGL_J1741.2+5739_monthly_bin169.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/182817/ltcube_675043201_677635201_4FGL_J1741.2+5739_monthly_bin169.fits
.....................!
real 192.17
user 187.17
sys 4.28

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/182817/ft1_filtered_4FGL_J1741.2+5739_monthly_bin169.fits scfile=/scratch/kocevski/182817/ft2_4FGL_J1741.2+5739_monthly_bin169.fits outfile=/scratch/kocevski/182817/cmap_675043201_677635201_4FGL_J1741.2+5739_monthly_bin169.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.80
user 0.62
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/182817/ft1_filtered_4FGL_J1741.2+5739_monthly_bin169.fits scfile=/scratch/kocevski/182817/ft2_4FGL_J1741.2+5739_monthly_bin169.fits outfile=/scratch/kocevski/182817/cmap_HighResolution_675043201_677635201_4FGL_J1741.2+5739_monthly_bin169.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.81
user 0.64
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/182817/ft1_filtered_4FGL_J1741.2+5739_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/182817/ft2_4FGL_J1741.2+5739_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/182817/Model_4FGL_J1741.2+5739_monthly_bin169.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/182817/ft1_filtered_4FGL_J1741.2+5739_monthly_bin169.fits.....................!
real 1123.03
user 1118.77
sys 1.54

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/182817/ft1_filtered_4FGL_J1741.2+5739_monthly_bin169.fits', '/scratch/kocevski/182817/ft2_4FGL_J1741.2+5739_monthly_bin169.fits', expMap='/scratch/kocevski/182817/expmap_675043201_677635201_4FGL_J1741.2+5739_monthly_bin169.fits', expCube='/scratch/kocevski/182817/ltcube_675043201_677635201_4FGL_J1741.2+5739_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/182817/Model_4FGL_J1741.2+5739_monthly_bin169.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/182817/ft1_filtered_4FGL_J1741.2+5739_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/182817/ft2_4FGL_J1741.2+5739_monthly_bin169.fits
Exposure map: /scratch/kocevski/182817/expmap_675043201_677635201_4FGL_J1741.2+5739_monthly_bin169.fits
Exposure cube: /scratch/kocevski/182817/ltcube_675043201_677635201_4FGL_J1741.2+5739_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/182817/Model_4FGL_J1741.2+5739_monthly_bin169.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) = 140483.415626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13391       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.8150       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3300       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3088       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .80582       1.0000         .10000E-03   10000.    
     7 'norm      '    .61088E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .92678E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .35036       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8744       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4350       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .33258       1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.4945       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3017       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.659       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.880       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12201E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1647       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .43154       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.6813       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.5393       1.0000         .10000E-03   10000.    
    27 'norm      '    7.2834       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.6422       1.0000         .10000E-03   10000.    
    29 'norm      '    9.3732       1.0000         .10000E-03   10000.    
    30 'Prefactor '    10.521       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .75091E-02   1.0000         .10000E-03   10000.    
    32 'norm      '    2.6630       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0480       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0133       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   140483.3     FROM MIGRAD    STATUS=CONVERGED   1000 CALLS     4400 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13901        .58560         .0000        .16729E-02
   2  Prefactor     .10000E-03    .26382         .0000    ** at limit **
   3  norm          4.8147        1.7656         .0000        .75145E-01
   4  Prefactor     1.3306        .62662         .0000        .15160E-01
   5  Prefactor     1.3088        1.3082         .0000        .86337E-02
   6  Prefactor     .81362        1.3307         .0000        .59573E-02
   7  norm          .61105E-01    .79073E-01     .0000        .46768E-01
   8  norm          .92736E-01    .96461E-01     .0000        .50664E-01
   9  Prefactor     .10000E-03    .51696         .0000    ** at limit **
  10  Prefactor     .34917        .79064         .0000        .75862E-02
  11  Prefactor     .10000E-03    .41366         .0000    ** at limit **
  12  Prefactor     2.8754        1.7060         .0000        .12301    
  13  Prefactor     2.4353        .63643         .0000        .10651E-03
  14  Prefactor     .37340        2.1936         .0000        .24742E-02
  15  norm          .10000E-03    .16593         .0000    ** at limit **
  16  Prefactor     4.4879        5.9016         .0000       -.26052E-03
  17  Prefactor     4.3008        1.0647         .0000       -.18580E-03
  18  Prefactor     13.682        8.2537         .0000        .10914E-02
  19  Prefactor     16.728        13.105         .0000       -.59665E-03
  20  Prefactor     .10000E-03    5.2112         .0000    ** at limit **
  21  Prefactor     5.1661        3.0585         .0000        .82594E-02
  22  Prefactor     .43573        .74138         .0000        .50412E-02
  23  Prefactor     .10000E-03    .57964         .0000    ** at limit **
  24  Prefactor     4.6751        3.1180         .0000        .25627E-02
  25  Prefactor     .10000E-03    6.2811         .0000    ** at limit **
  26  Prefactor     1.5387        1.2288         .0000        .43992    
  27  norm          7.2828        1.7770         .0000        .20879E-02
  28  Prefactor     1.6406        2.5127         .0000        .68599E-01
  29  norm          9.3780        2.3626         .0000        .20541E-01
  30  Prefactor     10.523        3.4803         .0000        .47620E-02
  31  Prefactor     .10000E-03    3.1328         .0000    ** at limit **
  32  norm          2.6631        .48773         .0000       -.10654E-02
  33  Normalizat    1.0480        .48510E-01     .0000       -.34752E-03
  34  Prefactor     1.0133        .33615E-01     .0000       -.80090E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.139009
  Prefactor  = 0.0001
  norm       = 4.81472
  Prefactor  = 1.33062
  Prefactor  = 1.30875
  Prefactor  = 0.813621
  norm       = 0.061105
  norm       = 0.0927365
  Prefactor  = 0.0001
  Prefactor  = 0.349174
  Prefactor  = 0.0001
  Prefactor  = 2.87544
  Prefactor  = 2.4353
  Prefactor  = 0.373402
  norm       = 0.0001
  Prefactor  = 4.48788
  Prefactor  = 4.30078
  Prefactor  = 13.682
  Prefactor  = 16.7277
  Prefactor  = 0.0001
  Prefactor  = 5.16609
  Prefactor  = 0.435731
  Prefactor  = 0.000100002
  Prefactor  = 4.6751
  Prefactor  = 0.000100003
  Prefactor  = 1.53874
  norm       = 7.28285
  Prefactor  = 1.64056
  norm       = 9.37802
  Prefactor  = 10.5225
  Prefactor  = 0.000100005
  norm       = 2.66306
  Normalizat = 1.04799
  Prefactor  = 1.01332
 **********
 **   18 **HESSE 
 **********

 FCN=   140483.3     FROM HESSE     STATUS=OK           796 CALLS     5196 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13901        .83748        .11035       -1.5633    
   2  Prefactor     .10000E-03    2.6998        .36129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.8147        1.7631        .91669E-03   -1.5269    
   4  Prefactor     1.3306        .61312        .19439E-03   -1.5477    
   5  Prefactor     1.3088        1.2874        .38556E-03   -1.5479    
   6  Prefactor     .81362        3.1945        .51588E-02   -1.5528    
   7  norm          .61105E-01    .88494E-01    .11541E-02   -1.5659    
   8  norm          .92736E-01    .11323        .11094E-02   -1.5647    
   9  Prefactor     .10000E-03    .53798        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .34917        3.4451        .46864E-02   -1.5590    
  11  Prefactor     .10000E-03    .42597        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.8754        1.6983        .11987E-02   -1.5369    
  13  Prefactor     2.4353        .63504        .14811E-03   -1.5396    
  14  Prefactor     .37340        2.1769        .17810       -1.5586    
  15  norm          .10000E-03    .51028        .29241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.4879        5.8828        .18992E-03   -1.5284    
  17  Prefactor     4.3008        1.0583        .19424E-04   -1.5293    
  18  Prefactor     13.682        8.2492        .10838E-03   -1.4968    
  19  Prefactor     16.728        13.095        .97484E-04   -1.4890    
  20  Prefactor     .10000E-03    5.2692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.1661        3.0564        .88448E-03   -1.5253    
  22  Prefactor     .43573        3.0029        .39413E-02   -1.5576    
  23  Prefactor     .10000E-03    .56737        .92622E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.6751        3.1142        .18600E-03   -1.5275    
  25  Prefactor     .10000E-03    6.2923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.5387        1.2222        .17185E-02   -1.5460    
  27  norm          7.2828        1.7744        .14862E-03   -1.5168    
  28  Prefactor     1.6406        2.4899        .16484E-02   -1.5452    
  29  norm          9.3780        2.3628        .65450E-03   -1.5095    
  30  Prefactor     10.523        3.4726        .12353E-03   -1.5059    
  31  Prefactor     .10000E-03    2.9973        .24214       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          2.6631        .48803        .10898E-03   -1.5382    
  33  Normalizat    1.0480        .55654E-01    .30484E-03   -.91440    
  34  Prefactor     1.0133        .39595E-01    .22857E-03   -.92287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08206e-06
Minuit parameter uncertainties:
  1  0.68217
  2  2.9106e-05
  3  1.76307
  4  0.613124
  5  1.28747
  6  3.19516
  7  0.0884945
  8  0.113234
  9  4.68464e-06
  10  2.19343
  11  2.42656e-06
  12  1.69831
  13  0.63504
  14  1.80304
  15  4.49033e-06
  16  5.88358
  17  1.05834
  18  8.24986
  19  13.097
  20  5.87036e-05
  21  3.05654
  22  2.28766
  23  7.51151e-05
  24  3.11431
  25  0.000282754
  26  1.22227
  27  1.77444
  28  2.49004
  29  2.36286
  30  3.4727
  31  0.000241567
  32  0.488029
  33  0.0556574
  34  0.0395963
Done.

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

Extracting fit parameters...

4FGL J1741.2+5739
   Spectrum: PowerLaw
364    Prefactor:  1.673e+01  1.310e+01  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.013e+00  3.960e-02  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  5.566e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.66
Ra Dec: 265.323 57.659
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 6.41e-09 +/- 5.02e-09
Energy Flux (Fixed Index): 2.16e-06 +/- 1.69e-06

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

Saving results to:
/scratch/kocevski/182817/likelihoodResults_675043201_677635201_4FGL_J1741.2+5739_monthly_bin169.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) = 140483.274422
delta logL = 0.0426226232667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 140483.266775
delta logL = 0.0502689229615

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.526       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2074       1.0000          .0000       10.000    
     3 'Normalizat'    1.0494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0128       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=   140483.3     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      260 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.520        15.196        .93054E-04   -.15247E-03
   2  Index         2.2080        .53355        .64529E-02   -.29976E-03
   3  Normalizat    1.0495        .52618E-01    .30465E-03   -.47312E-02
   4  Prefactor     1.0128        .38978E-01    .22862E-03   -.63927E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5198
  Index      = 2.20799
  Normalizat = 1.04946
  Prefactor  = 1.0128
 **********
 **   18 **HESSE 
 **********

 FCN=   140483.3     FROM HESSE     STATUS=OK            23 CALLS      283 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.520        15.056        .37222E-05   -1.4847    
   2  Index         2.2080        .52898        .25811E-03   -.59246    
   3  Normalizat    1.0495        .52655E-01    .12186E-04   -.91392    
   4  Prefactor     1.0128        .39011E-01    .45725E-04   -.92304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82178e-09
Minuit parameter uncertainties:
  1  15.0594
  2  0.53042
  3  0.0526575
  4  0.0390126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/182817': 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) = 140483.266775
delta logL = 0.0502695710456

Extracting fit parameters...

4FGL J1741.2+5739
   Spectrum: PowerLaw
364    Prefactor:  1.852e+01  1.506e+01  1.000e-04  1.000e+04 ( 1.000e-14)
365        Index:  2.208e+00  5.304e-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.013e+00  3.901e-02  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.049e+00  5.266e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 265.323 57.659
Photon Index (Free Index): 2.21 +/- 0.53
Photon Flux (Free Index): 5.17e-09 +/- 5.73e-09
Energy Flux (Free Index): 2.29e-06 +/- 1.87e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/182817/cmap_HighResolution_675043201_677635201_4FGL_J1741.2+5739_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-03', comment='SUCCESS', photon_flux='6.41e-09', energy_flux2='2.29e-06', photon_flux_error='5.02e-09', dlogl='5.03e-02', energy_flux='2.16e-06', photon_flux2='5.17e-09', job_status='DONE', time_completed='2022-06-23 07:46:03.351200', photon_index_error2='0.53', photon_index2='2.21', ts='2.66', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.70e-08', energy_flux_error2='1.87e-06', EG='1.05', time_epoch_completed='1655995563.35', return_code='0', job_id='182817', GAL2='1.01', EG2='1.05', return_code2='0', energy_flux_error='1.69e-06', photon_flux_error2='5.73e-09', ts2='2.75', photon_index='2.38' WHERE bin_id='169' AND source_name='4FGL J1741.2+5739' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 07:46:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 182817: <4FGL_J1741.2+5739_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1741.2+5739_monthly_bin169> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Jun 23 02:40:25 2022
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:40:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:40:30 2022
Terminated at Thu Jun 23 07:46:04 2022
Results reported at Thu Jun 23 07:46:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1741.2+5739_monthly_bin169 265.323 57.6587 675043201 677635201 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 :                                   18166.00 sec.
    Max Memory :                                 636 MB
    Average Memory :                             519.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   18334 sec.
    Turnaround time :                            18339 sec.

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

