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 208 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_J0529.3-7243_daily_bin1692
RA = 82.3293, Dec = -72.733
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='404172', job_status='RUN', time_executed='2022-06-29 04:10:52.257889', time_epoch_executed='1656501052.26' WHERE source_name='4FGL J0529.3-7243' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404172

Creating custom pfile directory:
/scratch/kocevski/404172/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/404172/ft1_4FGL_J0529.3-7243_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/404172/ft2_4FGL_J0529.3-7243_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404172/ft1_4FGL_J0529.3-7243_daily_bin1692.fits outfile=/scratch/kocevski/404172/ft1_filteredMKT_4FGL_J0529.3-7243_daily_bin1692.fits ra=82.3293 dec=-72.733 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.51
user 4.24
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/404172/ft2_4FGL_J0529.3-7243_daily_bin1692.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/404172/ft2_4FGL_J0529.3-7243_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/404172/ft1_filteredMKT_4FGL_J0529.3-7243_daily_bin1692.fits evtable="EVENTS" outfile="/scratch/kocevski/404172/ft1_filtered_4FGL_J0529.3-7243_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.56
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 973

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404172/ft1_filtered_4FGL_J0529.3-7243_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/404172/ft2_4FGL_J0529.3-7243_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/404172/ltcube_677894401_678153601_4FGL_J0529.3-7243_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/404172/ft2_4FGL_J0529.3-7243_daily_bin1692.fits
.....................!
real 14.37
user 13.95
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404172/ft1_filtered_4FGL_J0529.3-7243_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/404172/ft2_4FGL_J0529.3-7243_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/404172/ltcube_677894401_678153601_4FGL_J0529.3-7243_daily_bin1692.fits outfile=/scratch/kocevski/404172/expmap_677894401_678153601_4FGL_J0529.3-7243_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/404172/ltcube_677894401_678153601_4FGL_J0529.3-7243_daily_bin1692.fits
.....................!
real 192.41
user 186.88
sys 4.97

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 LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-FarWest.fits is the correct path to the extended template.
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.
Extended source SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Added 178 point sources and 5 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 J0529.3-7243 @ 82.3293 -72.733

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/404172/ft1_filtered_4FGL_J0529.3-7243_daily_bin1692.fits scfile=/scratch/kocevski/404172/ft2_4FGL_J0529.3-7243_daily_bin1692.fits outfile=/scratch/kocevski/404172/cmap_677894401_678153601_4FGL_J0529.3-7243_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=82.3293 yref=-72.733 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404172/ft1_filtered_4FGL_J0529.3-7243_daily_bin1692.fits scfile=/scratch/kocevski/404172/ft2_4FGL_J0529.3-7243_daily_bin1692.fits outfile=/scratch/kocevski/404172/cmap_HighResolution_677894401_678153601_4FGL_J0529.3-7243_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=82.3293 yref=-72.733 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404172/ft1_filtered_4FGL_J0529.3-7243_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/404172/ft2_4FGL_J0529.3-7243_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404172/Model_4FGL_J0529.3-7243_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
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
adding source SMC-Galaxy
Working on...
/scratch/kocevski/404172/ft1_filtered_4FGL_J0529.3-7243_daily_bin1692.fits.....................!
real 8759.15
user 8721.32
sys 9.92

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/404172/ft1_filtered_4FGL_J0529.3-7243_daily_bin1692.fits', '/scratch/kocevski/404172/ft2_4FGL_J0529.3-7243_daily_bin1692.fits', expMap='/scratch/kocevski/404172/expmap_677894401_678153601_4FGL_J0529.3-7243_daily_bin1692.fits', expCube='/scratch/kocevski/404172/ltcube_677894401_678153601_4FGL_J0529.3-7243_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/404172/Model_4FGL_J0529.3-7243_daily_bin1692.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0529.3-7243'

4FGL J0529.3-7243
   Spectrum: PowerLaw
277    Prefactor:  1.328e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.369e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  1.568e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/404172/ft1_filtered_4FGL_J0529.3-7243_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/404172/ft2_4FGL_J0529.3-7243_daily_bin1692.fits
Exposure map: /scratch/kocevski/404172/expmap_677894401_678153601_4FGL_J0529.3-7243_daily_bin1692.fits
Exposure cube: /scratch/kocevski/404172/ltcube_677894401_678153601_4FGL_J0529.3-7243_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/404172/Model_4FGL_J0529.3-7243_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) = 10277.0470243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.627       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11678E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12823E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11645E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .58970       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .17809       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9254       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10588E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .14483E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11201E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .50802E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .62487       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0403       1.0000         .10000E-03   10000.    
    17 'norm      '    5.7734       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12574E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.767       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93147       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0521       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10277.05     FROM MIGRAD    STATUS=FAILED       855 CALLS     2754 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.612        40.767        .51958E-04    .13767E-03
   2  Prefactor     .10000E-03    40.781        .18142E-02** at limit **
   3  Prefactor     .10000E-03    36.073        .18142E-02** at limit **
   4  Prefactor     .10000E-03    6.7460        .18142E-02** at limit **
   5  Prefactor     .52904        16.217        .11442        .40770E-03
   6  Prefactor     .10000E-03    18.064        .18142E-02** at limit **
   7  Prefactor     .10000E-03    18.586        .18142E-02** at limit **
   8  norm          .18849        7.1955        .22971E-02    .44845E-03
   9  Prefactor     1.9258        5.6192        .14970E-02    .70501E-03
  10  Prefactor     .10000E-03    8.3982        .18142E-02** at limit **
  11  norm          .10000E-03    20.657        .18142E-02** at limit **
  12  Prefactor     .10000E-03    9.0692        .33773E-02** at limit **
  13  norm          .10000E-03    16.715        .32167E-02** at limit **
  14  Prefactor     .58875        40.969        .46661E-02    .16257E-02
  15  Prefactor     .10000E-03    2.4425        .15452E-02** at limit **
  16  norm          1.0406        2.2669        .22013E-03    .97301E-04
  17  norm          5.7730        3.2386        .13122E-03   -.10279E-03
  18  norm          .10000E-03    1.6117        .12467E-02** at limit **
  19  Prefactor     .10000E-03    31.765        .18142E-02** at limit **
  20  norm          14.758        12.052        .10423E-03   -.27282E-03
  21  Normalizat    .93158        .21729        .38090E-03    .22779E-03
  22  Prefactor     1.0520        .98785E-01    .16795E-03    .63670E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10277.05     FROM SIMPLEX   STATUS=UNCHANGED   1144 CALLS     3898 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.612        40.767        .91066E-06   -1.4162    
   2  Prefactor     .10000E-03    40.781        .90968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    36.073        .50781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7460        .16820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .52904        16.217        .51932E-06   -1.5563    
   6  Prefactor     .10000E-03    18.064        .25895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.586        .56317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .18849        7.1955        .51701E-06   -1.5621    
   9  Prefactor     1.9258        5.6192        .50849E-06   -1.5430    
  10  Prefactor     .10000E-03    8.3982        .17796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    20.657        .47637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.0692        .13920E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    16.715        .27629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .58875        40.969        .54010E-06   -1.5555    
  15  Prefactor     .10000E-03    2.4425        .99876E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0406        2.2669        .50970E-06   -1.5504    
  17  norm          5.7730        3.2386        .50114E-06   -1.5227    
  18  norm          .10000E-03    1.6117        .66501E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    31.765        .47122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.758        12.052        .49197E-06   -1.4939    
  21  Normalizat    .93158        .21729        .31355E-06   -.95359    
  22  Prefactor     1.0520        .98785E-01    .29901E-06   -.91016    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10277.05     FROM MIGRAD    STATUS=CONVERGED    339 CALLS     4237 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.611        40.763        .10392E-04    .43761E-06
   2  Prefactor     .10000E-03    40.801        .36285E-03** at limit **
   3  Prefactor     .10000E-03    36.091        .36285E-03** at limit **
   4  Prefactor     .10000E-03    6.7474        .36285E-03** at limit **
   5  Prefactor     .52903        15.861        .11481        .39055E-03
   6  Prefactor     .10000E-03    18.068        .36285E-03** at limit **
   7  Prefactor     .10000E-03    18.586        .36285E-03** at limit **
   8  norm          .18846        7.1048        .91884E-04    .15342E-04
   9  Prefactor     1.9257        5.6158        .59880E-04    .79740E-05
  10  Prefactor     .10000E-03    8.3986        .36285E-03** at limit **
  11  norm          .10000E-03    20.660        .36285E-03** at limit **
  12  Prefactor     .10000E-03    9.1353        .67546E-03** at limit **
  13  norm          .10000E-03    17.328        .12867E-03** at limit **
  14  Prefactor     .58880        41.449        .93323E-03    .28993E-05
  15  Prefactor     .10000E-03    2.4426        .30904E-03** at limit **
  16  norm          1.0406        2.2666        .88051E-05    .15494E-05
  17  norm          5.7730        3.2383        .26245E-04    .51982E-06
  18  norm          .10000E-03    1.6122        .24933E-03** at limit **
  19  Prefactor     .10000E-03    31.767        .36285E-03** at limit **
  20  norm          14.759        12.052        .20845E-04    .65446E-06
  21  Normalizat    .93159        .21725        .15236E-04    .31339E-04
  22  Prefactor     1.0520        .98830E-01    .33590E-04    .58620E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.6115
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.529029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.188462
  Prefactor  = 1.92567
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.588798
  Prefactor  = 0.0001
  norm       = 1.04061
  norm       = 5.77299
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 14.7585
  Normalizat = 0.931586
  Prefactor  = 1.05198
 **********
 **   18 **HESSE 
 **********

 FCN=   10277.05     FROM HESSE     STATUS=OK           332 CALLS     4569 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.611        40.778        .20783E-05   -1.4162    
   2  Prefactor     .10000E-03    40.801        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    36.092        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7474        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .52903        15.864        .11473       -1.5563    
   6  Prefactor     .10000E-03    18.068        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.586        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .18846        7.0972        .36754E-05   -1.5621    
   9  Prefactor     1.9257        5.6166        .23952E-05   -1.5430    
  10  Prefactor     .10000E-03    8.3986        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    20.660        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.1380        .13509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    17.329        .25734E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .58880        41.434        .37329E-04   -1.5555    
  15  Prefactor     .10000E-03    2.4427        .61808E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0406        2.2660        .17610E-05   -1.5504    
  17  norm          5.7730        3.2382        .52489E-05   -1.5227    
  18  norm          .10000E-03    1.6122        .49867E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    31.767        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.759        12.052        .41691E-05   -1.4939    
  21  Normalizat    .93159        .21703        .30472E-05   -.95359    
  22  Prefactor     1.0520        .98768E-01    .67180E-05   -.91016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.4378e-10
Minuit parameter uncertainties:
  1  40.797
  2  2.07639e-06
  3  1.48663e-06
  4  1.35266e-07
  5  5.79505
  6  1.71209e-06
  7  4.57287e-07
  8  2.31274
  9  5.61813
  10  1.81436e-07
  11  1.28711e-06
  12  9.44369e-06
  13  2.69767e-05
  14  9.88477
  15  1.53948e-07
  16  2.26617
  17  3.23829
  18  7.72963e-08
  19  9.80021e-07
  20  12.0539
  21  0.217238
  22  0.0987855
Done.

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

Extracting fit parameters...

4FGL J0529.3-7243
   Spectrum: PowerLaw
277    Prefactor:  1.926e+00  5.618e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.369e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  1.568e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  1.052e+00  9.879e-02  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  9.316e-01  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 82.329 -72.733
Photon Flux Upper Limit: 8.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/404172/likelihoodResults_677894401_678153601_4FGL_J0529.3-7243_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) = 10277.0087473
delta logL = 0.0369184545434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10276.9977501
delta logL = 0.0479156315232

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2238       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8168       1.0000          .0000       10.000    
     3 'Normalizat'    .92582       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0531       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+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.

 FCN=   10277.00     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      259 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2187        9.5605        .24058E-03    .67859E-04
   2  Index         2.8174        2.3088        .98349E-02    .13592E-04
   3  Normalizat    .92596        .20801        .38189E-03   -.10717E-05
   4  Prefactor     1.0531        .96984E-01    .16786E-03   -.25736E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.21866
  Index      = 2.81745
  Normalizat = 0.925961
  Prefactor  = 1.05307
 **********
 **   18 **HESSE 
 **********

 FCN=   10277.00     FROM HESSE     STATUS=OK            27 CALLS      286 TOTAL
                     EDM=   .94E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2187        4.3921        .48116E-04   -1.5487    
   2  Index         2.8174        1.5296        .39339E-03   -.45172    
   3  Normalizat    .92596        .20792        .15276E-04   -.95554    
   4  Prefactor     1.0531        .96896E-01    .67144E-05   -.90981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.35448e-15
Minuit parameter uncertainties:
  1  4.39321
  2  1.56067
  3  0.208096
  4  0.0969118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404172': 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) = 10276.9977489
delta logL = 0.0479168019028

Extracting fit parameters...

4FGL J0529.3-7243
   Spectrum: PowerLaw
277    Prefactor:  1.219e+00  4.393e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.817e+00  1.561e+00  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  1.568e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  1.053e+00  9.691e-02  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  9.260e-01  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
Ra Dec: 82.329 -72.733

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/404172/cmap_HighResolution_677894401_678153601_4FGL_J0529.3-7243_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.23e-03', job_status='DONE', photon_flux_upper_limit='8.08e-08', time_completed='2022-06-29 06:55:53.730125', job_id='404172', GAL2='1.05', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1656510953.73', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='4.79e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1692' AND source_name='4FGL J0529.3-7243' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 06:55:53 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 404173: <4FGL_J0529.3-7243_daily_bin1692> in cluster <slac> Done

Job <4FGL_J0529.3-7243_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:05:37 2022
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:07:14 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:07:14 2022
Terminated at Wed Jun 29 06:52:41 2022
Results reported at Wed Jun 29 06:52:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0529.3-7243_daily_bin1692 82.3293 -72.733 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0529.3-7243 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9716.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             579.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9927 sec.
    Turnaround time :                            24424 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 404172: <4FGL_J0529.3-7243_daily_bin1692> in cluster <slac> Done

Job <4FGL_J0529.3-7243_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:05:37 2022
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:07:14 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:07:14 2022
Terminated at Wed Jun 29 06:55:54 2022
Results reported at Wed Jun 29 06:55:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0529.3-7243_daily_bin1692 82.3293 -72.733 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0529.3-7243 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9859.00 sec.
    Max Memory :                                 628 MB
    Average Memory :                             574.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10120 sec.
    Turnaround time :                            24617 sec.

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

