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


Performing analysis on: 4FGL_J1440.9+0609_weekly_bin759
RA = 220.242, Dec = 6.1631
tmin = 698025601, tmax = 698630401
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='593528', job_status='RUN', time_executed='2023-02-21 03:47:01.957052', time_epoch_executed='1676980021.96' WHERE source_name='4FGL J1440.9+0609' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593528

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593528/ft1_4FGL_J1440.9+0609_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593528/ft2_4FGL_J1440.9+0609_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593528/ft1_4FGL_J1440.9+0609_weekly_bin759.fits outfile=/scratch/kocevski/593528/ft1_filteredMKT_4FGL_J1440.9+0609_weekly_bin759.fits ra=220.242 dec=6.1631 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.62
user 8.25
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/593528/ft2_4FGL_J1440.9+0609_weekly_bin759.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/593528/ft2_4FGL_J1440.9+0609_weekly_bin759.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/593528/ft1_filteredMKT_4FGL_J1440.9+0609_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/593528/ft1_filtered_4FGL_J1440.9+0609_weekly_bin759.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.56
user 0.38
sys 0.15

Number of photons that the gtmktime cut: 1432

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593528/ft1_filtered_4FGL_J1440.9+0609_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/593528/ft2_4FGL_J1440.9+0609_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/593528/ltcube_698025601_698630401_4FGL_J1440.9+0609_weekly_bin759.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/593528/ft2_4FGL_J1440.9+0609_weekly_bin759.fits
.....................!
real 27.26
user 26.84
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593528/ft1_filtered_4FGL_J1440.9+0609_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/593528/ft2_4FGL_J1440.9+0609_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/593528/ltcube_698025601_698630401_4FGL_J1440.9+0609_weekly_bin759.fits outfile=/scratch/kocevski/593528/expmap_698025601_698630401_4FGL_J1440.9+0609_weekly_bin759.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/593528/ltcube_698025601_698630401_4FGL_J1440.9+0609_weekly_bin759.fits
.....................!
real 190.47
user 185.86
sys 4.02

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

Setting source of interest to:
4FGL J1440.9+0609 @ 220.242 6.1631

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/593528/ft1_filtered_4FGL_J1440.9+0609_weekly_bin759.fits scfile=/scratch/kocevski/593528/ft2_4FGL_J1440.9+0609_weekly_bin759.fits outfile=/scratch/kocevski/593528/cmap_698025601_698630401_4FGL_J1440.9+0609_weekly_bin759.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=220.242 yref=6.1631 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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/593528/ft1_filtered_4FGL_J1440.9+0609_weekly_bin759.fits scfile=/scratch/kocevski/593528/ft2_4FGL_J1440.9+0609_weekly_bin759.fits outfile=/scratch/kocevski/593528/cmap_HighResolution_698025601_698630401_4FGL_J1440.9+0609_weekly_bin759.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=220.242 yref=6.1631 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/593528/ft1_filtered_4FGL_J1440.9+0609_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/593528/ft2_4FGL_J1440.9+0609_weekly_bin759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/593528/Model_4FGL_J1440.9+0609_weekly_bin759.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/593528/ft1_filtered_4FGL_J1440.9+0609_weekly_bin759.fits.....................!
real 100.10
user 98.53
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/593528/ft1_filtered_4FGL_J1440.9+0609_weekly_bin759.fits', '/scratch/kocevski/593528/ft2_4FGL_J1440.9+0609_weekly_bin759.fits', expMap='/scratch/kocevski/593528/expmap_698025601_698630401_4FGL_J1440.9+0609_weekly_bin759.fits', expCube='/scratch/kocevski/593528/ltcube_698025601_698630401_4FGL_J1440.9+0609_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/593528/Model_4FGL_J1440.9+0609_weekly_bin759.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1440.9+0609'

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  8.135e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
227        Index:  2.120e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
228        Scale:  2.818e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/593528/ft1_filtered_4FGL_J1440.9+0609_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/593528/ft2_4FGL_J1440.9+0609_weekly_bin759.fits
Exposure map: /scratch/kocevski/593528/expmap_698025601_698630401_4FGL_J1440.9+0609_weekly_bin759.fits
Exposure cube: /scratch/kocevski/593528/ltcube_698025601_698630401_4FGL_J1440.9+0609_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/593528/Model_4FGL_J1440.9+0609_weekly_bin759.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) = 15538.468134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32190E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .15473E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    48.927       1.0000          .0000       .10000E+07
     4 'norm      '    13.988       1.0000          .0000       .10000E+07
     5 'norm      '    8.2810       1.0000          .0000       .10000E+07
     6 'Prefactor '    .29512E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .47746E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .42783E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .73679E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .54902E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .23170E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.4059       1.0000          .0000       .10000E+07
    13 'norm      '    .28094       1.0000          .0000       .10000E+07
    14 'norm      '    2.1920       1.0000          .0000       .10000E+07
    15 'norm      '    .21649E-08   1.0000          .0000       .10000E+07
    16 'norm      '    .86327       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.4685       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .79842       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15538.31     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     1031 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27034E-07    7.5713       -.20330E-07** at limit **
   2  Prefactor     .12879E-07    6.4678        .62975E-07** at limit **
   3  Prefactor     48.073        9.1786       -.23898E-07    .98512E-01
   4  norm          14.106        7.2864        .18083E-08    .81161E-04
   5  norm          8.2743        1.0625       -.19649E-08    .91961E-03
   6  Prefactor     .27756E-07    4.5613       -.10080E-06** at limit **
   7  Prefactor     .10769E-07    13.419       -.25369E-07** at limit **
   8  Prefactor     .30687E-06    10.904       -.32658E-07** at limit **
   9  norm          .49888E-06    5.5873        .33708E-07** at limit **
  10  Prefactor     .19540E-07    4.0920        .40034E-07** at limit **
  11  Prefactor      .0000        4.1017       -.82160E-08** at limit **
  12  Prefactor     6.3763        1.0786       -.31885E-08    .15152E-02
  13  norm          .28090        .97526E-01    .16157E-08    .49717E-02
  14  norm          2.1912        1.2781       -.47145E-07   -.69696E-02
  15  norm           .0000        1.4001        .39096E-07** at limit **
  16  norm          .86291        1.0968        .95829E-08    .22468E-03
  17  Normalizat    1.4693        .15717        .11259E-05   -.17298E-04
  18  Prefactor     .79821        .94613E-01   -.86051E-06   -.10358E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.70339e-08
  Prefactor  = 1.28786e-08
  Prefactor  = 48.0727
  norm       = 14.1059
  norm       = 8.27426
  Prefactor  = 2.77556e-08
  Prefactor  = 1.07692e-08
  Prefactor  = 3.06866e-07
  norm       = 4.98879e-07
  Prefactor  = 1.95399e-08
  Prefactor  = 0
  Prefactor  = 6.37626
  norm       = 0.280898
  norm       = 2.19116
  norm       = 0
  norm       = 0.862914
  Normalizat = 1.46926
  Prefactor  = 0.798214
 **********
 **   18 **HESSE 
 **********

 FCN=   15538.31     FROM HESSE     STATUS=OK           278 CALLS     1309 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27034E-07    7.7282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .12879E-07    6.5581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     48.073        21.214        .14297E-03   -1.5569    
   4  norm          14.106        7.2838        .26755E-03   -1.5633    
   5  norm          8.2743        11.306        .34814E-03   -1.5650    
   6  Prefactor     .27756E-07    4.6964        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10769E-07    17.257        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .30687E-06    13.570        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .49888E-06    16.263        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .19540E-07    4.2136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        4.0946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.3763        14.507        .39632E-03   -1.5657    
  13  norm          .28090        .98434E-01    .49807E-03   -1.5697    
  14  norm          2.1912        1.2853        .69482E-03   -1.5678    
  15  norm           .0000        1.3984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .86291        1.1005        .48333E-03   -1.5689    
  17  Normalizat    1.4693        .13388        .60199E-01   -.78646    
  18  Prefactor     .79821        .79889E-01    .43697E-01   -.99794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61762e-07
Minuit parameter uncertainties:
  1  0.000914541
  2  0.000580896
  3  21.2138
  4  7.28385
  5  11.3063
  6  0.00072196
  7  0.000861432
  8  0.00408114
  9  0.00569669
  10  0.000573881
  11  6.91248e-06
  12  14.5066
  13  0.098434
  14  1.28534
  15  1.15159e-05
  16  1.10051
  17  0.133911
  18  0.0799006
Done.

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

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  3.069e-07  4.081e-03  0.000e+00  1.000e+06 ( 1.000e-14)
227        Index:  2.120e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
228        Scale:  2.818e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
486    Prefactor:  7.982e-01  7.990e-02  0.000e+00  1.000e+01 ( 1.000e+00)
487        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
488        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
485   Normalization:  1.469e+00  1.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 220.242 6.163
Photon Flux Upper Limit: 3.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/593528/likelihoodResults_698025601_698630401_4FGL_J1440.9+0609_weekly_bin759.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) = 15538.3477961
delta logL = -0.0359798573427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15536.091238
delta logL = 2.22057820252

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15536.09     FROM MIGRAD    STATUS=CONVERGED    127 CALLS      365 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12167E-01    .57470E-01    .15870E-03** at limit **
   2  Index         5.1100        1.0339        .90729E-01    .49610E-03
   3  Normalizat    1.3698        .30041E-01    .61942E-01    .85483E-04
   4  Prefactor     .83447        .18170E-01    .44164E-01    .10202E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0121671
  Index      = 5.10999
  Normalizat = 1.36976
  Prefactor  = 0.834467
 **********
 **   18 **HESSE 
 **********

 FCN=   15536.09     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      400 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12167E-01    .17057        .72578E-05   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.1100        2.3091        .31533E-02    .22000E-01
   3  Normalizat    1.3698        .11877        .27397E-03   -.81507    
   4  Prefactor     .83447        .70665E-01    .20555E-03   -.98470    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.42762e-07
Minuit parameter uncertainties:
  1  0.0911105
  2  2.40023
  3  0.118798
  4  0.0706731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593528': 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) = 15536.0912373
delta logL = 2.22057898206

Extracting fit parameters...

4FGL J1440.9+0609
   Spectrum: PowerLaw
226    Prefactor:  1.217e-02  9.111e-02  0.000e+00  1.000e+06 ( 1.000e-14)
227        Index:  5.110e+00  2.400e+00  0.000e+00  1.000e+01 (-1.000e+00)
228        Scale:  2.818e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
486    Prefactor:  8.345e-01  7.067e-02  0.000e+00  1.000e+01 ( 1.000e+00)
487        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
488        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
485   Normalization:  1.370e+00  1.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.72
Ra Dec: 220.242 6.163
Photon Index (Free Index): 5.11 +/- 2.40
Photon Flux (Free Index): 7.64e-08 +/- 3.87e-08
Energy Flux (Free Index): 1.01e-05 +/- 5.60e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/593528/cmap_HighResolution_698025601_698630401_4FGL_J1440.9+0609_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.02e-03', comment='SUCCESS', energy_flux2='1.01e-05', dlogl='2.22e+00', photon_flux2='7.64e-08', job_status='DONE', time_completed='2023-02-21 04:00:19.078309', photon_index_error2='2.40', photon_index2='5.11', ts='-0.00', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='3.98e-08', energy_flux_error2='5.60e-06', EG='1.47', time_epoch_completed='1676980819.08', return_code='0', job_id='593528', GAL2='0.83', EG2='1.37', return_code2='102', photon_flux_error2='3.87e-08', ts2='4.72', photon_index='2.12' WHERE bin_id='759' AND source_name='4FGL J1440.9+0609' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 04:00:19 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 593528: <4FGL_J1440.9+0609_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1440.9+0609_weekly_bin759> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Feb 21 03:45:27 2023
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:45:28 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:45:28 2023
Terminated at Tue Feb 21 04:00:19 2023
Results reported at Tue Feb 21 04:00:19 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1440.9+0609_weekly_bin759 220.242 6.1631 698025601 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1440.9+0609 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   797.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            892 sec.

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

