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


Performing analysis on: 4FGL_J1924.8-2914_daily_bin1759
RA = 291.214, Dec = -29.2468
tmin = 695260801, tmax = 695520001
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='567627', job_status='RUN', time_executed='2023-01-16 01:47:49.685263', time_epoch_executed='1673862469.69' WHERE source_name='4FGL J1924.8-2914' and cadence='daily' and bin_id='1759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567627

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/567627/ft1_4FGL_J1924.8-2914_daily_bin1759.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/567627/ft2_4FGL_J1924.8-2914_daily_bin1759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/567627/ft1_4FGL_J1924.8-2914_daily_bin1759.fits outfile=/scratch/kocevski/567627/ft1_filteredMKT_4FGL_J1924.8-2914_daily_bin1759.fits ra=291.214 dec=-29.2468 rad=12.0 tmin=695260801.0 tmax=695520001.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 2.79
user 2.58
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/567627/ft2_4FGL_J1924.8-2914_daily_bin1759.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/567627/ft2_4FGL_J1924.8-2914_daily_bin1759.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/567627/ft1_filteredMKT_4FGL_J1924.8-2914_daily_bin1759.fits evtable="EVENTS" outfile="/scratch/kocevski/567627/ft1_filtered_4FGL_J1924.8-2914_daily_bin1759.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.53
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/567627/ft1_filtered_4FGL_J1924.8-2914_daily_bin1759.fits" evtable="EVENTS" scfile=/scratch/kocevski/567627/ft2_4FGL_J1924.8-2914_daily_bin1759.fits sctable="SC_DATA" outfile=/scratch/kocevski/567627/ltcube_695260801_695520001_4FGL_J1924.8-2914_daily_bin1759.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/567627/ft2_4FGL_J1924.8-2914_daily_bin1759.fits
.....................!
real 17.04
user 16.55
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567627/ft1_filtered_4FGL_J1924.8-2914_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/567627/ft2_4FGL_J1924.8-2914_daily_bin1759.fits sctable="SC_DATA" expcube=/scratch/kocevski/567627/ltcube_695260801_695520001_4FGL_J1924.8-2914_daily_bin1759.fits outfile=/scratch/kocevski/567627/expmap_695260801_695520001_4FGL_J1924.8-2914_daily_bin1759.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/567627/ltcube_695260801_695520001_4FGL_J1924.8-2914_daily_bin1759.fits
.....................!
real 192.23
user 186.54
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
Extended source FGES J1745.8-3028 in ROI with RadialDisk spatial model.
Extended source W 28 in ROI with RadialDisk spatial model.
Extended source HESS J1804-216 in ROI with RadialDisk spatial model.
Extended source W 30 in ROI with RadialDisk spatial model.
Extended source HESS J1808-204 in ROI with RadialDisk spatial model.
Extended source HESS J1809-193 in ROI with RadialDisk spatial model.
Extended source HESS J1813-178 in ROI with RadialDisk spatial model.
Extended source HESS J1825-137 in ROI with RadialGaussian spatial model.
Added 357 point sources and 8 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 J1924.8-2914 @ 291.214 -29.2468

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/567627/ft1_filtered_4FGL_J1924.8-2914_daily_bin1759.fits scfile=/scratch/kocevski/567627/ft2_4FGL_J1924.8-2914_daily_bin1759.fits outfile=/scratch/kocevski/567627/cmap_695260801_695520001_4FGL_J1924.8-2914_daily_bin1759.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=291.214 yref=-29.2468 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/567627/ft1_filtered_4FGL_J1924.8-2914_daily_bin1759.fits scfile=/scratch/kocevski/567627/ft2_4FGL_J1924.8-2914_daily_bin1759.fits outfile=/scratch/kocevski/567627/cmap_HighResolution_695260801_695520001_4FGL_J1924.8-2914_daily_bin1759.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=291.214 yref=-29.2468 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/567627/ft1_filtered_4FGL_J1924.8-2914_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/567627/ft2_4FGL_J1924.8-2914_daily_bin1759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/567627/Model_4FGL_J1924.8-2914_daily_bin1759.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 FGES J1745.8-3028
adding source GAL_V02
adding source HESS J1804-216
adding source HESS J1808-204
adding source HESS J1809-193
adding source HESS J1813-178
adding source HESS J1825-137
adding source W 28
adding source W 30
Working on...
/scratch/kocevski/567627/ft1_filtered_4FGL_J1924.8-2914_daily_bin1759.fits......................!
real 20.92
user 19.43
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/567627/ft1_filtered_4FGL_J1924.8-2914_daily_bin1759.fits', '/scratch/kocevski/567627/ft2_4FGL_J1924.8-2914_daily_bin1759.fits', expMap='/scratch/kocevski/567627/expmap_695260801_695520001_4FGL_J1924.8-2914_daily_bin1759.fits', expCube='/scratch/kocevski/567627/ltcube_695260801_695520001_4FGL_J1924.8-2914_daily_bin1759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/567627/Model_4FGL_J1924.8-2914_daily_bin1759.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1924.8-2914'

4FGL J1924.8-2914
   Spectrum: PowerLaw
985    Prefactor:  3.573e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
986        Index:  2.388e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
987        Scale:  8.495e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/567627/ft1_filtered_4FGL_J1924.8-2914_daily_bin1759.fits
Spacecraft file(s): /scratch/kocevski/567627/ft2_4FGL_J1924.8-2914_daily_bin1759.fits
Exposure map: /scratch/kocevski/567627/expmap_695260801_695520001_4FGL_J1924.8-2914_daily_bin1759.fits
Exposure cube: /scratch/kocevski/567627/ltcube_695260801_695520001_4FGL_J1924.8-2914_daily_bin1759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/567627/Model_4FGL_J1924.8-2914_daily_bin1759.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) = 502.13945705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    78.002       1.0000          .0000       .10000E+07
     2 'Prefactor '    210.01       1.0000          .0000       .10000E+07
     3 'norm      '    .11355E-01   1.0000          .0000       .10000E+07
     4 'norm      '    .49546E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14622       1.0000          .0000       .10000E+07
     6 'norm      '    .44285E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23498E-01   1.0000          .0000       .10000E+07
     8 'norm      '    218.53       1.0000          .0000       .10000E+07
     9 'Prefactor '    .74904       1.0000          .0000       .10000E+07
    10 'Prefactor '    .14799       1.0000          .0000       .10000E+07
    11 'Prefactor '    .23435E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .44235       1.0000          .0000       .10000E+07
    13 'Prefactor '    37.805       1.0000          .0000       .10000E+07
    14 'norm      '    .58753E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .62355       1.0000          .0000       .10000E+07
    16 'norm      '    108.99       1.0000          .0000       .10000E+07
    17 'Normalizat'    .44611       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .44360       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1306E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   502.0855     FROM MIGRAD    STATUS=CONVERGED    214 CALLS     1882 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          75.741        92.073        .13607E-05   -.66180E-01
   2  Prefactor     190.36        305.68       -.27406E-05    .25574    
   3  norm          .55511E-10    37.492       -.12296E-05** at limit **
   4  norm          .55511E-10    7.7714       -.17180E-05** at limit **
   5  Prefactor      .0000        80.663       -.34123E-06** at limit **
   6  norm          .50002E-02    3016.2        .24388E-04** at limit **
   7  Prefactor      .0000        34.678        .28079E-06** at limit **
   8  norm          219.75        22.167        .20138E-06    .64393E-01
   9  Prefactor     .50373E-04    492.41       -.16555E-05** at limit **
  10  Prefactor      .0000        80.894        .26047E-06** at limit **
  11  Prefactor     .62354E-02    1116.4       -.86709E-06** at limit **
  12  norm           .0000        165.15        .11074E-05** at limit **
  13  Prefactor     37.439        56.164       -.91852E-08    .71060E-02
  14  norm           .0000        2.5925        .27012E-07** at limit **
  15  Prefactor     .55511E-10    283.20       -.93881E-06** at limit **
  16  norm          120.03        162.56        .28363E-05    .38743    
  17  Normalizat    .41193        5.5896       -.23781E-03   -.73469E-05
  18  Prefactor     .45032        .31750        .36394E-04   -.36677E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 75.7409
  Prefactor  = 190.363
  norm       = 5.55112e-11
  norm       = 5.55112e-11
  Prefactor  = 0
  norm       = 0.00500024
  Prefactor  = 0
  norm       = 219.746
  Prefactor  = 5.03729e-05
  Prefactor  = 0
  Prefactor  = 0.00623541
  norm       = 0
  Prefactor  = 37.4386
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 120.032
  Normalizat = 0.411933
  Prefactor  = 0.450324
 **********
 **   18 **HESSE 
 **********

 FCN=   502.0855     FROM HESSE     STATUS=NOT POSDEF   268 CALLS     2150 TOTAL
                     EDM=   .17E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          75.741        91.364        .11323E-03   -1.5534    
   2  Prefactor     190.36        392.29        .69013E-04   -1.5432    
   3  norm          .55511E-10    37.583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .55511E-10    7.7664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        80.539        .12824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .50002E-02    3047.9        .15776E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        34.764        .16817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          219.75        194.83        .67654E-04   -1.5411    
   9  Prefactor     .50373E-04    492.11        .56814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        80.616        .12786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .62354E-02    1157.9        .42118E-03   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        164.72        .84736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     37.439        56.103        .16266E-03   -1.5586    
  14  norm           .0000        2.5709        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    282.20        .67145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          120.03        340.14        .95794E-04   -1.5489    
  17  Normalizat    .41193        5.0717        .21109       -1.1669    
  18  Prefactor     .45032        1.4247        .25651E-01   -1.1431    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.000173988
Minuit parameter uncertainties:
  1  91.3655
  2  392.341
  3  7.36548e-05
  4  3.87293e-05
  5  1.55229e-05
  6  7.8117
  7  1.11331e-05
  8  194.834
  9  0.314917
  10  1.67947e-05
  11  5.37502
  12  5.18522e-05
  13  56.1041
  14  4.99952e-07
  15  0.000211142
  16  340.19
  17  12.1929
  18  1.57054
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 502.085485961

Extracting fit parameters...

4FGL J1924.8-2914
   Spectrum: PowerLaw
985    Prefactor:  5.037e-05  3.149e-01  0.000e+00  1.000e+06 ( 1.000e-12)
986        Index:  2.388e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
987        Scale:  8.495e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1277    Prefactor:  4.503e-01  1.571e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1278        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1279        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1273   Normalization:  4.119e-01  1.219e+01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 291.214 -29.247
Photon Flux Upper Limit: 1.66e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/567627/likelihoodResults_695260801_695520001_4FGL_J1924.8-2914_daily_bin1759.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) = 502.086452894
delta logL = -0.000966932658628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 500.087698915
delta logL = 1.99778704649

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5600       1.0000          .0000       .10000E+07
     2 'Index     '    5.6248       1.0000          .0000       10.000    
     3 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .40318       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1306E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   500.0877     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      256 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5129        123.15        .36450E-03   -.15879E-01
   2  Index         5.6280        3.7381        .30641E-01   -.39538E-03
   3  Normalizat    .10000E-01    .70161        .32201    ** at limit **
   4  Prefactor     .40322        .94218E-01    .25825E-01   -.95336E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.51286
  Index      = 5.628
  Normalizat = 0.01
  Prefactor  = 0.403222
 **********
 **   18 **HESSE 
 **********

 FCN=   500.0877     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5129        25.158        .35001E-05   -1.5653    
   2  Index         5.6280        1.7208        .13486E-03    .12593    
   3  Normalizat    .10000E-01    1.1527        .12939E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .40322        .10831        .11410E-03   -1.1664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.8296e-10
Minuit parameter uncertainties:
  1  25.1581
  2  1.75732
  3  9.22578e-06
  4  0.108366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567627': 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) = 500.087696119
delta logL = 1.99778984226

Extracting fit parameters...

4FGL J1924.8-2914
   Spectrum: PowerLaw
985    Prefactor:  7.513e+00  2.516e+01  0.000e+00  1.000e+06 ( 1.000e-12)
986        Index:  5.628e+00  1.757e+00  0.000e+00  1.000e+01 (-1.000e+00)
987        Scale:  8.495e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1277    Prefactor:  4.032e-01  1.084e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1278        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1279        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1273   Normalization:  1.000e-02  9.226e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.03
Ra Dec: 291.214 -29.247
Photon Index (Free Index): 5.63 +/- 1.76
Photon Flux (Free Index): 2.78e-05 +/- 1.71e-05
Energy Flux (Free Index): 3.53e-03 +/- 2.16e-03

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/567627/cmap_HighResolution_695260801_695520001_4FGL_J1924.8-2914_daily_bin1759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e+00', comment='SUCCESS', energy_flux2='3.53e-03', dlogl='2.00e+00', photon_flux2='2.78e-05', job_status='DONE', time_completed='2023-01-16 01:54:48.662445', photon_index_error2='1.76', photon_index2='5.63', ts='-0.00', fit_tolerance='1e-08', GAL='0.45', photon_index_error='0.00', photon_flux_upper_limit='1.66e-05', energy_flux_error2='2.16e-03', EG='0.41', time_epoch_completed='1673862888.66', return_code='102', job_id='567627', GAL2='0.40', EG2='0.01', return_code2='0', photon_flux_error2='1.71e-05', ts2='4.03', photon_index='2.39' WHERE bin_id='1759' AND source_name='4FGL J1924.8-2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 16 01:54:48 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 567627: <4FGL_J1924.8-2914_daily_bin1759> in cluster <slac> Done

Job <4FGL_J1924.8-2914_daily_bin1759> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Jan 16 01:40:35 2023
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 16 01:44:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 16 01:44:22 2023
Terminated at Mon Jan 16 01:54:49 2023
Results reported at Mon Jan 16 01:54:49 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1924.8-2914_daily_bin1759 291.214 -29.2468 695260801 695520001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1924.8-2914 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   420.18 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             263.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            854 sec.

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

