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


Performing analysis on: 4FGL_J1749.0+4321_daily_bin1778
RA = 267.255, Dec = 43.3616
tmin = 700185601, tmax = 700444801
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='971604', job_status='RUN', time_executed='2023-03-14 01:36:11.454507', time_epoch_executed='1678782971.45' WHERE source_name='4FGL J1749.0+4321' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/971604

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/971604/ft1_4FGL_J1749.0+4321_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/971604/ft2_4FGL_J1749.0+4321_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/971604/ft1_4FGL_J1749.0+4321_daily_bin1778.fits outfile=/scratch/kocevski/971604/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin1778.fits ra=267.255 dec=43.3616 rad=12.0 tmin=700185601.0 tmax=700444801.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.95
user 3.72
sys 0.22

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

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

Number of photons that the gtmktime cut: 909

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/971604/ft1_filtered_4FGL_J1749.0+4321_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/971604/ft2_4FGL_J1749.0+4321_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/971604/ltcube_700185601_700444801_4FGL_J1749.0+4321_daily_bin1778.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/971604/ft2_4FGL_J1749.0+4321_daily_bin1778.fits
.....................!
real 12.34
user 11.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/971604/ft1_filtered_4FGL_J1749.0+4321_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/971604/ft2_4FGL_J1749.0+4321_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/971604/ltcube_700185601_700444801_4FGL_J1749.0+4321_daily_bin1778.fits outfile=/scratch/kocevski/971604/expmap_700185601_700444801_4FGL_J1749.0+4321_daily_bin1778.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/971604/ltcube_700185601_700444801_4FGL_J1749.0+4321_daily_bin1778.fits
.....................!
real 193.36
user 187.53
sys 5.48

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/971604/ft1_filtered_4FGL_J1749.0+4321_daily_bin1778.fits scfile=/scratch/kocevski/971604/ft2_4FGL_J1749.0+4321_daily_bin1778.fits outfile=/scratch/kocevski/971604/cmap_700185601_700444801_4FGL_J1749.0+4321_daily_bin1778.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.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/971604/ft1_filtered_4FGL_J1749.0+4321_daily_bin1778.fits scfile=/scratch/kocevski/971604/ft2_4FGL_J1749.0+4321_daily_bin1778.fits outfile=/scratch/kocevski/971604/cmap_HighResolution_700185601_700444801_4FGL_J1749.0+4321_daily_bin1778.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.41
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/971604/ft1_filtered_4FGL_J1749.0+4321_daily_bin1778.fits', '/scratch/kocevski/971604/ft2_4FGL_J1749.0+4321_daily_bin1778.fits', expMap='/scratch/kocevski/971604/expmap_700185601_700444801_4FGL_J1749.0+4321_daily_bin1778.fits', expCube='/scratch/kocevski/971604/ltcube_700185601_700444801_4FGL_J1749.0+4321_daily_bin1778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/971604/Model_4FGL_J1749.0+4321_daily_bin1778.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/971604/ft1_filtered_4FGL_J1749.0+4321_daily_bin1778.fits
Spacecraft file(s): /scratch/kocevski/971604/ft2_4FGL_J1749.0+4321_daily_bin1778.fits
Exposure map: /scratch/kocevski/971604/expmap_700185601_700444801_4FGL_J1749.0+4321_daily_bin1778.fits
Exposure cube: /scratch/kocevski/971604/ltcube_700185601_700444801_4FGL_J1749.0+4321_daily_bin1778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/971604/Model_4FGL_J1749.0+4321_daily_bin1778.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) = 9805.49488676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45650E-04   1.0000          .0000       .10000E+07
     2 'norm      '    4.7497       1.0000          .0000       .10000E+07
     3 'norm      '    .45457E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    10.138       1.0000          .0000       .10000E+07
     5 'norm      '    .39015       1.0000          .0000       .10000E+07
     6 'norm      '    1.9037       1.0000          .0000       .10000E+07
     7 'norm      '    2.0900       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13341E-04   1.0000          .0000       .10000E+07
     9 'norm      '    21.464       1.0000          .0000       .10000E+07
    10 'Prefactor '    20.553       1.0000          .0000       .10000E+07
    11 'Prefactor '    .85376       1.0000          .0000       .10000E+07
    12 'norm      '    .71174E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    24.274       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.8143       1.0000          .0000       .10000E+07
    15 'Prefactor '    .56216       1.0000          .0000       .10000E+07
    16 'Prefactor '    .12325E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    10.243       1.0000          .0000       .10000E+07
    18 'norm      '    .84727E-06   1.0000          .0000       .10000E+07
    19 'norm      '    13.654       1.0000          .0000       .10000E+07
    20 'norm      '    .72060       1.0000          .0000       .10000E+07
    21 'Prefactor '    25.051       1.0000          .0000       .10000E+07
    22 'Prefactor '    7.1698       1.0000          .0000       .10000E+07
    23 'norm      '    18.534       1.0000          .0000       .10000E+07
    24 'norm      '    .78255E-01   1.0000          .0000       .10000E+07
    25 'Normalizat'    .81577       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1651       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=   9805.489     FROM MIGRAD    STATUS=CONVERGED    201 CALLS     2247 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.0205        .76090E-07** at limit **
   2  norm          4.7481        1.7412       -.18909E-07    .75443E-03
   3  norm           .0000        .82378        .80261E-08** at limit **
   4  Prefactor     10.071        8.6524        .17464E-07    .45558E-03
   5  norm          .38959        .82365       -.11050E-06    .93447E-03
   6  norm          1.9072        9.1186        .32255E-06    .58604E-03
   7  norm          2.0976        1.7903        .11936E-08    .24270E-03
   8  Prefactor      .0000        .80377        .19497E-07** at limit **
   9  norm          21.557        8.0456        .65099E-08   -.24681E-02
  10  Prefactor     18.352        88.391       -.15481E-05    .24365E-01
  11  Prefactor     .21219E-04    235.12        .11231E-05** at limit **
  12  norm           .0000        1.9316        .42566E-07** at limit **
  13  Prefactor     23.012        38.139       -.25036E-06   -.51153E-02
  14  Prefactor     1.8183        2.6635       -.37158E-08    .20105E-03
  15  Prefactor     .38858E-09    51.583       -.47577E-06** at limit **
  16  Prefactor      .0000        5.9071       -.40037E-06** at limit **
  17  Prefactor     10.258        9.3573        .34126E-06   -.72405E-03
  18  norm           .0000        .44759       -.14567E-06** at limit **
  19  norm          13.427        16.376        .39018E-06    .11845    
  20  norm          .72681        5.9758       -.20467E-07    .33480E-03
  21  Prefactor     24.994        14.888        .14545E-06    .13214E-02
  22  Prefactor     7.1665        4.6697       -.33801E-07   -.53446E-03
  23  norm          18.534        8.6583        .19512E-06    .24603E-03
  24  norm          .20978E-06    237.69       -.13825E-05** at limit **
  25  Normalizat    .81784        .23711       -.95870E-05   -.20784E-04
  26  Prefactor     1.1649        .14157        .58198E-05   -.76711E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 4.74813
  norm       = 0
  Prefactor  = 10.0714
  norm       = 0.389586
  norm       = 1.90722
  norm       = 2.09759
  Prefactor  = 0
  norm       = 21.5568
  Prefactor  = 18.3524
  Prefactor  = 2.12194e-05
  norm       = 0
  Prefactor  = 23.0124
  Prefactor  = 1.81828
  Prefactor  = 3.88578e-10
  Prefactor  = 0
  Prefactor  = 10.2579
  norm       = 0
  norm       = 13.4275
  norm       = 0.726811
  Prefactor  = 24.9937
  Prefactor  = 7.16654
  norm       = 18.5338
  norm       = 2.09777e-07
  Normalizat = 0.817839
  Prefactor  = 1.16488
 **********
 **   18 **HESSE 
 **********

 FCN=   9805.489     FROM HESSE     STATUS=OK           522 CALLS     2769 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.0196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.7481        1.7441        .46144E-03   -1.5664    
   3  norm           .0000        .80044        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.071        8.8333        .31446E-03   -1.5644    
   5  norm          .38959        .86200        .90637E-03   -1.5695    
   6  norm          1.9072        9.2731        .75338E-03   -1.5680    
   7  norm          2.0976        1.8141        .71381E-03   -1.5679    
   8  Prefactor      .0000        .80278        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          21.557        8.1752        .21591E-03   -1.5615    
  10  Prefactor     18.352        98.985        .22065E-03   -1.5622    
  11  Prefactor     .21219E-04    242.84        .49011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        1.9302        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.012        38.098        .20302E-03   -1.5612    
  14  Prefactor     1.8183        2.6922        .77520E-03   -1.5681    
  15  Prefactor     .38858E-09    51.476        .72688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        5.9041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.258        9.3776        .31284E-03   -1.5644    
  18  norm           .0000        .44746        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.427        47.899        .27081E-03   -1.5635    
  20  norm          .72681        5.9805        .59051E-03   -1.5691    
  21  Prefactor     24.994        14.878        .19984E-03   -1.5608    
  22  Prefactor     7.1665        4.6751        .37438E-03   -1.5654    
  23  norm          18.534        8.6825        .23237E-03   -1.5622    
  24  norm          .20978E-06    5.4464        .81274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .81784        .20570        .82007E-01   -.99410    
  26  Prefactor     1.1649        .12204        .35513E-01   -.87419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74064e-06
Minuit parameter uncertainties:
  1  3.91493e-08
  2  1.7441
  3  1.08523e-07
  4  8.8333
  5  0.862
  6  8.41094
  7  1.81411
  8  5.65057e-08
  9  8.17516
  10  85.2458
  11  0.143574
  12  1.49335e-06
  13  38.0986
  14  2.69221
  15  0.000273671
  16  1.45129e-05
  17  9.37761
  18  6.39402e-07
  19  47.9003
  20  4.16974
  21  14.8783
  22  4.67508
  23  8.68248
  24  0.0021379
  25  0.205899
  26  0.122066
Done.

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

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.026e+01  9.378e+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

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.165e+00  1.221e-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.178e-01  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.45
Ra Dec: 267.255 43.362
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 2.93e-08 +/- 2.67e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.51e-05

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

Saving results to:
/scratch/kocevski/971604/likelihoodResults_700185601_700444801_4FGL_J1749.0+4321_daily_bin1778.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) = 9804.5978227
delta logL = 0.890713153593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9804.55549605
delta logL = 0.933039805108

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8441       1.0000          .0000       .10000E+07
     2 'Index     '    3.2041       1.0000          .0000       10.000    
     3 'Normalizat'    .73504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1971       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=   9804.555     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      257 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8220        22.164        .60266E-03    .67304E-02
   2  Index         3.2075        1.9680        .11781        .25331E-03
   3  Normalizat    .73514        .57038E-01    .86031E-01    .47069E-04
   4  Prefactor     1.1970        .34550E-01    .34699E-01   -.28683E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.82198
  Index      = 3.20754
  Normalizat = 0.735139
  Prefactor  = 1.197
 **********
 **   18 **HESSE 
 **********

 FCN=   9804.555     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8220        43.149        .89004E-05   -1.5674    
   2  Index         3.2075        3.2968        .41084E-02   -.36665    
   3  Normalizat    .73514        .23461        .38101E-03   -1.0252    
   4  Prefactor     1.1970        .14268        .19215E-03   -.86424    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.85953e-10
Minuit parameter uncertainties:
  1  22.0696
  2  3.66072
  3  0.234935
  4  0.142731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/971604': 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) = 9804.55548845
delta logL = 0.933047404986

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  2.822e+00  2.207e+01  0.000e+00  1.000e+06 ( 1.000e-13)
368        Index:  3.208e+00  3.661e+00  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:  1.197e+00  1.427e-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:  7.351e-01  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.49
Ra Dec: 267.255 43.362
Photon Index (Free Index): 3.21 +/- 3.66
Photon Flux (Free Index): 8.64e-08 +/- 7.11e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.49e-05

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/971604/cmap_HighResolution_700185601_700444801_4FGL_J1749.0+4321_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.87e-03', comment='SUCCESS', photon_flux='2.93e-08', energy_flux2='1.58e-05', photon_flux_error='2.67e-08', dlogl='9.33e-01', energy_flux='1.65e-05', photon_flux2='8.64e-08', job_status='DONE', time_completed='2023-03-14 01:51:36.749968', photon_index_error2='3.66', photon_index2='3.21', ts='2.45', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='9.10e-08', energy_flux_error2='1.49e-05', EG='0.82', time_epoch_completed='1678783896.75', return_code='0', job_id='971604', GAL2='1.20', EG2='0.74', return_code2='102', energy_flux_error='1.51e-05', photon_flux_error2='7.11e-08', ts2='4.49', photon_index='2.09' WHERE bin_id='1778' AND source_name='4FGL J1749.0+4321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 01:51:36 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 971604: <4FGL_J1749.0+4321_daily_bin1778> in cluster <slac> Done

Job <4FGL_J1749.0+4321_daily_bin1778> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Mar 14 01:35:15 2023
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 01:35:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 01:35:16 2023
Terminated at Tue Mar 14 01:51:37 2023
Results reported at Tue Mar 14 01:51:37 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_daily_bin1778 267.255 43.3616 700185601 700444801 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 :                                   927.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            982 sec.

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

