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


Performing analysis on: 4FGL_J0239.5+1326_monthly_bin170
RA = 39.8847, Dec = 13.4366
tmin = 677635201, tmax = 680227201
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='84890', job_status='RUN', time_executed='2022-07-23 00:44:10.640526', time_epoch_executed='1658562250.64' WHERE source_name='4FGL J0239.5+1326' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/84890

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/84890/ft1_4FGL_J0239.5+1326_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/84890/ft2_4FGL_J0239.5+1326_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/84890/ft1_4FGL_J0239.5+1326_monthly_bin170.fits outfile=/scratch/kocevski/84890/ft1_filteredMKT_4FGL_J0239.5+1326_monthly_bin170.fits ra=39.8847 dec=13.4366 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.84
user 31.56
sys 0.65

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/84890/ft2_4FGL_J0239.5+1326_monthly_bin170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/84890/ft2_4FGL_J0239.5+1326_monthly_bin170.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/84890/ft1_filteredMKT_4FGL_J0239.5+1326_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/84890/ft1_filtered_4FGL_J0239.5+1326_monthly_bin170.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.85
user 0.65
sys 0.18

Number of photons that the gtmktime cut: 9739

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/84890/ft1_filtered_4FGL_J0239.5+1326_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/84890/ft2_4FGL_J0239.5+1326_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/84890/ltcube_677635201_680227201_4FGL_J0239.5+1326_monthly_bin170.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/84890/ft2_4FGL_J0239.5+1326_monthly_bin170.fits
.....................!
real 109.64
user 108.97
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/84890/ft1_filtered_4FGL_J0239.5+1326_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/84890/ft2_4FGL_J0239.5+1326_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/84890/ltcube_677635201_680227201_4FGL_J0239.5+1326_monthly_bin170.fits outfile=/scratch/kocevski/84890/expmap_677635201_680227201_4FGL_J0239.5+1326_monthly_bin170.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/84890/ltcube_677635201_680227201_4FGL_J0239.5+1326_monthly_bin170.fits
.....................!
real 191.36
user 186.51
sys 4.51

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

Setting source of interest to:
4FGL J0239.5+1326 @ 39.8847 13.4366

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/84890/ft1_filtered_4FGL_J0239.5+1326_monthly_bin170.fits scfile=/scratch/kocevski/84890/ft2_4FGL_J0239.5+1326_monthly_bin170.fits outfile=/scratch/kocevski/84890/cmap_677635201_680227201_4FGL_J0239.5+1326_monthly_bin170.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=39.8847 yref=13.4366 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.79
user 0.63
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/84890/ft1_filtered_4FGL_J0239.5+1326_monthly_bin170.fits scfile=/scratch/kocevski/84890/ft2_4FGL_J0239.5+1326_monthly_bin170.fits outfile=/scratch/kocevski/84890/cmap_HighResolution_677635201_680227201_4FGL_J0239.5+1326_monthly_bin170.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=39.8847 yref=13.4366 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 1.89
user 0.63
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/84890/ft1_filtered_4FGL_J0239.5+1326_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/84890/ft2_4FGL_J0239.5+1326_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/84890/Model_4FGL_J0239.5+1326_monthly_bin170.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/84890/ft1_filtered_4FGL_J0239.5+1326_monthly_bin170.fits.....................!
real 1235.82
user 1231.96
sys 1.89

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/84890/ft1_filtered_4FGL_J0239.5+1326_monthly_bin170.fits', '/scratch/kocevski/84890/ft2_4FGL_J0239.5+1326_monthly_bin170.fits', expMap='/scratch/kocevski/84890/expmap_677635201_680227201_4FGL_J0239.5+1326_monthly_bin170.fits', expCube='/scratch/kocevski/84890/ltcube_677635201_680227201_4FGL_J0239.5+1326_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/84890/Model_4FGL_J0239.5+1326_monthly_bin170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0239.5+1326'

4FGL J0239.5+1326
   Spectrum: PowerLaw
248    Prefactor:  3.221e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  2.311e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/84890/ft1_filtered_4FGL_J0239.5+1326_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/84890/ft2_4FGL_J0239.5+1326_monthly_bin170.fits
Exposure map: /scratch/kocevski/84890/expmap_677635201_680227201_4FGL_J0239.5+1326_monthly_bin170.fits
Exposure cube: /scratch/kocevski/84890/ltcube_677635201_680227201_4FGL_J0239.5+1326_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/84890/Model_4FGL_J0239.5+1326_monthly_bin170.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) = 104746.349898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0102       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3450       1.0000         .10000E-03   10000.    
     3 'norm      '    10.098       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3983       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9667       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5603       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5593       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4191       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .76140E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4236       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5349       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .33238       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2995       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .96606       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0882       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10251E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3532       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.1881       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.1242       1.0000         .10000E-03   10000.    
    26 'norm      '    15.267       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.6125       1.0000         .10000E-03   10000.    
    28 'norm      '    .11017E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.1538       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .44816       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1773       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .98076       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   104746.3     FROM MIGRAD    STATUS=CONVERGED    908 CALLS     4064 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0103        1.6502        .78861E-07   -.88837E-03
   2  Prefactor     2.3457        .72614       -.84162E-08   -.30796E-03
   3  norm          10.098        1.5998        .56320E-07   -.84000E-04
   4  Prefactor     .10000E-03    .24497        .21134E-07** at limit **
   5  Prefactor     3.3984        .74464       -.46664E-08   -.10620E-03
   6  Prefactor     5.9675        5.8582       -.14418E-07    .56973E-05
   7  Prefactor     2.5587        4.6928        .18872E-06   -.31271E-03
   8  Prefactor     1.5601        1.9324       -.17139E-06   -.58568E-03
   9  Prefactor     .10000E-03    3.7718       -.24077E-05** at limit **
  10  Prefactor     6.4201        11.833        .32017E-06   -.73473E-04
  11  Prefactor     .10008E-03    .43681        .19634E-06** at limit **
  12  Prefactor     4.4232        4.3932       -.13293E-06    .24279E-05
  13  Prefactor     6.5349        2.6063       -.21986E-06   -.50169E-04
  14  Prefactor     .33314        .91884       -.18982E-07   -.27390E-04
  15  norm          1.2995        .19480        .51172E-08   -.43604E-03
  16  Prefactor     .10000E-03    3.6913        .20778E-05** at limit **
  17  Prefactor     .96656        1.6322       -.60180E-07    .10566E-03
  18  norm          .10000E-03    .79282        .12323E-07** at limit **
  19  Prefactor     3.0884        3.9822       -.30160E-06   -.36286E-04
  20  Prefactor     .10002E-03    2.7360       -.31588E-06** at limit **
  21  Prefactor     1.3537        2.2744       -.30836E-06   -.20374E-03
  22  Prefactor     5.1880        3.7593       -.17439E-06    .10269E-04
  23  Prefactor     .10000E-03    .27391        .45574E-08** at limit **
  24  norm          .10000E-03    .49561        .18902E-08** at limit **
  25  norm          7.1241        2.4778       -.15799E-06   -.91627E-05
  26  norm          15.267        1.5935        .72830E-07    .74134E-04
  27  Prefactor     2.6137        1.4210       -.10608E-07   -.11729E-03
  28  norm          .10000E-03    .25128       -.10509E-07** at limit **
  29  Prefactor     .10000E-03    8.4167       -.81015E-06** at limit **
  30  Prefactor     2.1539        .97023       -.42268E-08   -.48122E-04
  31  Prefactor     .44766        1.1007       -.19164E-07   -.11271E-03
  32  Normalizat    1.1772        .64502E-01    .46989E-07   -.40778E-04
  33  Prefactor     .98077        .25163E-01    .12013E-08    .28606E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.01034
  Prefactor  = 2.34565
  norm       = 10.0981
  Prefactor  = 0.000100001
  Prefactor  = 3.39841
  Prefactor  = 5.9675
  Prefactor  = 2.55866
  Prefactor  = 1.56012
  Prefactor  = 0.0001
  Prefactor  = 6.42005
  Prefactor  = 0.000100077
  Prefactor  = 4.42324
  Prefactor  = 6.53486
  Prefactor  = 0.333144
  norm       = 1.29949
  Prefactor  = 0.0001
  Prefactor  = 0.966557
  norm       = 0.0001
  Prefactor  = 3.08835
  Prefactor  = 0.00010002
  Prefactor  = 1.35366
  Prefactor  = 5.188
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.1241
  norm       = 15.2672
  Prefactor  = 2.61374
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.15389
  Prefactor  = 0.447662
  Normalizat = 1.17722
  Prefactor  = 0.980767
 **********
 **   18 **HESSE 
 **********

 FCN=   104746.3     FROM HESSE     STATUS=OK           747 CALLS     4811 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0103        1.7784        .81891E-03   -1.5218    
   2  Prefactor     2.3457        .72627        .14669E-03   -1.5402    
   3  norm          10.098        1.5989        .12609E-03   -1.5072    
   4  Prefactor     .10000E-03    .36869        .60364E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.3984        .74358        .12317E-03   -1.5339    
   6  Prefactor     5.9675        5.8482        .16439E-03   -1.5219    
   7  Prefactor     2.5587        7.8439        .12757E-02   -1.5388    
   8  Prefactor     1.5601        1.9770        .34080E-03   -1.5458    
   9  Prefactor     .10000E-03    3.7664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.4201        11.982        .79207E-03   -1.5201    
  11  Prefactor     .10008E-03    .94140        .60822E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.4232        4.3752        .19147E-03   -1.5287    
  13  Prefactor     6.5349        2.6058        .15699E-03   -1.5197    
  14  Prefactor     .33314        7.5665        .42733E-02   -1.5593    
  15  norm          1.2995        .20135        .47307E-04   -1.5480    
  16  Prefactor     .10000E-03    3.6961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .96656        4.0139        .50843E-02   -1.5511    
  18  norm          .10000E-03    .80143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.0884        3.9555        .23078E-03   -1.5356    
  20  Prefactor     .10002E-03    2.7845        .14393       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.3537        2.3444        .37592E-03   -1.5475    
  22  Prefactor     5.1880        3.7570        .17649E-03   -1.5252    
  23  Prefactor     .10000E-03    .74309        .32685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .49906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.1241        2.4753        .15029E-03   -1.5174    
  26  norm          15.267        1.5931        .10251E-03   -1.4926    
  27  Prefactor     2.6137        1.4205        .25236E-03   -1.5385    
  28  norm          .10000E-03    1.5981        .31170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    8.4206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.1539        .97065        .20749E-03   -1.5414    
  31  Prefactor     .44766        4.2326        .52602E-02   -1.5574    
  32  Normalizat    1.1772        .74413E-01    .37652E-03   -.87310    
  33  Prefactor     .98077        .28365E-01    .17087E-03   -.93373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4824e-06
Minuit parameter uncertainties:
  1  1.77845
  2  0.726271
  3  1.5989
  4  3.52823e-05
  5  0.743585
  6  5.84872
  7  7.84701
  8  1.97712
  9  8.69439e-07
  10  11.9868
  11  0.000538301
  12  4.37554
  13  2.60582
  14  3.17533
  15  0.201353
  16  8.40023e-08
  17  3.93964
  18  8.65021e-07
  19  3.95588
  20  0.000476362
  21  2.3446
  22  3.75716
  23  7.49032e-08
  24  3.45079e-08
  25  2.47535
  26  1.59306
  27  1.42051
  28  1.43162e-06
  29  8.37369e-08
  30  0.970656
  31  2.75295
  32  0.0744193
  33  0.0283655
Done.

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

Extracting fit parameters...

4FGL J0239.5+1326
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  8.400e-08  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  2.311e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.808e-01  2.837e-02  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.177e+00  7.442e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 39.885 13.437
Photon Flux Upper Limit: 1.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.85e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/84890/likelihoodResults_677635201_680227201_4FGL_J0239.5+1326_monthly_bin170.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) = 104746.254048
delta logL = -0.00128999837034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 104746.252758
delta logL = 3.24944267049e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   104746.3     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.140        .90712E-02** at limit **
   2  Index         2.1645        8.3370        .50000        .21744E-04
   3  Normalizat    1.1772        .59018E-02    .85035E-01    .27527E-03
   4  Prefactor     .98077        .24824E-02    .46026E-01    .25635E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16452
  Normalizat = 1.17722
  Prefactor  = 0.980767
 **********
 **   18 **HESSE 
 **********

 FCN=   104746.3     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    352.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1645        8.4923        .50000       -.60298    
   3  Normalizat    1.1772        .18937E-01    .37652E-03   -.87310    
   4  Prefactor     .98077        .79795E-02    .17087E-03   -.93373    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.55325e-08
Minuit parameter uncertainties:
  1  2.07884e-06
  2  40.3615
  3  0.0189373
  4  0.00797949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/84890': 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) = 104746.252758
delta logL = 1.00684701465e-07

Extracting fit parameters...

4FGL J0239.5+1326
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  2.079e-06  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.165e+00  4.036e+01  0.000e+00  1.000e+01 (-1.000e+00)
250        Scale:  2.311e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.808e-01  7.979e-03  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.177e+00  1.894e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 39.885 13.437

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/84890/cmap_HighResolution_677635201_680227201_4FGL_J0239.5+1326_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.85e-04', job_status='DONE', photon_flux_upper_limit='1.29e-08', time_completed='2022-07-23 03:29:33.900600', job_id='84890', GAL2='0.98', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1658572173.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='170' AND source_name='4FGL J0239.5+1326' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 03:29:33 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 84890: <4FGL_J0239.5+1326_monthly_bin170> in cluster <slac> Done

Job <4FGL_J0239.5+1326_monthly_bin170> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jul 23 00:40:41 2022
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:40:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:40:43 2022
Terminated at Sat Jul 23 03:29:35 2022
Results reported at Sat Jul 23 03:29:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0239.5+1326_monthly_bin170 39.8847 13.4366 677635201 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0239.5+1326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9901.00 sec.
    Max Memory :                                 1262 MB
    Average Memory :                             425.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10131 sec.
    Turnaround time :                            10134 sec.

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

