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 99 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1749.0+4321_daily_bin1692
RA = 267.255, Dec = 43.3616
tmin = 677894401, tmax = 678153601
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='406263', job_status='RUN', time_executed='2022-06-29 04:53:46.515464', time_epoch_executed='1656503626.52' WHERE source_name='4FGL J1749.0+4321' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406263

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406263/ft1_4FGL_J1749.0+4321_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406263/ft2_4FGL_J1749.0+4321_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406263/ft1_4FGL_J1749.0+4321_daily_bin1692.fits outfile=/scratch/kocevski/406263/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin1692.fits ra=267.255 dec=43.3616 rad=12.0 tmin=677894401.0 tmax=678153601.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.44
user 4.18
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/406263/ft2_4FGL_J1749.0+4321_daily_bin1692.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/406263/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin1692.fits evtable="EVENTS" outfile="/scratch/kocevski/406263/ft1_filtered_4FGL_J1749.0+4321_daily_bin1692.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.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 885

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406263/ft1_filtered_4FGL_J1749.0+4321_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/406263/ft2_4FGL_J1749.0+4321_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/406263/ltcube_677894401_678153601_4FGL_J1749.0+4321_daily_bin1692.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/406263/ft2_4FGL_J1749.0+4321_daily_bin1692.fits
.....................!
real 13.92
user 13.52
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406263/ft1_filtered_4FGL_J1749.0+4321_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/406263/ft2_4FGL_J1749.0+4321_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/406263/ltcube_677894401_678153601_4FGL_J1749.0+4321_daily_bin1692.fits outfile=/scratch/kocevski/406263/expmap_677894401_678153601_4FGL_J1749.0+4321_daily_bin1692.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/406263/ltcube_677894401_678153601_4FGL_J1749.0+4321_daily_bin1692.fits
.....................!
real 191.55
user 186.30
sys 4.76

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/406263/ft1_filtered_4FGL_J1749.0+4321_daily_bin1692.fits scfile=/scratch/kocevski/406263/ft2_4FGL_J1749.0+4321_daily_bin1692.fits outfile=/scratch/kocevski/406263/cmap_677894401_678153601_4FGL_J1749.0+4321_daily_bin1692.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.64
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406263/ft1_filtered_4FGL_J1749.0+4321_daily_bin1692.fits scfile=/scratch/kocevski/406263/ft2_4FGL_J1749.0+4321_daily_bin1692.fits outfile=/scratch/kocevski/406263/cmap_HighResolution_677894401_678153601_4FGL_J1749.0+4321_daily_bin1692.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.58
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/406263/ft1_filtered_4FGL_J1749.0+4321_daily_bin1692.fits', '/scratch/kocevski/406263/ft2_4FGL_J1749.0+4321_daily_bin1692.fits', expMap='/scratch/kocevski/406263/expmap_677894401_678153601_4FGL_J1749.0+4321_daily_bin1692.fits', expCube='/scratch/kocevski/406263/ltcube_677894401_678153601_4FGL_J1749.0+4321_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/406263/Model_4FGL_J1749.0+4321_daily_bin1692.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  1.000e-04  1.000e+04 ( 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/406263/ft1_filtered_4FGL_J1749.0+4321_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/406263/ft2_4FGL_J1749.0+4321_daily_bin1692.fits
Exposure map: /scratch/kocevski/406263/expmap_677894401_678153601_4FGL_J1749.0+4321_daily_bin1692.fits
Exposure cube: /scratch/kocevski/406263/ltcube_677894401_678153601_4FGL_J1749.0+4321_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/406263/Model_4FGL_J1749.0+4321_daily_bin1692.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) = 9465.2572166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.5846       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .76454       1.0000         .10000E-03   10000.    
     6 'norm      '    .10397E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1224       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.700       1.0000         .10000E-03   10000.    
    10 'norm      '    11.423       1.0000         .10000E-03   10000.    
    11 'Prefactor '    67.482       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.1455       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12778E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1193       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.397       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4542       1.0000         .10000E-03   10000.    
    20 'norm      '    .53942       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18168E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1413       1.0000         .10000E-03   10000.    
    25 'norm      '    16.577       1.0000         .10000E-03   10000.    
    26 'norm      '    6.5549       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .72228       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0519       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9465.234     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3535 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2263       -.16130E-06** at limit **
   2  norm          4.5847        1.6984        .13106E-07    .11851E-03
   3  norm          .10000E-03    .25924       -.41291E-07** at limit **
   4  Prefactor     .10000E-03    1.4348       -.47880E-07** at limit **
   5  norm          .76446        .64819       -.65435E-07   -.35661E-03
   6  norm          .10000E-03    6.7137        .12967E-06** at limit **
   7  norm          1.1240        1.3803        .16167E-06    .42677E-03
   8  Prefactor     .10000E-03    1.8588       -.44953E-06** at limit **
   9  Prefactor     19.700        22.010        .62713E-08    .57023E-05
  10  norm          11.426        5.5819       -.53848E-07   -.18939E-04
  11  Prefactor     67.435        59.792        .23349E-06    .41303E-04
  12  Prefactor     .10000E-03    26.406       -.80396E-07** at limit **
  13  norm          5.1553        7.7520        .60063E-06    .17012E-03
  14  Prefactor     .10000E-03    25.628        .27365E-05** at limit **
  15  Prefactor     6.1154        5.7810       -.42568E-06   -.72820E-04
  16  Prefactor     .10000E-03    77.413       -.65225E-06** at limit **
  17  Prefactor     35.305        50.011       -.70126E-06    .31431E-04
  18  Prefactor     .10000E-03    3.1796       -.78959E-07** at limit **
  19  Prefactor     9.4550        8.3083       -.43996E-07   -.49097E-05
  20  norm          .53954        .96750        .37901E-06    .20536E-03
  21  norm          .10000E-03    13.272       -.54090E-07** at limit **
  22  norm          .10000E-03    5.1872        .33758E-06** at limit **
  23  Prefactor     .10000E-03    54.349       -.74983E-05** at limit **
  24  Prefactor     3.1417        5.5871       -.84990E-06   -.15262E-03
  25  norm          16.577        9.0282       -.13604E-07    .54357E-04
  26  norm          6.5546        6.1561        .42352E-08    .31875E-04
  27  Normalizat    .72201        .20091       -.16477E-05    .28008E-03
  28  Prefactor     1.0520        .11856        .11259E-05    .12927E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.58473
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.764464
  norm       = 0.0001
  norm       = 1.124
  Prefactor  = 0.0001
  Prefactor  = 19.7004
  norm       = 11.4262
  Prefactor  = 67.4349
  Prefactor  = 0.0001
  norm       = 5.15533
  Prefactor  = 0.000100001
  Prefactor  = 6.11536
  Prefactor  = 0.0001
  Prefactor  = 35.3047
  Prefactor  = 0.0001
  Prefactor  = 9.45499
  norm       = 0.539541
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 3.14166
  norm       = 16.5774
  norm       = 6.55462
  Normalizat = 0.72201
  Prefactor  = 1.05202
 **********
 **   18 **HESSE 
 **********

 FCN=   9465.234     FROM HESSE     STATUS=OK           527 CALLS     4062 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2524        .10511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.5847        1.6986        .75080E-04   -1.5280    
   3  norm          .10000E-03    .42355        .92885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.4382        .11375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .76446        .62370        .68908E-03   -1.5533    
   6  norm          .10000E-03    6.8024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1240        1.3457        .11836E-03   -1.5496    
   8  Prefactor     .10000E-03    1.9285        .25979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.700        22.007        .90240E-04   -1.4820    
  10  norm          11.426        5.5823        .11853E-03   -1.5032    
  11  Prefactor     67.435        59.765        .48859E-04   -1.4064    
  12  Prefactor     .10000E-03    26.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.1553        7.6661        .17723E-03   -1.5254    
  14  Prefactor     .10000E-03    26.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.1154        5.7512        .16230E-03   -1.5213    
  16  Prefactor     .10000E-03    77.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     35.305        50.121        .67358E-04   -1.4519    
  18  Prefactor     .10000E-03    3.1853        .16944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.4550        8.3008        .13034E-03   -1.5093    
  20  norm          .53954        .96885        .15607E-02   -1.5561    
  21  norm          .10000E-03    13.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.2472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    54.311        .59034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.1417        5.6159        .22872E-03   -1.5353    
  25  norm          16.577        9.0225        .98369E-04   -1.4893    
  26  norm          6.5546        6.1594        .15675E-03   -1.5196    
  27  Normalizat    .72201        .21365        .34059E-03   -1.0303    
  28  Prefactor     1.0520        .12669        .18152E-03   -.91015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76386e-09
Minuit parameter uncertainties:
  1  1.47192e-06
  2  1.69858
  3  1.25865e-05
  4  6.32348e-07
  5  0.623702
  6  8.84681e-06
  7  1.34577
  8  1.64168e-05
  9  22.0163
  10  5.5826
  11  59.8178
  12  1.59563e-06
  13  7.66755
  14  0.000323164
  15  5.75171
  16  0.000162649
  17  50.1804
  18  3.29434e-06
  19  8.30184
  20  0.96888
  21  2.15692e-06
  22  1.27011e-05
  23  0.000690261
  24  5.61682
  25  9.02328
  26  6.16
  27  0.213899
  28  0.126722
Done.

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

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  9.455e+00  8.302e+00  1.000e-04  1.000e+04 ( 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.052e+00  1.267e-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.220e-01  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.95
Ra Dec: 267.255 43.362
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 2.37e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.34e-05

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

Saving results to:
/scratch/kocevski/406263/likelihoodResults_677894401_678153601_4FGL_J1749.0+4321_daily_bin1692.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) = 9465.16056944
delta logL = 0.0735733770198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9465.15224659
delta logL = 0.0818962312896

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6590       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5022       1.0000          .0000       10.000    
     3 'Normalizat'    .70836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0576       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   9465.152     FROM MIGRAD    STATUS=FAILED       105 CALLS      303 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6544        196.21        .84431E-03    .33282E-03
   2  Index         2.5016        5.9385        .62855E-02    .52651E-03
   3  Normalizat    .70816        .26500        .34366E-03   -.11248E-04
   4  Prefactor     1.0578        .15515        .18109E-03   -.35157E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9465.152     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      388 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6544        196.21        .16718E-03    .33282E-03
   2  Index         2.5016        5.9385        .12636E-02    .52651E-03
   3  Normalizat    .70816        .26500        .37488E-03   -.11248E-04
   4  Prefactor     1.0578        .15515        .18508E-03   -.35157E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9465.152     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      421 TOTAL
                     EDM=   .70E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6544        12.513        .16886E-03   -.25180E-04
   2  Index         2.5016        1.2412        .12571E-02   -.43951E-05
   3  Normalizat    .70816        .19999        .13746E-04   -.11248E-04
   4  Prefactor     1.0578        .12576        .72434E-05   -.37668E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.65439
  Index      = 2.50165
  Normalizat = 0.708164
  Prefactor  = 1.05778
 **********
 **   18 **HESSE 
 **********

 FCN=   9465.152     FROM HESSE     STATUS=OK            23 CALLS      444 TOTAL
                     EDM=   .64E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6544        11.321        .67545E-05   -1.5232    
   2  Index         2.5016        1.1254        .50284E-04   -.52322    
   3  Normalizat    .70816        .19887        .27492E-05   -1.0357    
   4  Prefactor     1.0578        .12511        .14487E-05   -.90828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40309e-13
Minuit parameter uncertainties:
  1  11.3254
  2  1.13842
  3  0.199069
  4  0.125149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406263': 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) = 9465.15224336
delta logL = 0.0818994644542

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  5.654e+00  1.133e+01  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.502e+00  1.138e+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.058e+00  1.251e-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.082e-01  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.13
Ra Dec: 267.255 43.362
Photon Index (Free Index): 2.50 +/- 1.14
Photon Flux (Free Index): 3.65e-08 +/- 3.66e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.16e-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/406263/cmap_HighResolution_677894401_678153601_4FGL_J1749.0+4321_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.03e-03', comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='1.06e-05', photon_flux_error='2.37e-08', dlogl='8.19e-02', energy_flux='1.52e-05', photon_flux2='3.65e-08', job_status='DONE', time_completed='2022-06-29 05:13:40.772205', photon_index_error2='1.14', photon_index2='2.50', ts='1.95', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='7.98e-08', energy_flux_error2='1.16e-05', EG='0.72', time_epoch_completed='1656504820.77', return_code='0', job_id='406263', GAL2='1.06', EG2='0.71', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='3.66e-08', ts2='2.13', photon_index='2.09' WHERE bin_id='1692' AND source_name='4FGL J1749.0+4321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 05:13:40 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 406229: <4FGL_J1749.0+4321_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1749.0+4321_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:07:33 2022
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:51:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:51:41 2022
Terminated at Wed Jun 29 05:12:08 2022
Results reported at Wed Jun 29 05:12:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_daily_bin1692 267.255 43.3616 677894401 678153601 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 :                                   1197.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1226 sec.
    Turnaround time :                            18275 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 406263: <4FGL_J1749.0+4321_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1749.0+4321_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:07:34 2022
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:51:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:51:55 2022
Terminated at Wed Jun 29 05:13:41 2022
Results reported at Wed Jun 29 05:13:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_daily_bin1692 267.255 43.3616 677894401 678153601 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 :                                   1195.06 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             311.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1306 sec.
    Turnaround time :                            18367 sec.

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

