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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1761
RA = 327.444, Dec = 19.2859
tmin = 695779201, tmax = 696038401
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='933637', job_status='RUN', time_executed='2023-01-22 01:38:08.251652', time_epoch_executed='1674380288.25' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1761'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933637

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933637/ft1_4FGL_J2149.7+1917_daily_bin1761.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933637/ft2_4FGL_J2149.7+1917_daily_bin1761.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933637/ft1_4FGL_J2149.7+1917_daily_bin1761.fits outfile=/scratch/kocevski/933637/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1761.fits ra=327.444 dec=19.2859 rad=12.0 tmin=695779201.0 tmax=696038401.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 5.14
user 4.83
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/933637/ft2_4FGL_J2149.7+1917_daily_bin1761.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/933637/ft2_4FGL_J2149.7+1917_daily_bin1761.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/933637/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1761.fits evtable="EVENTS" outfile="/scratch/kocevski/933637/ft1_filtered_4FGL_J2149.7+1917_daily_bin1761.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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 808

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933637/ft1_filtered_4FGL_J2149.7+1917_daily_bin1761.fits" evtable="EVENTS" scfile=/scratch/kocevski/933637/ft2_4FGL_J2149.7+1917_daily_bin1761.fits sctable="SC_DATA" outfile=/scratch/kocevski/933637/ltcube_695779201_696038401_4FGL_J2149.7+1917_daily_bin1761.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/933637/ft2_4FGL_J2149.7+1917_daily_bin1761.fits
.....................!
real 14.67
user 14.03
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933637/ft1_filtered_4FGL_J2149.7+1917_daily_bin1761.fits evtable="EVENTS" scfile=/scratch/kocevski/933637/ft2_4FGL_J2149.7+1917_daily_bin1761.fits sctable="SC_DATA" expcube=/scratch/kocevski/933637/ltcube_695779201_696038401_4FGL_J2149.7+1917_daily_bin1761.fits outfile=/scratch/kocevski/933637/expmap_695779201_696038401_4FGL_J2149.7+1917_daily_bin1761.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/933637/ltcube_695779201_696038401_4FGL_J2149.7+1917_daily_bin1761.fits
.....................!
real 193.92
user 186.00
sys 6.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 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.
Added 161 point sources and 1 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 J2149.7+1917 @ 327.444 19.2859

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/933637/ft1_filtered_4FGL_J2149.7+1917_daily_bin1761.fits scfile=/scratch/kocevski/933637/ft2_4FGL_J2149.7+1917_daily_bin1761.fits outfile=/scratch/kocevski/933637/cmap_695779201_696038401_4FGL_J2149.7+1917_daily_bin1761.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=327.444 yref=19.2859 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933637/ft1_filtered_4FGL_J2149.7+1917_daily_bin1761.fits scfile=/scratch/kocevski/933637/ft2_4FGL_J2149.7+1917_daily_bin1761.fits outfile=/scratch/kocevski/933637/cmap_HighResolution_695779201_696038401_4FGL_J2149.7+1917_daily_bin1761.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=327.444 yref=19.2859 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/933637/ft1_filtered_4FGL_J2149.7+1917_daily_bin1761.fits evtable="EVENTS" scfile=/scratch/kocevski/933637/ft2_4FGL_J2149.7+1917_daily_bin1761.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/933637/Model_4FGL_J2149.7+1917_daily_bin1761.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 Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/933637/ft1_filtered_4FGL_J2149.7+1917_daily_bin1761.fits.....................!
real 119.11
user 116.89
sys 1.62

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/933637/ft1_filtered_4FGL_J2149.7+1917_daily_bin1761.fits', '/scratch/kocevski/933637/ft2_4FGL_J2149.7+1917_daily_bin1761.fits', expMap='/scratch/kocevski/933637/expmap_695779201_696038401_4FGL_J2149.7+1917_daily_bin1761.fits', expCube='/scratch/kocevski/933637/ltcube_695779201_696038401_4FGL_J2149.7+1917_daily_bin1761.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/933637/Model_4FGL_J2149.7+1917_daily_bin1761.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2149.7+1917'

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  7.294e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.521e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/933637/ft1_filtered_4FGL_J2149.7+1917_daily_bin1761.fits
Spacecraft file(s): /scratch/kocevski/933637/ft2_4FGL_J2149.7+1917_daily_bin1761.fits
Exposure map: /scratch/kocevski/933637/expmap_695779201_696038401_4FGL_J2149.7+1917_daily_bin1761.fits
Exposure cube: /scratch/kocevski/933637/ltcube_695779201_696038401_4FGL_J2149.7+1917_daily_bin1761.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/933637/Model_4FGL_J2149.7+1917_daily_bin1761.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) = 8600.89878575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14270E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .13481E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.4755       1.0000          .0000       .10000E+07
     4 'Prefactor '    .35710E-06   1.0000          .0000       .10000E+07
     5 'norm      '    3.5327       1.0000          .0000       .10000E+07
     6 'Prefactor '    8.0624       1.0000          .0000       .10000E+07
     7 'Prefactor '    .18662E-02   1.0000          .0000       .10000E+07
     8 'norm      '    2.9059       1.0000          .0000       .10000E+07
     9 'norm      '    4.9185       1.0000          .0000       .10000E+07
    10 'Prefactor '    16.433       1.0000          .0000       .10000E+07
    11 'Prefactor '    .20499E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .23061       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.4893       1.0000          .0000       .10000E+07
    14 'norm      '    1.0547       1.0000          .0000       .10000E+07
    15 'Prefactor '    .77510E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.6090       1.0000          .0000       .10000E+07
    17 'Normalizat'    .43776       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1245       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8599.990     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1046 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.6217        .45844E-06** at limit **
   2  Prefactor     .14017E-06    32.818        .16228E-05** at limit **
   3  Prefactor     1.7060        25.438        .14924E-04    .77813E-02
   4  Prefactor     .27970E-05    8.9851       -.48265E-05** at limit **
   5  norm          3.5320        3.5810        .27259E-07   -.40971E-02
   6  Prefactor     7.9450        6.7167       -.10527E-06   -.46317E-02
   7  Prefactor     .29160E-06    42.357       -.27327E-05** at limit **
   8  norm          2.9300        2.2879       -.39995E-06   -.73465E-02
   9  norm          4.9228        2.6783        .26985E-06   -.46072E-04
  10  Prefactor     15.487        4.2647        .16532E-06   -.14982E-01
  11  Prefactor     .25190E-05    8.9820        .98289E-06** at limit **
  12  norm          .23108        .55689        .33561E-06** at limit **
  13  Prefactor     1.6878        35.705       -.10901E-04   -.22011E-01
  14  norm          1.0538        2.3478       -.41451E-07    .82491E-03
  15  Prefactor      .0000        3.2257        .30899E-06** at limit **
  16  Prefactor     4.6667        7.4661       -.61737E-06    .27599E-02
  17  Normalizat    .43821        .25603        .39621E-04   -.77411E-05
  18  Prefactor     1.1245        .11218       -.27305E-04   -.12336E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 1.40166e-07
  Prefactor  = 1.70601
  Prefactor  = 2.79704e-06
  norm       = 3.53202
  Prefactor  = 7.94499
  Prefactor  = 2.916e-07
  norm       = 2.92995
  norm       = 4.92284
  Prefactor  = 15.4869
  Prefactor  = 2.51899e-06
  norm       = 0.23108
  Prefactor  = 1.68775
  norm       = 1.05385
  Prefactor  = 0
  Prefactor  = 4.66674
  Normalizat = 0.438206
  Prefactor  = 1.1245
 **********
 **   18 **HESSE 
 **********

 FCN=   8599.990     FROM HESSE     STATUS=OK           284 CALLS     1330 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.6160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .14017E-06    33.609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7060        25.513        .88380E-03   -1.5682    
   4  Prefactor     .27970E-05    14.910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.5320        3.5929        .53757E-03   -1.5670    
   6  Prefactor     7.9450        6.8142        .35287E-03   -1.5652    
   7  Prefactor     .29160E-06    43.221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9300        2.3935        .59579E-03   -1.5674    
   9  norm          4.9228        2.6979        .45328E-03   -1.5664    
  10  Prefactor     15.487        29.058        .24680E-03   -1.5629    
  11  Prefactor     .25190E-05    14.438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .23108        .56046        .11255E-03   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6878        47.480        .87824E-03   -1.5682    
  14  norm          1.0538        2.7204        .48308E-02   -1.5687    
  15  Prefactor      .0000        3.2212        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.6667        7.5206        .46860E-03   -1.5665    
  17  Normalizat    .43821        .27191        .11542       -1.1537    
  18  Prefactor     1.1245        .11132        .36721E-01   -.88687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16869e-07
Minuit parameter uncertainties:
  1  6.13129e-06
  2  0.00434075
  3  13.1949
  4  0.0129158
  5  3.59288
  6  6.81416
  7  0.00710023
  8  2.39354
  9  2.69786
  10  29.0581
  11  0.0120613
  12  0.560465
  13  17.9037
  14  2.72036
  15  1.41022e-05
  16  7.52059
  17  0.272731
  18  0.11134
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.549e+01  2.906e+01  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.521e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.125e+00  1.113e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  4.382e-01  2.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 327.444 19.286
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/933637/likelihoodResults_695779201_696038401_4FGL_J2149.7+1917_daily_bin1761.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) = 8599.97858121
delta logL = 0.0115921172419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8599.75629998
delta logL = 0.233873345531

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8599.756     FROM MIGRAD    STATUS=FAILED        86 CALLS      285 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77919        44.571        .86615E-05   -.10124    
   2  Index         4.6486        7.3204        .76009E-02   -.11306E-02
   3  Normalizat    .37923        .19220        .54848E-03   -.88068E-03
   4  Prefactor     1.1444        .87248E-01    .15094E-03   -.21331E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8599.756     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      374 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77919        44.571        .16044E-04   -.10124    
   2  Index         4.6486        7.3204        .13842E-02   -.11306E-02
   3  Normalizat    .37923        .19220        .19247E-03   -.88068E-03
   4  Prefactor     1.1444        .87248E-01    .34757E-04   -.21331E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8599.756     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      406 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77861        6.4193        .34646E-06   -.50327E-03
   2  Index         4.6491        2.7751        .30404E-03   -.48610E-05
   3  Normalizat    .37924        .25045        .21939E-04    .35444E-04
   4  Prefactor     1.1444        .11252        .30188E-04    .17926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.778612
  Index      = 4.64907
  Normalizat = 0.379236
  Prefactor  = 1.14438
 **********
 **   18 **HESSE 
 **********

 FCN=   8599.756     FROM HESSE     STATUS=OK            23 CALLS      429 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77861        5.4005        .37409E-06   -1.5690    
   2  Index         4.6491        2.5686        .12161E-04   -.70244E-01
   3  Normalizat    .37924        .25044        .43878E-05   -1.1839    
   4  Prefactor     1.1444        .11249        .60375E-05   -.88060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07318e-11
Minuit parameter uncertainties:
  1  4.10118
  2  2.69831
  3  0.251183
  4  0.112509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933637': 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) = 8599.75629948
delta logL = 0.233873842093

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  7.786e-01  4.101e+00  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  4.649e+00  2.698e+00  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.144e+00  1.125e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  3.792e-01  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
Ra Dec: 327.444 19.286

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/933637/cmap_HighResolution_695779201_696038401_4FGL_J2149.7+1917_daily_bin1761.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.68e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2023-01-22 01:48:51.064341', job_id='933637', GAL2='1.14', fit_tolerance='1e-08', EG2='0.38', EG='0.44', time_epoch_completed='1674380931.06', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='2.34e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1761' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 22 01:48:51 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 933637: <4FGL_J2149.7+1917_daily_bin1761> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin1761> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jan 22 01:35:31 2023
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 22 01:36:50 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 22 01:36:50 2023
Terminated at Sun Jan 22 01:48:51 2023
Results reported at Sun Jan 22 01:48:51 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1761 327.444 19.2859 695779201 696038401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2149.7+1917 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   642.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            800 sec.

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

