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


Performing analysis on: 4FGL_J1749.0+4321_weekly_bin730
RA = 267.255, Dec = 43.3616
tmin = 680486401, tmax = 681091201
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='659693', job_status='RUN', time_executed='2022-08-02 02:25:07.514731', time_epoch_executed='1659432307.51' WHERE source_name='4FGL J1749.0+4321' and cadence='weekly' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659693

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659693/ft1_4FGL_J1749.0+4321_weekly_bin730.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659693/ft2_4FGL_J1749.0+4321_weekly_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659693/ft1_4FGL_J1749.0+4321_weekly_bin730.fits outfile=/scratch/kocevski/659693/ft1_filteredMKT_4FGL_J1749.0+4321_weekly_bin730.fits ra=267.255 dec=43.3616 rad=12.0 tmin=680486401.0 tmax=681091201.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 6.24
user 5.95
sys 0.26

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

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

Number of photons that the gtmktime cut: 3421

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659693/ft1_filtered_4FGL_J1749.0+4321_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/659693/ft2_4FGL_J1749.0+4321_weekly_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/659693/ltcube_680486401_681091201_4FGL_J1749.0+4321_weekly_bin730.fits outfile=/scratch/kocevski/659693/expmap_680486401_681091201_4FGL_J1749.0+4321_weekly_bin730.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/659693/ltcube_680486401_681091201_4FGL_J1749.0+4321_weekly_bin730.fits
.....................!
real 192.13
user 186.44
sys 4.51

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
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/659693/ft1_filtered_4FGL_J1749.0+4321_weekly_bin730.fits scfile=/scratch/kocevski/659693/ft2_4FGL_J1749.0+4321_weekly_bin730.fits outfile=/scratch/kocevski/659693/cmap_680486401_681091201_4FGL_J1749.0+4321_weekly_bin730.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.59
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659693/ft1_filtered_4FGL_J1749.0+4321_weekly_bin730.fits scfile=/scratch/kocevski/659693/ft2_4FGL_J1749.0+4321_weekly_bin730.fits outfile=/scratch/kocevski/659693/cmap_HighResolution_680486401_681091201_4FGL_J1749.0+4321_weekly_bin730.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.60
user 0.43
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.4888       1.0000         .10000E-03   10000.    
     3 'norm      '    .35130       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .89474       1.0000         .10000E-03   10000.    
     6 'norm      '    1.6123       1.0000         .10000E-03   10000.    
     7 'norm      '    2.0549       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .54986       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.9769       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .42986E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.6990       1.0000         .10000E-03   10000.    
    13 'norm      '    4.0235       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.154       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .69145       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.6931       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.859       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1923       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.2043       1.0000         .10000E-03   10000.    
    20 'norm      '    .48480       1.0000         .10000E-03   10000.    
    21 'norm      '    41.649       1.0000         .10000E-03   10000.    
    22 'norm      '    2.8240       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.7269       1.0000         .10000E-03   10000.    
    25 'norm      '    9.5421       1.0000         .10000E-03   10000.    
    26 'norm      '    7.2346       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1947       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .90333       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=   36473.47     FROM MIGRAD    STATUS=CONVERGED     82 CALLS     2981 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .95104       -.35303E-06** at limit **
   2  norm          3.4888        .86097        .40633E-07   -.25386E-04
   3  norm          .35135        .28266        .89124E-07    .62821E-04
   4  Prefactor     .10000E-03    .63919       -.21215E-06** at limit **
   5  norm          .89480        .34615       -.39625E-07   -.32676E-03
   6  norm          1.6120        1.8849       -.15889E-05   -.16771E-02
   7  norm          2.0549        .74258        .61968E-07   -.92956E-04
   8  Prefactor     .54990        .59689        .14351E-07   -.34716E-04
   9  Prefactor     .10000E-03    18.157       -.40537E-05** at limit **
  10  norm          2.9767        1.8500        .12557E-05    .34415E-02
  11  Prefactor     .10003E-03    157.85       -.76262E-05** at limit **
  12  Prefactor     8.6977        1.0348       -.27942E-07    .84281E-04
  13  norm          4.0230        2.1645        .31340E-06    .15386E-02
  14  Prefactor     12.154        1.0045        .80861E-10   -.77306E-04
  15  Prefactor     .69227        1.4645       -.12096E-05   -.41683E-03
  16  Prefactor     8.6900        1.1748        .15359E-06   -.31064E-02
  17  Prefactor     18.860        1.0151       -.54104E-08    .68765E-03
  18  Prefactor     5.1922        2.1285        .97293E-06   -.54164E-02
  19  Prefactor     6.2040        3.2084       -.32378E-06   -.11954E-02
  20  norm          .48450        .54096        .16049E-06    .16553E-03
  21  norm          41.648        1.0032        .11298E-07   -.65352E-03
  22  norm          2.8240        2.4820        .18994E-05   -.19930E-03
  23  Prefactor     .10000E-03    1.9957       -.44991E-06** at limit **
  24  Prefactor     3.7268        1.8516        .22554E-07   -.50865E-02
  25  norm          9.5421        2.3443       -.20285E-06   -.16543E-02
  26  norm          7.2344        1.5303        .65641E-06   -.40577E-02
  27  Normalizat    1.1946        .11043       -.10236E-05   -.22174E-03
  28  Prefactor     .90334        .67003E-01   -.37595E-06   -.28369E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.48882
  norm       = 0.35135
  Prefactor  = 0.0001
  norm       = 0.894795
  norm       = 1.61201
  norm       = 2.05488
  Prefactor  = 0.549899
  Prefactor  = 0.0001
  norm       = 2.97665
  Prefactor  = 0.000100027
  Prefactor  = 8.69774
  norm       = 4.02301
  Prefactor  = 12.1536
  Prefactor  = 0.692272
  Prefactor  = 8.68996
  Prefactor  = 18.8602
  Prefactor  = 5.19218
  Prefactor  = 6.20402
  norm       = 0.484503
  norm       = 41.6484
  norm       = 2.824
  Prefactor  = 0.0001
  Prefactor  = 3.72677
  norm       = 9.54207
  norm       = 7.23439
  Normalizat = 1.19461
  Prefactor  = 0.903345
 **********
 **   18 **HESSE 
 **********

 FCN=   36473.47     FROM HESSE     STATUS=OK           609 CALLS     3590 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .41842        .39772E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.4888        .86288        .54119E-02   -1.5334    
   3  norm          .35135        .32193        .20901E-01   -1.5589    
   4  Prefactor     .10000E-03    .63353        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .89480        .36151        .12788E-01   -1.5519    
   6  norm          1.6120        1.9524        .83388E-02   -1.5454    
   7  norm          2.0549        .74873        .72084E-02   -1.5421    
   8  Prefactor     .54990        .60625        .11473E-01   -1.5560    
   9  Prefactor     .10000E-03    17.802        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9767        1.9942        .58829E-02   -1.5363    
  11  Prefactor     .10003E-03    8.4308        .16886       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.6977        32.056        .33976E-02   -1.5118    
  13  norm          4.0230        2.2223        .50260E-02   -1.5307    
  14  Prefactor     12.154        13.660        .28726E-02   -1.5011    
  15  Prefactor     .69227        1.5348        .12029E-01   -1.5542    
  16  Prefactor     8.6900        11.954        .33988E-02   -1.5118    
  17  Prefactor     18.860        16.840        .23057E-02   -1.4839    
  18  Prefactor     5.1922        5.3707        .44104E-02   -1.5252    
  19  Prefactor     6.2040        4.1109        .40292E-02   -1.5210    
  20  norm          .48450        .67098        .34699E-01   -1.5569    
  21  norm          41.648        26.909        .15529E-02   -1.4416    
  22  norm          2.8240        3.0888        .60504E-02   -1.5372    
  23  Prefactor     .10000E-03    1.9837        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.7268        2.5575        .52291E-02   -1.5322    
  25  norm          9.5421        4.1082        .32433E-02   -1.5090    
  26  norm          7.2344        3.4899        .37282E-02   -1.5170    
  27  Normalizat    1.1946        .94563E-01    .65483E-01   -.86770    
  28  Prefactor     .90334        .56287E-01    .45047E-01   -.96024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47831e-07
Minuit parameter uncertainties:
  1  2.47813e-06
  2  0.862882
  3  0.32193
  4  1.89124e-06
  5  0.361513
  6  1.95244
  7  0.748729
  8  0.606259
  9  8.85659e-05
  10  1.99428
  11  0.000946449
  12  32.1198
  13  2.22239
  14  13.6636
  15  1.53486
  16  11.9571
  17  16.8442
  18  5.37115
  19  4.11112
  20  0.670985
  21  26.9171
  22  3.08898
  23  4.03779e-06
  24  2.55756
  25  4.10828
  26  3.49001
  27  0.094577
  28  0.056291
Done.

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

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  6.204e+00  4.111e+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:  9.033e-01  5.629e-02  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:  1.195e+00  9.458e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.88
Ra Dec: 267.255 43.362
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.77e-08 +/- 1.17e-08
Energy Flux (Fixed Index): 9.99e-06 +/- 6.62e-06

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

Saving results to:
/scratch/kocevski/659693/likelihoodResults_680486401_681091201_4FGL_J1749.0+4321_weekly_bin730.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) = 36473.4615987
delta logL = 0.00471070143976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 36473.4603418
delta logL = 0.00596764694637

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9870       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1407       1.0000          .0000       10.000    
     3 'Normalizat'    1.1932       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90381       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   36473.46     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      244 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9864        4.6888        .16410E-03   -.41566E-04
   2  Index         2.1408        .51700        .93166E-02    .76049E-03
   3  Normalizat    1.1932        .10641        .28984E-03   -.10854E-02
   4  Prefactor     .90381        .66480E-01    .20541E-03   -.16594E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.9864
  Index      = 2.14081
  Normalizat = 1.19317
  Prefactor  = 0.903812
 **********
 **   18 **HESSE 
 **********

 FCN=   36473.46     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9864        4.5026        .65641E-05   -1.5219    
   2  Index         2.1408        .49637        .18633E-02   -.60874    
   3  Normalizat    1.1932        .10640        .11593E-04   -.86814    
   4  Prefactor     .90381        .66510E-01    .41082E-04   -.96008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48199e-10
Minuit parameter uncertainties:
  1  4.50287
  2  0.497594
  3  0.106424
  4  0.0665164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659693': 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) = 36473.4603417
delta logL = 0.00596768478135

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  5.986e+00  4.503e+00  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.141e+00  4.976e-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.038e-01  6.652e-02  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:  1.193e+00  1.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.88
Ra Dec: 267.255 43.362
Photon Index (Free Index): 2.14 +/- 0.50
Photon Flux (Free Index): 1.89e-08 +/- 1.61e-08
Energy Flux (Free Index): 9.51e-06 +/- 7.54e-06

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/659693/cmap_HighResolution_680486401_681091201_4FGL_J1749.0+4321_weekly_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-03', comment='SUCCESS', photon_flux='1.77e-08', energy_flux2='9.51e-06', photon_flux_error='1.17e-08', dlogl='5.97e-03', energy_flux='9.99e-06', photon_flux2='1.89e-08', job_status='DONE', time_completed='2022-08-02 03:21:45.451057', photon_index_error2='0.50', photon_index2='2.14', ts='3.88', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='4.17e-08', energy_flux_error2='7.54e-06', EG='1.19', time_epoch_completed='1659435705.45', return_code='0', job_id='659693', GAL2='0.90', EG2='1.19', return_code2='0', energy_flux_error='6.62e-06', photon_flux_error2='1.61e-08', ts2='3.88', photon_index='2.09' WHERE bin_id='730' AND source_name='4FGL J1749.0+4321' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  2 03:21:45 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 659692: <4FGL_J1749.0+4321_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1749.0+4321_weekly_bin730> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:55 2022
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:23:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:23:30 2022
Terminated at Tue Aug  2 03:20:55 2022
Results reported at Tue Aug  2 03:20:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_weekly_bin730 267.255 43.3616 680486401 681091201 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 :                                   3391.00 sec.
    Max Memory :                                 622 MB
    Average Memory :                             368.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3445 sec.
    Turnaround time :                            11640 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 659693: <4FGL_J1749.0+4321_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1749.0+4321_weekly_bin730> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:55 2022
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:23:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:23:30 2022
Terminated at Tue Aug  2 03:21:46 2022
Results reported at Tue Aug  2 03:21:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_weekly_bin730 267.255 43.3616 680486401 681091201 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 :                                   3391.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             364.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3495 sec.
    Turnaround time :                            11691 sec.

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

