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 89 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0244.7+1316_weekly_bin741
RA = 41.192, Dec = 13.2799
tmin = 687139201, tmax = 687744001
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='380137', job_status='RUN', time_executed='2022-10-18 00:42:02.630823', time_epoch_executed='1666078922.63' WHERE source_name='4FGL J0244.7+1316' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380137

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380137/ft1_4FGL_J0244.7+1316_weekly_bin741.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380137/ft2_4FGL_J0244.7+1316_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380137/ft1_4FGL_J0244.7+1316_weekly_bin741.fits outfile=/scratch/kocevski/380137/ft1_filteredMKT_4FGL_J0244.7+1316_weekly_bin741.fits ra=41.192 dec=13.2799 rad=12.0 tmin=687139201.0 tmax=687744001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.56
user 6.31
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/380137/ft2_4FGL_J0244.7+1316_weekly_bin741.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380137/ft2_4FGL_J0244.7+1316_weekly_bin741.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/380137/ft1_filteredMKT_4FGL_J0244.7+1316_weekly_bin741.fits evtable="EVENTS" outfile="/scratch/kocevski/380137/ft1_filtered_4FGL_J0244.7+1316_weekly_bin741.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.54
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 522

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380137/ft1_filtered_4FGL_J0244.7+1316_weekly_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/380137/ft2_4FGL_J0244.7+1316_weekly_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/380137/ltcube_687139201_687744001_4FGL_J0244.7+1316_weekly_bin741.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/380137/ft2_4FGL_J0244.7+1316_weekly_bin741.fits
.....................!
real 27.27
user 26.84
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380137/ft1_filtered_4FGL_J0244.7+1316_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/380137/ft2_4FGL_J0244.7+1316_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/380137/ltcube_687139201_687744001_4FGL_J0244.7+1316_weekly_bin741.fits outfile=/scratch/kocevski/380137/expmap_687139201_687744001_4FGL_J0244.7+1316_weekly_bin741.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/380137/ltcube_687139201_687744001_4FGL_J0244.7+1316_weekly_bin741.fits
.....................!
real 189.90
user 185.00
sys 4.53

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 156 point sources and 0 extended sources

Setting source of interest to:
4FGL J0244.7+1316 @ 41.192 13.2799

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/380137/ft1_filtered_4FGL_J0244.7+1316_weekly_bin741.fits scfile=/scratch/kocevski/380137/ft2_4FGL_J0244.7+1316_weekly_bin741.fits outfile=/scratch/kocevski/380137/cmap_687139201_687744001_4FGL_J0244.7+1316_weekly_bin741.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=41.192 yref=13.2799 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380137/ft1_filtered_4FGL_J0244.7+1316_weekly_bin741.fits scfile=/scratch/kocevski/380137/ft2_4FGL_J0244.7+1316_weekly_bin741.fits outfile=/scratch/kocevski/380137/cmap_HighResolution_687139201_687744001_4FGL_J0244.7+1316_weekly_bin741.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=41.192 yref=13.2799 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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/380137/ft1_filtered_4FGL_J0244.7+1316_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/380137/ft2_4FGL_J0244.7+1316_weekly_bin741.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/380137/Model_4FGL_J0244.7+1316_weekly_bin741.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/380137/ft1_filtered_4FGL_J0244.7+1316_weekly_bin741.fits.....................!
real 87.17
user 85.64
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/380137/ft1_filtered_4FGL_J0244.7+1316_weekly_bin741.fits', '/scratch/kocevski/380137/ft2_4FGL_J0244.7+1316_weekly_bin741.fits', expMap='/scratch/kocevski/380137/expmap_687139201_687744001_4FGL_J0244.7+1316_weekly_bin741.fits', expCube='/scratch/kocevski/380137/ltcube_687139201_687744001_4FGL_J0244.7+1316_weekly_bin741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/380137/Model_4FGL_J0244.7+1316_weekly_bin741.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0244.7+1316'

4FGL J0244.7+1316
   Spectrum: PowerLaw
270    Prefactor:  6.183e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
271        Index:  2.606e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  7.795e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/380137/ft1_filtered_4FGL_J0244.7+1316_weekly_bin741.fits
Spacecraft file(s): /scratch/kocevski/380137/ft2_4FGL_J0244.7+1316_weekly_bin741.fits
Exposure map: /scratch/kocevski/380137/expmap_687139201_687744001_4FGL_J0244.7+1316_weekly_bin741.fits
Exposure cube: /scratch/kocevski/380137/ltcube_687139201_687744001_4FGL_J0244.7+1316_weekly_bin741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/380137/Model_4FGL_J0244.7+1316_weekly_bin741.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) = 5925.28423814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55250       1.0000          .0000       .10000E+07
     2 'Prefactor '    .29199E-07   1.0000          .0000       .10000E+07
     3 'norm      '    11.486       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.6111       1.0000          .0000       .10000E+07
     5 'Prefactor '    17.659       1.0000          .0000       .10000E+07
     6 'Prefactor '    .92132       1.0000          .0000       .10000E+07
     7 'Prefactor '    16.363       1.0000          .0000       .10000E+07
     8 'Prefactor '    67.322       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.7238       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.6004       1.0000          .0000       .10000E+07
    11 'Prefactor '    17.470       1.0000          .0000       .10000E+07
    12 'norm      '    .28449       1.0000          .0000       .10000E+07
    13 'Prefactor '    .67853E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .24383E-05   1.0000          .0000       .10000E+07
    15 'norm      '    .28033E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    .24912       1.0000          .0000       .10000E+07
    17 'Prefactor '    .19998E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    15.823       1.0000          .0000       .10000E+07
    19 'Prefactor '    19.132       1.0000          .0000       .10000E+07
    20 'Prefactor '    5.3061       1.0000          .0000       .10000E+07
    21 'norm      '    5.1875       1.0000          .0000       .10000E+07
    22 'norm      '    .10009E-06   1.0000          .0000       .10000E+07
    23 'norm      '    3.6737       1.0000          .0000       .10000E+07
    24 'Prefactor '    1.3397       1.0000          .0000       .10000E+07
    25 'norm      '    1.6471       1.0000          .0000       .10000E+07
    26 'Prefactor '    1.0521       1.0000          .0000       .10000E+07
    27 'Prefactor '    .59759E-04   1.0000          .0000       .10000E+07
    28 'Prefactor '    .42023E-03   1.0000          .0000       .10000E+07
    29 'Normalizat'    .71014       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .99057       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5925.046     FROM MIGRAD    STATUS=CONVERGED    231 CALLS     2918 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72077        21.882       -.80941E-06   -.17586E-02
   2  Prefactor      .0000        .94865       -.14406E-06** at limit **
   3  norm          11.413        7.4393       -.11946E-06    .46465E-03
   4  Prefactor     1.6334        3.3601       -.75252E-07    .63055E-03
   5  Prefactor     16.878        31.780       -.91747E-06   -.38137E-02
   6  Prefactor     .11600E-05    135.05       -.55702E-06** at limit **
   7  Prefactor     16.440        2.7380       -.12926E-06   -.90852E-02
   8  Prefactor     71.940        98.640       -.20366E-05   -.16622E-02
   9  Prefactor     4.4835        12.514       -.20756E-06   -.63984E-02
  10  Prefactor     2.7421        3.3332        .17465E-07   -.52469E-01
  11  Prefactor     17.723        6.4230       -.68416E-07   -.13721E-01
  12  norm          .28297        .63405       -.67012E-07    .16291E-02
  13  Prefactor     .73330E-07    36.163       -.83848E-06** at limit **
  14  Prefactor     .16653E-09    11.201        .32557E-06** at limit **
  15  norm           .0000        5.2198       -.35022E-06** at limit **
  16  Prefactor     .28031E-03    45.508        .49494E-06** at limit **
  17  Prefactor     .80491E-08    20.087        .46543E-06** at limit **
  18  Prefactor     16.258        14.351        .42837E-06   -.16671E-01
  19  Prefactor     19.917        4.7070       -.32667E-07   -.14617E-01
  20  Prefactor     5.4161        7.9293       -.52314E-07   -.86977E-03
  21  norm          5.0919        8.6642       -.11657E-06   -.29824E-03
  22  norm           .0000        4.0231        .40624E-06** at limit **
  23  norm          3.6814        4.8149       -.71828E-07    .89981E-04
  24  Prefactor     1.3355        4.7324       -.21842E-06   -.22615E-04
  25  norm          1.6353        12.885        .17268E-05   -.15024E-02
  26  Prefactor     1.0595        2.8130        .13511E-07   -.44120E-03
  27  Prefactor      .0000        3.7753       -.12165E-06** at limit **
  28  Prefactor     .10658E-07    30.531       -.36751E-06** at limit **
  29  Normalizat    .70923        .28564        .43899E-05    .16756E-04
  30  Prefactor     .99013        .10447       -.29600E-05    .30031E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.720767
  Prefactor  = 0
  norm       = 11.413
  Prefactor  = 1.63343
  Prefactor  = 16.8782
  Prefactor  = 1.15996e-06
  Prefactor  = 16.4397
  Prefactor  = 71.9397
  Prefactor  = 4.48347
  Prefactor  = 2.74206
  Prefactor  = 17.7233
  norm       = 0.282969
  Prefactor  = 7.33302e-08
  Prefactor  = 1.66533e-10
  norm       = 0
  Prefactor  = 0.000280308
  Prefactor  = 8.04912e-09
  Prefactor  = 16.2581
  Prefactor  = 19.9171
  Prefactor  = 5.41608
  norm       = 5.09194
  norm       = 0
  norm       = 3.68142
  Prefactor  = 1.33554
  norm       = 1.63535
  Prefactor  = 1.05948
  Prefactor  = 0
  Prefactor  = 1.06581e-08
  Normalizat = 0.709234
  Prefactor  = 0.990134
 **********
 **   18 **HESSE 
 **********

 FCN=   5925.046     FROM HESSE     STATUS=OK           668 CALLS     3586 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72077        21.855        .73595E-03   -1.5691    
   2  Prefactor      .0000        .94962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.413        7.4563        .29534E-03   -1.5640    
   4  Prefactor     1.6334        3.4210        .83417E-03   -1.5682    
   5  Prefactor     16.878        32.611        .23806E-03   -1.5626    
   6  Prefactor     .11600E-05    139.30        .44297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.440        91.602        .24733E-03   -1.5627    
   8  Prefactor     71.940        98.557        .12188E-03   -1.5538    
   9  Prefactor     4.4835        15.972        .46273E-03   -1.5666    
  10  Prefactor     2.7421        34.206        .63241E-03   -1.5675    
  11  Prefactor     17.723        23.773        .23935E-03   -1.5624    
  12  norm          .28297        .87334        .20821E-02   -1.5697    
  13  Prefactor     .73330E-07    36.850        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .16653E-09    11.205        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        5.2172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .28031E-03    45.842        .12686E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .80491E-08    20.178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.258        14.479        .25152E-03   -1.5627    
  19  Prefactor     19.917        28.426        .22871E-03   -1.5619    
  20  Prefactor     5.4161        7.9765        .43608E-03   -1.5661    
  21  norm          5.0919        8.6708        .44113E-03   -1.5663    
  22  norm           .0000        4.0225        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.6814        4.8217        .52673E-03   -1.5670    
  24  Prefactor     1.3355        4.7953        .94679E-03   -1.5685    
  25  norm          1.6353        13.133        .82256E-03   -1.5682    
  26  Prefactor     1.0595        3.2326        .47720E-02   -1.5687    
  27  Prefactor      .0000        3.7724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10658E-07    30.663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .70923        .27710        .10360       -1.0353    
  30  Prefactor     .99013        .97385E-01    .33744E-01   -.93059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30775e-06
Minuit parameter uncertainties:
  1  7.93796
  2  3.16061e-06
  3  7.45632
  4  3.42101
  5  32.6118
  6  0.0254234
  7  77.614
  8  98.5595
  9  15.9725
  10  19.3696
  11  23.7732
  12  0.873341
  13  0.00328796
  14  8.05215e-05
  15  1.74938e-05
  16  0.226717
  17  0.000806028
  18  14.4793
  19  28.4266
  20  7.97647
  21  8.67084
  22  4.6098e-06
  23  4.82175
  24  4.79536
  25  9.26886
  26  3.23265
  27  5.25288e-06
  28  0.0011425
  29  0.277652
  30  0.0974019
Done.

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

Extracting fit parameters...

4FGL J0244.7+1316
   Spectrum: PowerLaw
270    Prefactor:  8.049e-09  8.060e-04  0.000e+00  1.000e+06 ( 1.000e-13)
271        Index:  2.606e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  7.795e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
494    Prefactor:  9.901e-01  9.740e-02  0.000e+00  1.000e+01 ( 1.000e+00)
495        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
496        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
493   Normalization:  7.092e-01  2.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 41.192 13.280
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/380137/likelihoodResults_687139201_687744001_4FGL_J0244.7+1316_weekly_bin741.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) = 5925.06958149
delta logL = -0.0236835624655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5925.04589819
delta logL = -2.69501470029e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43625E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.6457       1.0000          .0000       10.000    
     3 'Normalizat'    .70940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99008       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5925.046     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      289 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    .46902E-01    .42118E-03** at limit **
   2  Index         3.7332        6.5389        .50000        .15916E-09
   3  Normalizat    .70923        .64126E-03    .10360        .44098E-04
   4  Prefactor     .99013        .24396E-03    .33744E-01   -.30476E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Index      = 3.73322
  Normalizat = 0.709235
  Prefactor  = 0.990134
 **********
 **   18 **HESSE 
 **********

 FCN=   5925.046     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      322 TOTAL
                     EDM=   .86E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    .31000        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7332        6.3737        .50000       -.25615    
   3  Normalizat    .70923        .16418E-02    .45931E-03   -1.0353    
   4  Prefactor     .99013        .62693E-03    .14911E-03   -.93059    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.58291e-13
Minuit parameter uncertainties:
  1  1.89858e-05
  2  24079.1
  3  0.0016418
  4  0.000626928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380137': 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) = 5925.04589792
delta logL = 1.72803993337e-10

Extracting fit parameters...

4FGL J0244.7+1316
   Spectrum: PowerLaw
270    Prefactor:  2.776e-10  1.899e-05  0.000e+00  1.000e+06 ( 1.000e-13)
271        Index:  3.733e+00  2.408e+04  0.000e+00  1.000e+01 (-1.000e+00)
272        Scale:  7.795e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
494    Prefactor:  9.901e-01  6.269e-04  0.000e+00  1.000e+01 ( 1.000e+00)
495        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
496        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
493   Normalization:  7.092e-01  1.642e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 41.192 13.280

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/380137/cmap_HighResolution_687139201_687744001_4FGL_J0244.7+1316_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.62e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2022-10-18 00:54:32.673578', job_id='380137', GAL2='0.99', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1666079672.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.73e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='741' AND source_name='4FGL J0244.7+1316' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 00:54:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 380137: <4FGL_J0244.7+1316_weekly_bin741> in cluster <slac> Done

Job <4FGL_J0244.7+1316_weekly_bin741> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct 18 00:40:23 2022
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 00:40:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 00:40:25 2022
Terminated at Tue Oct 18 00:54:33 2022
Results reported at Tue Oct 18 00:54:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0244.7+1316_weekly_bin741 41.192 13.2799 687139201 687744001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0244.7+1316 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   751.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            850 sec.

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

