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


Performing analysis on: 4FGL_J0733.5-5445_daily_bin1690
RA = 113.385, Dec = -54.7593
tmin = 677376001, tmax = 677635201
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='139918', job_status='RUN', time_executed='2022-06-23 00:58:46.625144', time_epoch_executed='1655971126.63' WHERE source_name='4FGL J0733.5-5445' and cadence='daily' and bin_id='1690'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/139918

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/139918/ft1_4FGL_J0733.5-5445_daily_bin1690.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/139918/ft2_4FGL_J0733.5-5445_daily_bin1690.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/139918/ft1_4FGL_J0733.5-5445_daily_bin1690.fits outfile=/scratch/kocevski/139918/ft1_filteredMKT_4FGL_J0733.5-5445_daily_bin1690.fits ra=113.385 dec=-54.7593 rad=12.0 tmin=677376001.0 tmax=677635201.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 2.57
user 2.35
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/139918/ft2_4FGL_J0733.5-5445_daily_bin1690.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/139918/ft2_4FGL_J0733.5-5445_daily_bin1690.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/139918/ft1_filteredMKT_4FGL_J0733.5-5445_daily_bin1690.fits evtable="EVENTS" outfile="/scratch/kocevski/139918/ft1_filtered_4FGL_J0733.5-5445_daily_bin1690.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.55
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 2499

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/139918/ft1_filtered_4FGL_J0733.5-5445_daily_bin1690.fits" evtable="EVENTS" scfile=/scratch/kocevski/139918/ft2_4FGL_J0733.5-5445_daily_bin1690.fits sctable="SC_DATA" outfile=/scratch/kocevski/139918/ltcube_677376001_677635201_4FGL_J0733.5-5445_daily_bin1690.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/139918/ft2_4FGL_J0733.5-5445_daily_bin1690.fits
.....................!
real 14.92
user 14.51
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/139918/ft1_filtered_4FGL_J0733.5-5445_daily_bin1690.fits evtable="EVENTS" scfile=/scratch/kocevski/139918/ft2_4FGL_J0733.5-5445_daily_bin1690.fits sctable="SC_DATA" expcube=/scratch/kocevski/139918/ltcube_677376001_677635201_4FGL_J0733.5-5445_daily_bin1690.fits outfile=/scratch/kocevski/139918/expmap_677376001_677635201_4FGL_J0733.5-5445_daily_bin1690.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/139918/ltcube_677376001_677635201_4FGL_J0733.5-5445_daily_bin1690.fits
.....................!
real 192.57
user 187.00
sys 5.19

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Puppis A in ROI with RadialDisk spatial model.
Extended source Vela X in ROI with RadialDisk spatial model.
Extended source Vela Junior in ROI with RadialDisk spatial model.
Extended source LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Added 222 point sources and 6 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0733.5-5445 @ 113.385 -54.7593

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/139918/ft1_filtered_4FGL_J0733.5-5445_daily_bin1690.fits scfile=/scratch/kocevski/139918/ft2_4FGL_J0733.5-5445_daily_bin1690.fits outfile=/scratch/kocevski/139918/cmap_677376001_677635201_4FGL_J0733.5-5445_daily_bin1690.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=113.385 yref=-54.7593 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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/139918/ft1_filtered_4FGL_J0733.5-5445_daily_bin1690.fits scfile=/scratch/kocevski/139918/ft2_4FGL_J0733.5-5445_daily_bin1690.fits outfile=/scratch/kocevski/139918/cmap_HighResolution_677376001_677635201_4FGL_J0733.5-5445_daily_bin1690.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=113.385 yref=-54.7593 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/139918/ft1_filtered_4FGL_J0733.5-5445_daily_bin1690.fits evtable="EVENTS" scfile=/scratch/kocevski/139918/ft2_4FGL_J0733.5-5445_daily_bin1690.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/139918/Model_4FGL_J0733.5-5445_daily_bin1690.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
adding source LMC-30DorWest
adding source LMC-Galaxy
adding source LMC-North
adding source Puppis A
adding source Vela Junior
adding source Vela X
Working on...
/scratch/kocevski/139918/ft1_filtered_4FGL_J0733.5-5445_daily_bin1690.fits.....................!
real 12812.13
user 12783.97
sys 2.78

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/139918/ft1_filtered_4FGL_J0733.5-5445_daily_bin1690.fits', '/scratch/kocevski/139918/ft2_4FGL_J0733.5-5445_daily_bin1690.fits', expMap='/scratch/kocevski/139918/expmap_677376001_677635201_4FGL_J0733.5-5445_daily_bin1690.fits', expCube='/scratch/kocevski/139918/ltcube_677376001_677635201_4FGL_J0733.5-5445_daily_bin1690.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/139918/Model_4FGL_J0733.5-5445_daily_bin1690.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0733.5-5445'

4FGL J0733.5-5445
   Spectrum: PowerLaw
338    Prefactor:  1.694e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
339        Index:  2.193e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
340        Scale:  1.788e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/139918/ft1_filtered_4FGL_J0733.5-5445_daily_bin1690.fits
Spacecraft file(s): /scratch/kocevski/139918/ft2_4FGL_J0733.5-5445_daily_bin1690.fits
Exposure map: /scratch/kocevski/139918/expmap_677376001_677635201_4FGL_J0733.5-5445_daily_bin1690.fits
Exposure cube: /scratch/kocevski/139918/ltcube_677376001_677635201_4FGL_J0733.5-5445_daily_bin1690.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/139918/Model_4FGL_J0733.5-5445_daily_bin1690.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) = 24091.3924669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14636E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5295       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13914E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.5299       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.956       1.0000         .10000E-03   10000.    
     9 'norm      '    2.3444       1.0000         .10000E-03   10000.    
    10 'norm      '    .33947E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10900E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .79665E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .32921E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6300       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3114       1.0000         .10000E-03   10000.    
    17 'norm      '    2.3613       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.481       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.780       1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4053       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93151       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24091.34     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2027 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.455       -.94329E-05** at limit **
   2  Prefactor     .10000E-03    2.7016       -.37281E-07** at limit **
   3  Prefactor     .10000E-03    4.2501        .52505E-08** at limit **
   4  Prefactor     .10000E-03    28.315       -.19872E-05** at limit **
   5  Prefactor     2.5343        7.4163       -.14920E-06   -.15645E-04
   6  Prefactor     .10000E-03    30.205        .13425E-04** at limit **
   7  norm          2.5299        4.4360       -.97308E-07   -.67727E-03
   8  Prefactor     13.976        8.1993        .89407E-06   -.89632E-04
   9  norm          2.3204        3.0160       -.53211E-08   -.83486E-03
  10  norm          .10000E-03    9.5467       -.60823E-05** at limit **
  11  Prefactor     .10000E-03    1.9885       -.21924E-07** at limit **
  12  Prefactor     .10000E-03    80.424       -.28501E-04** at limit **
  13  Prefactor     .10000E-03    7.8294        .98019E-06** at limit **
  14  norm          .10000E-03    1.5289        .56588E-06** at limit **
  15  Prefactor     1.6358        3.4575        .22251E-06   -.97660E-03
  16  Prefactor     6.3231        3.8532       -.12121E-05    .38983E-04
  17  norm          2.3432        4.1880       -.16882E-05   -.25465E-03
  18  Prefactor     19.526        12.312       -.84766E-06   -.29121E-05
  19  Prefactor     16.716        11.959        .56204E-06    .15700E-05
  20  norm          .10000E-03    .88937        .17728E-08** at limit **
  21  Normalizat    1.4050        .17169       -.23688E-06   -.88039E-04
  22  Prefactor     .93159        .44832E-01    .15314E-06   -.27122E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.53433
  Prefactor  = 0.0001
  norm       = 2.52989
  Prefactor  = 13.9756
  norm       = 2.32041
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.63583
  Prefactor  = 6.32311
  norm       = 2.34325
  Prefactor  = 19.5261
  Prefactor  = 16.7165
  norm       = 0.0001
  Normalizat = 1.40501
  Prefactor  = 0.931593
 **********
 **   18 **HESSE 
 **********

 FCN=   24091.34     FROM HESSE     STATUS=OK           342 CALLS     2369 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.7189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.2619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5343        7.4039        .25682E-03   -1.5390    
   6  Prefactor     .10000E-03    30.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5299        4.8507        .12840E-02   -1.5390    
   8  Prefactor     13.976        8.2447        .10722E-03   -1.4960    
   9  norm          2.3204        3.3016        .13387E-02   -1.5403    
  10  norm          .10000E-03    9.8481        .42674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    80.608        .20905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.8439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.9282        .35751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6358        6.0590        .16562E-02   -1.5452    
  16  Prefactor     6.3231        3.8494        .15978E-03   -1.5205    
  17  norm          2.3432        4.0781        .26669E-03   -1.5402    
  18  Prefactor     19.526        12.320        .90746E-04   -1.4824    
  19  Prefactor     16.716        11.996        .97773E-04   -1.4890    
  20  norm          .10000E-03    .89534        .14293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4050        .19232        .49351E-03   -.80484    
  22  Prefactor     .93159        .49468E-01    .15779E-03   -.95046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74989e-09
Minuit parameter uncertainties:
  1  1.17066e-06
  2  1.41423e-09
  3  2.87271e-06
  4  3.90042e-08
  5  7.40661
  6  0.000118314
  7  4.85142
  8  8.24538
  9  3.30185
  10  0.000106502
  11  7.5238e-07
  12  6.55934e-06
  13  1.88222e-05
  14  8.80324e-06
  15  6.06129
  16  3.84951
  17  4.07861
  18  12.3218
  19  11.9975
  20  2.70568e-07
  21  0.192417
  22  0.0494705
Done.

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

Extracting fit parameters...

4FGL J0733.5-5445
   Spectrum: PowerLaw
338    Prefactor:  1.000e-04  7.524e-07  1.000e-04  1.000e+04 ( 1.000e-13)
339        Index:  2.193e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
340        Scale:  1.788e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  9.316e-01  4.947e-02  0.000e+00  1.000e+01 ( 1.000e+00)
737        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
738        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
735   Normalization:  1.405e+00  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 113.385 -54.759
Photon Flux Upper Limit: 4.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/139918/likelihoodResults_677376001_677635201_4FGL_J0733.5-5445_daily_bin1690.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24091.3423075
delta logL = -0.00238736132451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24091.3399202
delta logL = -1.73859007191e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1877       1.0000          .0000       10.000    
     3 'Normalizat'    1.4050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93160       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+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=   24091.34     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10018E-03    20.493        .18142E-02** at limit **
   2  Index         2.1643        8.8641        .50000        .20330E-04
   3  Normalizat    1.4050        .16212E-01    .49351E-03   -.26722E-05
   4  Prefactor     .93159        .43637E-02    .15779E-03   -.72049E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010018
  Index      = 2.16427
  Normalizat = 1.40501
  Prefactor  = 0.931593
 **********
 **   18 **HESSE 
 **********

 FCN=   24091.34     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10018E-03    108.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1643        8.8013        .50000       -.60304    
   3  Normalizat    1.4050        .39349E-01    .19740E-04   -.80484    
   4  Prefactor     .93159        .10581E-01    .63116E-05   -.95046    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48051e-08
Minuit parameter uncertainties:
  1  0.00884247
  2  458.055
  3  0.0393501
  4  0.0105808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/139918': 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) = 24091.3399201
delta logL = 1.04919308797e-07

Extracting fit parameters...

4FGL J0733.5-5445
   Spectrum: PowerLaw
338    Prefactor:  1.002e-04  8.842e-03  1.000e-04  1.000e+04 ( 1.000e-13)
339        Index:  2.164e+00  4.581e+02  0.000e+00  1.000e+01 (-1.000e+00)
340        Scale:  1.788e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  9.316e-01  1.058e-02  0.000e+00  1.000e+01 ( 1.000e+00)
737        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
738        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
735   Normalization:  1.405e+00  3.935e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 113.385 -54.759

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/139918/cmap_HighResolution_677376001_677635201_4FGL_J0733.5-5445_daily_bin1690.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-03', job_status='DONE', photon_flux_upper_limit='4.35e-08', time_completed='2022-06-23 05:03:27.483728', job_id='139918', GAL2='0.93', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1655985807.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1690' AND source_name='4FGL J0733.5-5445' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jun 23 05:03:27 PDT 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 138634: <4FGL_J0733.5-5445_daily_bin1690> in cluster <slac> Done

Job <4FGL_J0733.5-5445_daily_bin1690> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jun 23 00:06:29 2022
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 00:28:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 00:28:37 2022
Terminated at Thu Jun 23 04:31:46 2022
Results reported at Thu Jun 23 04:31:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0733.5-5445_daily_bin1690 113.385 -54.7593 677376001 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0733.5-5445 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   14532.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             587.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   14588 sec.
    Turnaround time :                            15917 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 139918: <4FGL_J0733.5-5445_daily_bin1690> in cluster <slac> Done

Job <4FGL_J0733.5-5445_daily_bin1690> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Jun 23 00:07:48 2022
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 00:54:46 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 00:54:46 2022
Terminated at Thu Jun 23 05:03:28 2022
Results reported at Thu Jun 23 05:03:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0733.5-5445_daily_bin1690 113.385 -54.7593 677376001 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0733.5-5445 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   14653.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             579.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   14921 sec.
    Turnaround time :                            17740 sec.

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

