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


Performing analysis on: 4FGL_J2144.2+3132_daily_bin1708
RA = 326.065, Dec = 31.5457
tmin = 682041601, tmax = 682300801
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='236003', job_status='RUN', time_executed='2022-09-16 23:26:45.566739', time_epoch_executed='1663396005.57' WHERE source_name='4FGL J2144.2+3132' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236003

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236003/ft1_4FGL_J2144.2+3132_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236003/ft2_4FGL_J2144.2+3132_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236003/ft1_4FGL_J2144.2+3132_daily_bin1708.fits outfile=/scratch/kocevski/236003/ft1_filteredMKT_4FGL_J2144.2+3132_daily_bin1708.fits ra=326.065 dec=31.5457 rad=12.0 tmin=682041601.0 tmax=682300801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.98
user 3.75
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/236003/ft2_4FGL_J2144.2+3132_daily_bin1708.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/236003/ft2_4FGL_J2144.2+3132_daily_bin1708.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/236003/ft1_filteredMKT_4FGL_J2144.2+3132_daily_bin1708.fits evtable="EVENTS" outfile="/scratch/kocevski/236003/ft1_filtered_4FGL_J2144.2+3132_daily_bin1708.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 1332

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/236003/ft1_filtered_4FGL_J2144.2+3132_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/236003/ft2_4FGL_J2144.2+3132_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/236003/ltcube_682041601_682300801_4FGL_J2144.2+3132_daily_bin1708.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/236003/ft2_4FGL_J2144.2+3132_daily_bin1708.fits
.....................!
real 12.68
user 12.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236003/ft1_filtered_4FGL_J2144.2+3132_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/236003/ft2_4FGL_J2144.2+3132_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/236003/ltcube_682041601_682300801_4FGL_J2144.2+3132_daily_bin1708.fits outfile=/scratch/kocevski/236003/expmap_682041601_682300801_4FGL_J2144.2+3132_daily_bin1708.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/236003/ltcube_682041601_682300801_4FGL_J2144.2+3132_daily_bin1708.fits
.....................!
real 191.64
user 186.09
sys 5.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
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 186 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2144.2+3132 @ 326.065 31.5457

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/236003/ft1_filtered_4FGL_J2144.2+3132_daily_bin1708.fits scfile=/scratch/kocevski/236003/ft2_4FGL_J2144.2+3132_daily_bin1708.fits outfile=/scratch/kocevski/236003/cmap_682041601_682300801_4FGL_J2144.2+3132_daily_bin1708.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=326.065 yref=31.5457 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236003/ft1_filtered_4FGL_J2144.2+3132_daily_bin1708.fits scfile=/scratch/kocevski/236003/ft2_4FGL_J2144.2+3132_daily_bin1708.fits outfile=/scratch/kocevski/236003/cmap_HighResolution_682041601_682300801_4FGL_J2144.2+3132_daily_bin1708.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=326.065 yref=31.5457 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/236003/ft1_filtered_4FGL_J2144.2+3132_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/236003/ft2_4FGL_J2144.2+3132_daily_bin1708.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/236003/Model_4FGL_J2144.2+3132_daily_bin1708.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 Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/236003/ft1_filtered_4FGL_J2144.2+3132_daily_bin1708.fits.....................!
real 221.04
user 219.20
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/236003/ft1_filtered_4FGL_J2144.2+3132_daily_bin1708.fits', '/scratch/kocevski/236003/ft2_4FGL_J2144.2+3132_daily_bin1708.fits', expMap='/scratch/kocevski/236003/expmap_682041601_682300801_4FGL_J2144.2+3132_daily_bin1708.fits', expCube='/scratch/kocevski/236003/ltcube_682041601_682300801_4FGL_J2144.2+3132_daily_bin1708.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/236003/Model_4FGL_J2144.2+3132_daily_bin1708.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2144.2+3132'

4FGL J2144.2+3132
   Spectrum: PowerLaw
391    Prefactor:  1.749e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
392        Index:  2.112e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.961e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/236003/ft1_filtered_4FGL_J2144.2+3132_daily_bin1708.fits
Spacecraft file(s): /scratch/kocevski/236003/ft2_4FGL_J2144.2+3132_daily_bin1708.fits
Exposure map: /scratch/kocevski/236003/expmap_682041601_682300801_4FGL_J2144.2+3132_daily_bin1708.fits
Exposure cube: /scratch/kocevski/236003/ltcube_682041601_682300801_4FGL_J2144.2+3132_daily_bin1708.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/236003/Model_4FGL_J2144.2+3132_daily_bin1708.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) = 13538.0408593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30911E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    54.792       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.383       1.0000          .0000       .10000E+07
     4 'Prefactor '    .19524E-05   1.0000          .0000       .10000E+07
     5 'norm      '    2.0953       1.0000          .0000       .10000E+07
     6 'norm      '    .13489E-07   1.0000          .0000       .10000E+07
     7 'norm      '    1.4907       1.0000          .0000       .10000E+07
     8 'Prefactor '    .31487E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .20370E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    7.6932       1.0000          .0000       .10000E+07
    11 'norm      '    .69389E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    40.578       1.0000          .0000       .10000E+07
    13 'norm      '    3.8310       1.0000          .0000       .10000E+07
    14 'Prefactor '    32.123       1.0000          .0000       .10000E+07
    15 'norm      '    3.0575       1.0000          .0000       .10000E+07
    16 'Normalizat'    .99193       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .96285       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13537.98     FROM MIGRAD    STATUS=CONVERGED    130 CALLS      988 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34417E-08    26.341        .12983E-06** at limit **
   2  Prefactor     49.996        51.468       -.73212E-06    .52970E-03
   3  Prefactor     14.629        18.013       -.33041E-06    .20724E-01
   4  Prefactor      .0000        1.4055        .16832E-07** at limit **
   5  norm          2.1015        2.9191       -.86076E-07    .12262E-03
   6  norm           .0000        1.1157        .23048E-07** at limit **
   7  norm          1.5236        10.056        .55290E-06   -.13840E-03
   8  Prefactor      .0000        2.4908       -.34491E-07** at limit **
   9  Prefactor     .10159E-07    31.494        .47769E-06** at limit **
  10  Prefactor     7.7313        5.9713        .22993E-06    .69045E-03
  11  norm           .0000        .26586        .20489E-07** at limit **
  12  Prefactor     44.763        39.892        .23930E-07    .51802E-02
  13  norm          3.8324        .91992        .96961E-08   -.71374E-03
  14  Prefactor     31.864        3.4189        .29891E-07    .17834    
  15  norm          3.0590        1.3611        .23330E-07   -.30216E-03
  16  Normalizat    .99094        .21803        .23501E-05    .22693E-06
  17  Prefactor     .96281        .62593E-01   -.11341E-05   -.12006E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.44169e-09
  Prefactor  = 49.9962
  Prefactor  = 14.6288
  Prefactor  = 0
  norm       = 2.10152
  norm       = 0
  norm       = 1.5236
  Prefactor  = 0
  Prefactor  = 1.01585e-08
  Prefactor  = 7.73128
  norm       = 0
  Prefactor  = 44.7632
  norm       = 3.83245
  Prefactor  = 31.8645
  norm       = 3.05899
  Normalizat = 0.990939
  Prefactor  = 0.962805
 **********
 **   18 **HESSE 
 **********

 FCN=   13537.98     FROM HESSE     STATUS=OK           261 CALLS     1249 TOTAL
                     EDM=   .96E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34417E-08    26.339        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     49.996        51.562        .13510E-03   -1.5567    
   3  Prefactor     14.629        18.326        .27354E-03   -1.5631    
   4  Prefactor      .0000        1.4058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1015        2.9382        .71278E-03   -1.5679    
   6  norm           .0000        1.1049        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5236        10.182        .87768E-03   -1.5683    
   8  Prefactor      .0000        2.4856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10159E-07    31.572        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.7313        5.9865        .36130E-03   -1.5652    
  11  norm           .0000        .26332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     44.763        39.925        .15700E-03   -1.5574    
  13  norm          3.8324        .92108        .51540E-03   -1.5669    
  14  Prefactor     31.864        18.177        .17646E-03   -1.5595    
  15  norm          3.0590        1.3601        .57993E-03   -1.5673    
  16  Normalizat    .99094        .20701        .11069       -.93335    
  17  Prefactor     .96281        .58149E-01    .32178E-01   -.93980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.61398e-07
Minuit parameter uncertainties:
  1  0.000602232
  2  51.562
  3  18.3263
  4  1.52489e-06
  5  2.93819
  6  1.79676e-07
  7  7.87732
  8  8.63068e-07
  9  0.00113316
  10  5.98652
  11  2.69026e-08
  12  39.9248
  13  0.921082
  14  18.1769
  15  1.36007
  16  0.207177
  17  0.0581532
Done.

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

Extracting fit parameters...

4FGL J2144.2+3132
   Spectrum: PowerLaw
391    Prefactor:  7.731e+00  5.987e+00  0.000e+00  1.000e+06 ( 1.000e-13)
392        Index:  2.112e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.961e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  9.628e-01  5.815e-02  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  9.909e-01  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.52
Ra Dec: 326.065 31.546
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 3.73e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.55e-05

TS (Fixed Index): 3.52
Ra Dec: 326.065 31.546
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/236003/likelihoodResults_682041601_682300801_4FGL_J2144.2+3132_daily_bin1708.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) = 13537.1454511
delta logL = 0.839037250862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13537.1407041
delta logL = 0.843784299481

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13537.14     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      249 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6381        376.31        .34023E-03   -.48251E-03
   2  Index         1.2950        5.3756        .32659       -.45878E-04
   3  Normalizat    1.0039        .21287        .11006        .40332E-04
   4  Prefactor     .96385        .42960E-01    .32166E-01    .48438E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.63813
  Index      = 1.29498
  Normalizat = 1.0039
  Prefactor  = 0.96385
 **********
 **   18 **HESSE 
 **********

 FCN=   13537.14     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6381        11.262        .13609E-04   -1.5649    
   2  Index         1.2950        .80548        .12827E-01   -.83456    
   3  Normalizat    1.0039        .21436        .48792E-03   -.92900    
   4  Prefactor     .96385        .62009E-01    .14214E-03   -.93944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50759e-12
Minuit parameter uncertainties:
  1  11.2617
  2  0.813411
  3  0.214544
  4  0.0620134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236003': 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) = 13537.1406992
delta logL = 0.843789174996

Extracting fit parameters...

4FGL J2144.2+3132
   Spectrum: PowerLaw
391    Prefactor:  8.638e+00  1.126e+01  0.000e+00  1.000e+06 ( 1.000e-13)
392        Index:  1.295e+00  8.134e-01  0.000e+00  1.000e+01 (-1.000e+00)
393        Scale:  1.961e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  9.639e-01  6.201e-02  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  1.004e+00  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.20
Ra Dec: 326.065 31.546
Photon Index (Free Index): 1.29 +/- 0.81
Photon Flux (Free Index): 1.20e-08 +/- 2.05e-08
Energy Flux (Free Index): 7.48e-05 +/- 1.09e-04

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/236003/cmap_HighResolution_682041601_682300801_4FGL_J2144.2+3132_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-03', comment='SUCCESS', photon_flux='3.73e-08', energy_flux2='7.48e-05', photon_flux_error='2.89e-08', dlogl='8.44e-01', energy_flux='2.00e-05', photon_flux2='1.20e-08', job_status='DONE', time_completed='2022-09-16 23:41:54.050712', photon_index_error2='0.81', photon_index2='1.29', ts='3.52', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.09e-04', EG='0.99', time_epoch_completed='1663396914.05', return_code='0', job_id='236003', GAL2='0.96', EG2='1.00', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='2.05e-08', ts2='5.20', photon_index='2.11' WHERE bin_id='1708' AND source_name='4FGL J2144.2+3132' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:41:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 236003: <4FGL_J2144.2+3132_daily_bin1708> in cluster <slac> Done

Job <4FGL_J2144.2+3132_daily_bin1708> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Sep 16 23:25:24 2022
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:26:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 23:26:07 2022
Terminated at Fri Sep 16 23:41:54 2022
Results reported at Fri Sep 16 23:41:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2144.2+3132_daily_bin1708 326.065 31.5457 682041601 682300801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2144.2+3132 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   909.05 sec.
    Max Memory :                                 1218 MB
    Average Memory :                             418.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            990 sec.

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

