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


Performing analysis on: 4FGL_J1749.0+4321_daily_bin1746
RA = 267.255, Dec = 43.3616
tmin = 691891201, tmax = 692150401
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='733907', job_status='RUN', time_executed='2022-12-08 01:21:08.139658', time_epoch_executed='1670491268.14' WHERE source_name='4FGL J1749.0+4321' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733907

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733907/ft1_4FGL_J1749.0+4321_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733907/ft2_4FGL_J1749.0+4321_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733907/ft1_4FGL_J1749.0+4321_daily_bin1746.fits outfile=/scratch/kocevski/733907/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin1746.fits ra=267.255 dec=43.3616 rad=12.0 tmin=691891201.0 tmax=692150401.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 4.70
user 4.48
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/733907/ft2_4FGL_J1749.0+4321_daily_bin1746.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/733907/ft2_4FGL_J1749.0+4321_daily_bin1746.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/733907/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/733907/ft1_filtered_4FGL_J1749.0+4321_daily_bin1746.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.33
sys 0.15

Number of photons that the gtmktime cut: 886

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733907/ft1_filtered_4FGL_J1749.0+4321_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/733907/ft2_4FGL_J1749.0+4321_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/733907/ltcube_691891201_692150401_4FGL_J1749.0+4321_daily_bin1746.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/733907/ft2_4FGL_J1749.0+4321_daily_bin1746.fits
.....................!
real 12.04
user 11.73
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733907/ft1_filtered_4FGL_J1749.0+4321_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/733907/ft2_4FGL_J1749.0+4321_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/733907/ltcube_691891201_692150401_4FGL_J1749.0+4321_daily_bin1746.fits outfile=/scratch/kocevski/733907/expmap_691891201_692150401_4FGL_J1749.0+4321_daily_bin1746.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/733907/ltcube_691891201_692150401_4FGL_J1749.0+4321_daily_bin1746.fits
.....................!
real 190.81
user 185.47
sys 5.01

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

Setting source of interest to:
4FGL J1749.0+4321 @ 267.255 43.3616

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/733907/ft1_filtered_4FGL_J1749.0+4321_daily_bin1746.fits scfile=/scratch/kocevski/733907/ft2_4FGL_J1749.0+4321_daily_bin1746.fits outfile=/scratch/kocevski/733907/cmap_691891201_692150401_4FGL_J1749.0+4321_daily_bin1746.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=267.255 yref=43.3616 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733907/ft1_filtered_4FGL_J1749.0+4321_daily_bin1746.fits scfile=/scratch/kocevski/733907/ft2_4FGL_J1749.0+4321_daily_bin1746.fits outfile=/scratch/kocevski/733907/cmap_HighResolution_691891201_692150401_4FGL_J1749.0+4321_daily_bin1746.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=267.255 yref=43.3616 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733907/ft1_filtered_4FGL_J1749.0+4321_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/733907/ft2_4FGL_J1749.0+4321_daily_bin1746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733907/Model_4FGL_J1749.0+4321_daily_bin1746.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/733907/ft1_filtered_4FGL_J1749.0+4321_daily_bin1746.fits.....................!
real 76.67
user 75.25
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/733907/ft1_filtered_4FGL_J1749.0+4321_daily_bin1746.fits', '/scratch/kocevski/733907/ft2_4FGL_J1749.0+4321_daily_bin1746.fits', expMap='/scratch/kocevski/733907/expmap_691891201_692150401_4FGL_J1749.0+4321_daily_bin1746.fits', expCube='/scratch/kocevski/733907/ltcube_691891201_692150401_4FGL_J1749.0+4321_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/733907/Model_4FGL_J1749.0+4321_daily_bin1746.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1749.0+4321'

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  4.281e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
368        Index:  2.087e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
369        Scale:  1.563e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/733907/ft1_filtered_4FGL_J1749.0+4321_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/733907/ft2_4FGL_J1749.0+4321_daily_bin1746.fits
Exposure map: /scratch/kocevski/733907/expmap_691891201_692150401_4FGL_J1749.0+4321_daily_bin1746.fits
Exposure cube: /scratch/kocevski/733907/ltcube_691891201_692150401_4FGL_J1749.0+4321_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/733907/Model_4FGL_J1749.0+4321_daily_bin1746.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) = 9411.33849998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13935E-03   1.0000          .0000       .10000E+07
     2 'norm      '    4.3510       1.0000          .0000       .10000E+07
     3 'norm      '    .68790       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.6331       1.0000          .0000       .10000E+07
     5 'norm      '    .27027       1.0000          .0000       .10000E+07
     6 'norm      '    11.895       1.0000          .0000       .10000E+07
     7 'norm      '    2.8870       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.1727       1.0000          .0000       .10000E+07
     9 'norm      '    .16151E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    85.420       1.0000          .0000       .10000E+07
    11 'Prefactor '    .68314E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .94671       1.0000          .0000       .10000E+07
    13 'Prefactor '    75.602       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.3195       1.0000          .0000       .10000E+07
    15 'Prefactor '    71.036       1.0000          .0000       .10000E+07
    16 'Prefactor '    7.9938       1.0000          .0000       .10000E+07
    17 'Prefactor '    .55369E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .46824E-06   1.0000          .0000       .10000E+07
    19 'norm      '    .87358E-03   1.0000          .0000       .10000E+07
    20 'norm      '    7.3663       1.0000          .0000       .10000E+07
    21 'Prefactor '    .33058E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .35595E-04   1.0000          .0000       .10000E+07
    23 'norm      '    12.840       1.0000          .0000       .10000E+07
    24 'norm      '    .40912E-07   1.0000          .0000       .10000E+07
    25 'Normalizat'    .88736       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94483       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9411.216     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     2295 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    3.3193        .38179E-06** at limit **
   2  norm          4.3526        1.5729        .11898E-07   -.45581E-03
   3  norm          .68925        .65648        .43843E-07   -.17629E-03
   4  Prefactor     1.6390        4.0774       -.26604E-06    .28164E-03
   5  norm          .27088        .47287        .70944E-08    .12041E-03
   6  norm          11.825        7.5956        .11735E-06    .70536E-02
   7  norm          2.8865        1.4065       -.11491E-07   -.35428E-03
   8  Prefactor     3.1743        2.9129        .63591E-07    .13387E-02
   9  norm          .29421E-08    12.739        .21519E-05** at limit **
  10  Prefactor     88.721        52.921       -.48055E-06   -.31708E-01
  11  Prefactor     .14151E-05    10.181       -.33070E-05** at limit **
  12  norm          .97859        4.5785        .52751E-06   -.33049E-01
  13  Prefactor     75.733        2.0438        .30010E-07   -.31220E-01
  14  Prefactor     1.3018        3.5742        .22559E-06    .10369E-02
  15  Prefactor     71.998        14.050       -.34022E-06    .10466    
  16  Prefactor     7.9990        6.5631        .10602E-05    .10200    
  17  Prefactor     .18002E-05    10.589       -.21465E-05** at limit **
  18  norm          .27756E-09    5.6233        .12381E-06** at limit **
  19  norm          .11102E-09    24.406        .11471E-06** at limit **
  20  norm          7.4001        5.9415       -.36438E-07    .25507E-02
  21  Prefactor     .12053E-05    10.919        .12786E-05** at limit **
  22  Prefactor      .0000        1.9604       -.39826E-08** at limit **
  23  norm          12.857        8.2871        .44843E-06    .44331E-01
  24  norm           .0000        4.9181        .14644E-06** at limit **
  25  Normalizat    .88517        .21549        .41248E-06   -.47225E-04
  26  Prefactor     .94528        .12960       -.28657E-05   -.89874E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 4.35262
  norm       = 0.689248
  Prefactor  = 1.63904
  norm       = 0.270885
  norm       = 11.8248
  norm       = 2.88655
  Prefactor  = 3.17427
  norm       = 2.94209e-09
  Prefactor  = 88.721
  Prefactor  = 1.41515e-06
  norm       = 0.978589
  Prefactor  = 75.7327
  Prefactor  = 1.30179
  Prefactor  = 71.9982
  Prefactor  = 7.99901
  Prefactor  = 1.80023e-06
  norm       = 2.77556e-10
  norm       = 1.11022e-10
  norm       = 7.40012
  Prefactor  = 1.20526e-06
  Prefactor  = 0
  norm       = 12.8566
  norm       = 0
  Normalizat = 0.88517
  Prefactor  = 0.945275
 **********
 **   18 **HESSE 
 **********

 FCN=   9411.216     FROM HESSE     STATUS=OK           522 CALLS     2817 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    3.2242        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3526        1.5722        .48265E-03   -1.5666    
   3  norm          .68925        .66673        .61696E-03   -1.5691    
   4  Prefactor     1.6390        4.1463        .82700E-03   -1.5682    
   5  norm          .27088        .50716        .20048E-02   -1.5698    
   6  norm          11.825        7.6225        .29021E-03   -1.5639    
   7  norm          2.8865        1.4170        .59787E-03   -1.5674    
   8  Prefactor     3.1743        2.9379        .56871E-03   -1.5672    
   9  norm          .29421E-08    12.296        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     88.721        54.588        .10820E-03   -1.5520    
  11  Prefactor     .14151E-05    48.918        .14874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .97859        5.0759        .42583E-03   -1.5688    
  13  Prefactor     75.733        43.965        .11502E-03   -1.5534    
  14  Prefactor     1.3018        3.8155        .95776E-03   -1.5685    
  15  Prefactor     71.998        50.735        .11866E-03   -1.5538    
  16  Prefactor     7.9990        8.6770        .35439E-03   -1.5651    
  17  Prefactor     .18002E-05    16.214        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .27756E-09    .73736        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .11102E-09    24.442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.4001        5.9550        .36930E-03   -1.5654    
  21  Prefactor     .12053E-05    14.770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        1.9590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          12.857        8.7287        .27929E-03   -1.5636    
  24  norm           .0000        4.9432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .88517        .17980        .70068E-01   -.96983    
  26  Prefactor     .94528        .10679        .45574E-01   -.94577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.85221e-07
Minuit parameter uncertainties:
  1  2.76365e-05
  2  1.57221
  3  0.666732
  4  4.14627
  5  0.507164
  6  7.62253
  7  1.41698
  8  2.93786
  9  0.000379075
  10  54.588
  11  0.0166407
  12  4.45745
  13  43.9649
  14  3.81549
  15  50.7356
  16  8.67705
  17  0.0108054
  18  2.9584e-05
  19  0.000114595
  20  5.95496
  21  0.0084382
  22  9.87198e-06
  23  8.72871
  24  1.21761e-05
  25  0.179918
  26  0.106809
Done.

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

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.800e-06  1.081e-02  0.000e+00  1.000e+06 ( 1.000e-13)
368        Index:  2.087e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
369        Scale:  1.563e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  9.453e-01  1.068e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  8.852e-01  1.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 267.255 43.362
Photon Flux Upper Limit: 5.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733907/likelihoodResults_691891201_692150401_4FGL_J1749.0+4321_daily_bin1746.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) = 9411.25146315
delta logL = -0.0355896845031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9411.2120924
delta logL = 0.00378106461721

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9411.212     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      243 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18530        1.4853        .58044E-02** at limit **
   2  Index         2.8517        .33953        .50000        .39345E-04
   3  Normalizat    .88252        .50799E-02    .70163E-01    .48235E-04
   4  Prefactor     .94588        .32223E-02    .45588E-01    .75491E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.185297
  Index      = 2.8517
  Normalizat = 0.882517
  Prefactor  = 0.945883
 **********
 **   18 **HESSE 
 **********

 FCN=   9411.212     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      278 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18530        1309.7        .18803E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8517        8.4578        .58066E-02   -.44412    
   3  Normalizat    .88252        .21917        .31044E-03   -.97077    
   4  Prefactor     .94588        .11306        .18979E-03   -.94556    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.96426e-06
Minuit parameter uncertainties:
  1  31.1634
  2  49.0221
  3  0.219389
  4  0.113084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733907': 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) = 9411.21209169
delta logL = 0.0037817731245

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.853e-01  3.116e+01  0.000e+00  1.000e+06 ( 1.000e-13)
368        Index:  2.852e+00  4.902e+01  0.000e+00  1.000e+01 (-1.000e+00)
369        Scale:  1.563e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  9.459e-01  1.131e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  8.825e-01  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 267.255 43.362

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/733907/cmap_HighResolution_691891201_692150401_4FGL_J1749.0+4321_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.45e-08', time_completed='2022-12-08 01:36:20.971704', job_id='733907', GAL2='0.95', fit_tolerance='1e-08', EG2='0.88', EG='0.89', time_epoch_completed='1670492180.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.78e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1746' AND source_name='4FGL J1749.0+4321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 01:36:21 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 733907: <4FGL_J1749.0+4321_daily_bin1746> in cluster <slac> Done

Job <4FGL_J1749.0+4321_daily_bin1746> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Dec  8 01:20:21 2022
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:20:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:20:21 2022
Terminated at Thu Dec  8 01:36:21 2022
Results reported at Thu Dec  8 01:36:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_daily_bin1746 267.255 43.3616 691891201 692150401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1749.0+4321 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   914.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            960 sec.

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

