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


Performing analysis on: 4FGL_J1229.7-5304_daily_bin1693
RA = 187.444, Dec = -53.0704
tmin = 678153601, tmax = 678412801
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='540762', job_status='RUN', time_executed='2022-07-02 02:13:49.208152', time_epoch_executed='1656753229.21' WHERE source_name='4FGL J1229.7-5304' and cadence='daily' and bin_id='1693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/540762

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/540762/ft1_4FGL_J1229.7-5304_daily_bin1693.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/540762/ft2_4FGL_J1229.7-5304_daily_bin1693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/540762/ft1_4FGL_J1229.7-5304_daily_bin1693.fits outfile=/scratch/kocevski/540762/ft1_filteredMKT_4FGL_J1229.7-5304_daily_bin1693.fits ra=187.444 dec=-53.0704 rad=12.0 tmin=678153601.0 tmax=678412801.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.21
user 3.93
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/540762/ft2_4FGL_J1229.7-5304_daily_bin1693.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/540762/ft2_4FGL_J1229.7-5304_daily_bin1693.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/540762/ft1_filteredMKT_4FGL_J1229.7-5304_daily_bin1693.fits evtable="EVENTS" outfile="/scratch/kocevski/540762/ft1_filtered_4FGL_J1229.7-5304_daily_bin1693.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.36
sys 0.14

Number of photons that the gtmktime cut: 3787

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/540762/ft1_filtered_4FGL_J1229.7-5304_daily_bin1693.fits" evtable="EVENTS" scfile=/scratch/kocevski/540762/ft2_4FGL_J1229.7-5304_daily_bin1693.fits sctable="SC_DATA" outfile=/scratch/kocevski/540762/ltcube_678153601_678412801_4FGL_J1229.7-5304_daily_bin1693.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/540762/ft2_4FGL_J1229.7-5304_daily_bin1693.fits
.....................!
real 15.23
user 14.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/540762/ft1_filtered_4FGL_J1229.7-5304_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/540762/ft2_4FGL_J1229.7-5304_daily_bin1693.fits sctable="SC_DATA" expcube=/scratch/kocevski/540762/ltcube_678153601_678412801_4FGL_J1229.7-5304_daily_bin1693.fits outfile=/scratch/kocevski/540762/expmap_678153601_678412801_4FGL_J1229.7-5304_daily_bin1693.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/540762/ltcube_678153601_678412801_4FGL_J1229.7-5304_daily_bin1693.fits
.....................!
real 194.08
user 188.76
sys 4.59

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 G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Extended source FGES J1036.3-5833 in ROI with RadialDisk spatial model.
Extended source FGES J1109.4-6115 in ROI with RadialDisk spatial model.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Extended source Westerlund 2 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RCW86.fits is the correct path to the extended template.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Added 321 point sources and 12 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 J1229.7-5304 @ 187.444 -53.0704

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/540762/ft1_filtered_4FGL_J1229.7-5304_daily_bin1693.fits scfile=/scratch/kocevski/540762/ft2_4FGL_J1229.7-5304_daily_bin1693.fits outfile=/scratch/kocevski/540762/cmap_678153601_678412801_4FGL_J1229.7-5304_daily_bin1693.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=187.444 yref=-53.0704 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/540762/ft1_filtered_4FGL_J1229.7-5304_daily_bin1693.fits scfile=/scratch/kocevski/540762/ft2_4FGL_J1229.7-5304_daily_bin1693.fits outfile=/scratch/kocevski/540762/cmap_HighResolution_678153601_678412801_4FGL_J1229.7-5304_daily_bin1693.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=187.444 yref=-53.0704 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/540762/ft1_filtered_4FGL_J1229.7-5304_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/540762/ft2_4FGL_J1229.7-5304_daily_bin1693.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/540762/Model_4FGL_J1229.7-5304_daily_bin1693.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 CenA Lobes
adding source EG_v02
adding source FGES J1036.3-5833
adding source FGES J1109.4-6115
adding source FGES J1213.3-6240
adding source FGES J1409.1-6121
adding source FHES J1501.0-6310
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source HESS J1420-607
adding source RCW 86
adding source Westerlund 2
Working on...
/scratch/kocevski/540762/ft1_filtered_4FGL_J1229.7-5304_daily_bin1693.fits.....................!
real 959.28
user 955.28
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/540762/ft1_filtered_4FGL_J1229.7-5304_daily_bin1693.fits', '/scratch/kocevski/540762/ft2_4FGL_J1229.7-5304_daily_bin1693.fits', expMap='/scratch/kocevski/540762/expmap_678153601_678412801_4FGL_J1229.7-5304_daily_bin1693.fits', expCube='/scratch/kocevski/540762/ltcube_678153601_678412801_4FGL_J1229.7-5304_daily_bin1693.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/540762/Model_4FGL_J1229.7-5304_daily_bin1693.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1229.7-5304'

4FGL J1229.7-5304
   Spectrum: PowerLaw
550    Prefactor:  7.161e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
551        Index:  2.125e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
552        Scale:  2.433e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/540762/ft1_filtered_4FGL_J1229.7-5304_daily_bin1693.fits
Spacecraft file(s): /scratch/kocevski/540762/ft2_4FGL_J1229.7-5304_daily_bin1693.fits
Exposure map: /scratch/kocevski/540762/expmap_678153601_678412801_4FGL_J1229.7-5304_daily_bin1693.fits
Exposure cube: /scratch/kocevski/540762/ltcube_678153601_678412801_4FGL_J1229.7-5304_daily_bin1693.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/540762/Model_4FGL_J1229.7-5304_daily_bin1693.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) = 34464.0428426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12397E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.7595       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1864       1.0000         .10000E-03   10000.    
     4 'Prefactor '    155.37       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0540       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7955       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1995       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1048       1.0000         .10000E-03   10000.    
    16 'norm      '    8.9379       1.0000         .10000E-03   10000.    
    17 'norm      '    24.426       1.0000         .10000E-03   10000.    
    18 'norm      '    .23909E-01   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99557       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0387       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1199E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   34464.03     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     2057 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    113.47       -.15576E-06** at limit **
   2  Prefactor     8.7584        17.256        .11092E-05   -.54507E-04
   3  Prefactor     5.1895        9.3919       -.11112E-05   -.54534E-04
   4  Prefactor     155.39        106.83        .16162E-04   -.16383E-03
   5  Prefactor     .10000E-03    .56949        .43773E-08** at limit **
   6  Prefactor     8.0535        29.059       -.45459E-06   -.20076E-05
   7  norm          .10000E-03    5.4652       -.14553E-06** at limit **
   8  Prefactor     .10000E-03    3.4452       -.43777E-07** at limit **
   9  Prefactor     2.7961        6.0242       -.85580E-06   -.44132E-03
  10  Prefactor     .10000E-03    15.820        .18343E-06** at limit **
  11  Prefactor     .10000E-03    11.243       -.20282E-06** at limit **
  12  Prefactor     .10000E-03    1.8635        .27867E-07** at limit **
  13  norm          .10000E-03    5.9735        .26918E-06** at limit **
  14  Prefactor     6.1986        5.4617       -.21614E-06   -.10296E-03
  15  Prefactor     2.1063        5.1927       -.39243E-05   -.69192E-03
  16  norm          8.9385        6.3164       -.56150E-06    .14055E-03
  17  norm          24.427        5.9084       -.33119E-06    .30949E-03
  18  norm          .21926E-01    .14273        .45373E-07   -.68772E-03
  19  Normalizat    .99554        .20741       -.35371E-06   -.69936E-04
  20  Prefactor     1.0387        .28464E-01    .14256E-06    .17270E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.75844
  Prefactor  = 5.18948
  Prefactor  = 155.391
  Prefactor  = 0.0001
  Prefactor  = 8.0535
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.79608
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.1986
  Prefactor  = 2.10632
  norm       = 8.9385
  norm       = 24.4269
  norm       = 0.0219258
  Normalizat = 0.995537
  Prefactor  = 1.03866  **********
 **   18 **HESSE 
 **********

 FCN=   34464.03     FROM HESSE     STATUS=OK           295 CALLS     2352 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    115.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.7584        17.260        .13543E-03   -1.5116    
   3  Prefactor     5.1895        9.3451        .17652E-03   -1.5252    
   4  Prefactor     155.39        103.96        .16171E-03   -1.3208    
   5  Prefactor     .10000E-03    .57236        .13624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.0535        29.033        .14128E-03   -1.5140    
   7  norm          .10000E-03    5.4907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.4836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7961        6.0504        .24333E-03   -1.5374    
  10  Prefactor     .10000E-03    15.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.8668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.0445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.1986        5.4557        .16123E-03   -1.5210    
  15  Prefactor     2.1063        5.4311        .28441E-03   -1.5418    
  16  norm          8.9385        6.2643        .13407E-03   -1.5110    
  17  norm          24.427        5.8884        .81051E-04   -1.4719    
  18  norm          .21926E-01    2.4195        .13314E-02   -1.5678    
  19  Normalizat    .99554        .20396        .88524E-03   -.93180    
  20  Prefactor     1.0387        .28681E-01    .12324E-03   -.91452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28105e-07
Minuit parameter uncertainties:
  1  1.59018e-05
  2  17.2703
  3  9.34771
  4  104.087
  5  2.59694e-06
  6  29.084
  7  2.89916e-06
  8  2.15462e-05
  9  6.05169
  10  8.76334e-06
  11  4.90247e-06
  12  7.74648e-08
  13  1.33146e-06
  14  5.45613
  15  5.43235
  16  6.26474
  17  5.88851
  18  0.459617
  19  0.204123
  20  0.0286812DDone.

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

Extracting fit parameters...

4FGL J1229.7-5304
   Spectrum: PowerLaw
550    Prefactor:  8.054e+00  2.908e+01  1.000e-04  1.000e+04 ( 1.000e-14)
551        Index:  2.125e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
552        Scale:  2.433e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1181    Prefactor:  1.039e+00  2.868e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1182        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1183        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1158   Normalization:  9.955e-01  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 187.444 -53.070
Photon Flux Upper Limit: 7.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/540762/likelihoodResults_678153601_678412801_4FGL_J1229.7-5304_daily_bin1693.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) = 34463.9569067
delta logL = 0.0748873019475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 34463.9419221
delta logL = 0.0898718636672

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.023       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4140       1.0000          .0000       10.000    
     3 'Normalizat'    .99924       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0385       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1199E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   34463.94     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      220 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.023        546.60        .27749E-02   -.28951E-03
   2  Index         1.4138        2.3089        .50000       -.53278E-04
   3  Normalizat    .99928        .42831E-01    .19820        .15699E-03
   4  Prefactor     1.0385        .55825E-02    .27888E-01   -.56468E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.023
  Index      = 1.41383
  Normalizat = 0.999277
  Prefactor  = 1.0385
 **********
 **   18 **HESSE 
 **********

 FCN=   34463.94     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.023        30.311        .11100E-03   -1.4986    
   2  Index         1.4138        1.1211        .23088E-01   -.79982    
   3  Normalizat    .99928        .19459        .88374E-03   -.93055    
   4  Prefactor     1.0385        .28015E-01    .12325E-03   -.91457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44885e-10
Minuit parameter uncertainties:
  1  30.3472
  2  1.14142
  3  0.194731
  4  0.0280155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/540762': 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) = 34463.9419221
delta logL = 0.0898718933313

Extracting fit parameters...

4FGL J1229.7-5304
   Spectrum: PowerLaw
550    Prefactor:  1.302e+01  3.035e+01  1.000e-04  1.000e+04 ( 1.000e-14)
551        Index:  1.414e+00  1.141e+00  0.000e+00  1.000e+01 (-1.000e+00)
552        Scale:  2.433e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1181    Prefactor:  1.038e+00  2.802e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1182        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1183        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1158   Normalization:  9.993e-01  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 187.444 -53.070

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/540762/cmap_HighResolution_678153601_678412801_4FGL_J1229.7-5304_daily_bin1693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.49e-03', job_status='DONE', photon_flux_upper_limit='7.24e-08', time_completed='2022-07-02 03:31:12.775456', job_id='540762', GAL2='1.04', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1656757872.78', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='8.99e-02', ts2='0.27', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1693' AND source_name='4FGL J1229.7-5304' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul  2 03:31:12 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 540761: <4FGL_J1229.7-5304_daily_bin1693> in cluster <slac> Done

Job <4FGL_J1229.7-5304_daily_bin1693> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul  2 00:06:18 2022
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  2 02:12:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  2 02:12:39 2022
Terminated at Sat Jul  2 03:30:41 2022
Results reported at Sat Jul  2 03:30:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.7-5304_daily_bin1693 187.444 -53.0704 678153601 678412801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1229.7-5304 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   4663.00 sec.
    Max Memory :                                 633 MB
    Average Memory :                             454.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4682 sec.
    Turnaround time :                            12263 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 540762: <4FGL_J1229.7-5304_daily_bin1693> in cluster <slac> Done

Job <4FGL_J1229.7-5304_daily_bin1693> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Jul  2 00:06:18 2022
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  2 02:12:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  2 02:12:39 2022
Terminated at Sat Jul  2 03:31:13 2022
Results reported at Sat Jul  2 03:31:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.7-5304_daily_bin1693 187.444 -53.0704 678153601 678412801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1229.7-5304 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   4639.00 sec.
    Max Memory :                                 1236 MB
    Average Memory :                             453.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4714 sec.
    Turnaround time :                            12295 sec.

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

