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


Performing analysis on: 4FGL_J0250.2-8224_daily_bin1703
RA = 42.5732, Dec = -82.4037
tmin = 680745601, tmax = 681004801
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='302721', job_status='RUN', time_executed='2022-08-01 00:12:18.757252', time_epoch_executed='1659337938.76' WHERE source_name='4FGL J0250.2-8224' and cadence='daily' and bin_id='1703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302721/ft1_4FGL_J0250.2-8224_daily_bin1703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302721/ft2_4FGL_J0250.2-8224_daily_bin1703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302721/ft1_4FGL_J0250.2-8224_daily_bin1703.fits outfile=/scratch/kocevski/302721/ft1_filteredMKT_4FGL_J0250.2-8224_daily_bin1703.fits ra=42.5732 dec=-82.4037 rad=12.0 tmin=680745601.0 tmax=681004801.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 3.45
user 3.16
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/302721/ft2_4FGL_J0250.2-8224_daily_bin1703.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/302721/ft2_4FGL_J0250.2-8224_daily_bin1703.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/302721/ft1_filteredMKT_4FGL_J0250.2-8224_daily_bin1703.fits evtable="EVENTS" outfile="/scratch/kocevski/302721/ft1_filtered_4FGL_J0250.2-8224_daily_bin1703.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.36
sys 0.15

Number of photons that the gtmktime cut: 1219

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302721/ft1_filtered_4FGL_J0250.2-8224_daily_bin1703.fits" evtable="EVENTS" scfile=/scratch/kocevski/302721/ft2_4FGL_J0250.2-8224_daily_bin1703.fits sctable="SC_DATA" outfile=/scratch/kocevski/302721/ltcube_680745601_681004801_4FGL_J0250.2-8224_daily_bin1703.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/302721/ft2_4FGL_J0250.2-8224_daily_bin1703.fits
.....................!
real 16.81
user 16.25
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302721/ft1_filtered_4FGL_J0250.2-8224_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/302721/ft2_4FGL_J0250.2-8224_daily_bin1703.fits sctable="SC_DATA" expcube=/scratch/kocevski/302721/ltcube_680745601_681004801_4FGL_J0250.2-8224_daily_bin1703.fits outfile=/scratch/kocevski/302721/expmap_680745601_681004801_4FGL_J0250.2-8224_daily_bin1703.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/302721/ltcube_680745601_681004801_4FGL_J0250.2-8224_daily_bin1703.fits
.....................!
real 197.91
user 189.06
sys 5.63

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 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.
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.
Added 177 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 J0250.2-8224 @ 42.5732 -82.4037

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/302721/ft1_filtered_4FGL_J0250.2-8224_daily_bin1703.fits scfile=/scratch/kocevski/302721/ft2_4FGL_J0250.2-8224_daily_bin1703.fits outfile=/scratch/kocevski/302721/cmap_680745601_681004801_4FGL_J0250.2-8224_daily_bin1703.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=42.5732 yref=-82.4037 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302721/ft1_filtered_4FGL_J0250.2-8224_daily_bin1703.fits scfile=/scratch/kocevski/302721/ft2_4FGL_J0250.2-8224_daily_bin1703.fits outfile=/scratch/kocevski/302721/cmap_HighResolution_680745601_681004801_4FGL_J0250.2-8224_daily_bin1703.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=42.5732 yref=-82.4037 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/302721/ft1_filtered_4FGL_J0250.2-8224_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/302721/ft2_4FGL_J0250.2-8224_daily_bin1703.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302721/Model_4FGL_J0250.2-8224_daily_bin1703.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/302721/ft1_filtered_4FGL_J0250.2-8224_daily_bin1703.fits.....................!
real 11061.81
user 10921.95
sys 6.00

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/302721/ft1_filtered_4FGL_J0250.2-8224_daily_bin1703.fits', '/scratch/kocevski/302721/ft2_4FGL_J0250.2-8224_daily_bin1703.fits', expMap='/scratch/kocevski/302721/expmap_680745601_681004801_4FGL_J0250.2-8224_daily_bin1703.fits', expCube='/scratch/kocevski/302721/ltcube_680745601_681004801_4FGL_J0250.2-8224_daily_bin1703.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/302721/Model_4FGL_J0250.2-8224_daily_bin1703.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0250.2-8224'

4FGL J0250.2-8224
   Spectrum: PowerLaw
106    Prefactor:  2.212e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
107        Index:  2.654e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
108        Scale:  5.941e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/302721/ft1_filtered_4FGL_J0250.2-8224_daily_bin1703.fits
Spacecraft file(s): /scratch/kocevski/302721/ft2_4FGL_J0250.2-8224_daily_bin1703.fits
Exposure map: /scratch/kocevski/302721/expmap_680745601_681004801_4FGL_J0250.2-8224_daily_bin1703.fits
Exposure cube: /scratch/kocevski/302721/ltcube_680745601_681004801_4FGL_J0250.2-8224_daily_bin1703.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/302721/Model_4FGL_J0250.2-8224_daily_bin1703.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) = 12922.6872012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10490E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.822       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.031       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.423       1.0000         .10000E-03   10000.    
     8 'norm      '    .81107E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .78449       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .98402E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.151       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.719       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4133       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .98314       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0591       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+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=   12922.12     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     2109 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3569        .36285E-03** at limit **
   2  Prefactor     15.866        37.542        .10069E-03   -.39292E-04
   3  Prefactor     .10000E-03    4.5708        .36285E-03** at limit **
   4  Prefactor     13.055        28.204        .11096E-03   -.26638E-04
   5  Prefactor     .10000E-03    7.8819        .18142E-02** at limit **
   6  Prefactor     .10000E-03    3.9521        .18142E-02** at limit **
   7  Prefactor     10.416        25.287        .12411E-03   -.34993E-04
   8  norm          .10011E-03    29.045        .17109    ** at limit **
   9  Prefactor     .78545        3.4078        .39468E-03    .58070E-04
  10  Prefactor     .10051E-03    14.270        .11577    ** at limit **
  11  Prefactor     .10083E-03    22.457        .14337    ** at limit **
  12  norm          .10000E-03    3.1810        .36285E-03** at limit **
  13  Prefactor     23.148        13.069        .83249E-04   -.34414E-04
  14  Prefactor     15.756        50.694        .10102E-03    .27009E-06
  15  Prefactor     4.4127        4.6657        .95850E-03    .66208E-04
  16  Prefactor     .10000E-03    11.398        .18142E-02** at limit **
  17  Normalizat    .98327        .19783        .37940E-03   -.31061E-03
  18  Prefactor     1.0591        .84580E-01    .15788E-03   -.10907E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.8656
  Prefactor  = 0.0001
  Prefactor  = 13.0548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4162
  norm       = 0.000100109
  Prefactor  = 0.785448
  Prefactor  = 0.000100508
  Prefactor  = 0.000100827
  norm       = 0.0001
  Prefactor  = 23.1482
  Prefactor  = 15.7565
  Prefactor  = 4.4127
  Prefactor  = 0.0001
  Normalizat = 0.983268
  Prefactor  = 1.05907
 **********
 **   18 **HESSE 
 **********

 FCN=   12922.12     FROM HESSE     STATUS=OK           258 CALLS     2367 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3575        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.866        37.542        .40276E-05   -1.4911    
   3  Prefactor     .10000E-03    4.5710        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.055        28.206        .44385E-05   -1.4985    
   5  Prefactor     .10000E-03    7.8828        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9522        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.416        25.293        .49643E-05   -1.5062    
   8  norm          .10011E-03    30.505        .16537       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .78545        3.4057        .15787E-04   -1.5531    
  10  Prefactor     .10051E-03    13.963        .11758       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10083E-03    22.384        .14368       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.1811        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.148        13.069        .33300E-05   -1.4745    
  14  Prefactor     15.756        50.694        .20204E-04   -1.4914    
  15  Prefactor     4.4127        4.6651        .38340E-04   -1.5288    
  16  Prefactor     .10000E-03    11.398        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .98327        .19791        .15176E-04   -.93593    
  18  Prefactor     1.0591        .84629E-01    .31576E-04   -.90786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12627e-10
Minuit parameter uncertainties:
  1  5.0624e-05
  2  37.5983
  3  2.45584e-05
  4  28.235
  5  3.69791e-05
  6  5.35676e-06
  7  25.3189
  8  0.0036538
  9  3.27118
  10  0.00532924
  11  0.00860716
  12  2.55028e-05
  13  13.0705
  14  50.833
  15  4.66551
  16  5.11233e-05
  17  0.19806
  18  0.0846393
Done.

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

Extracting fit parameters...

4FGL J0250.2-8224
   Spectrum: PowerLaw
106    Prefactor:  1.000e-04  2.456e-05  1.000e-04  1.000e+04 ( 1.000e-12)
107        Index:  2.654e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
108        Scale:  5.941e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.059e+00  8.464e-02  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  9.833e-01  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 42.573 -82.404
Photon Flux Upper Limit: 6.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302721/likelihoodResults_680745601_681004801_4FGL_J0250.2-8224_daily_bin1703.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) = 12922.1176735
delta logL = -0.0010442784569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12922.1166294
delta logL = -2.0710285753e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6764       1.0000          .0000       10.000    
     3 'Normalizat'    .98335       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0590       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+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=   12922.12     FROM MIGRAD    STATUS=FAILED       107 CALLS      264 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.001        .36285E-02** at limit **
   2  Index         3.3482        8.1765        .50000        .97840E-05
   3  Normalizat    .98326        .74122E-02    .37940E-03   -.18324E-02
   4  Prefactor     1.0591        .32112E-02    .15788E-03   -.45723E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   12922.12     FROM SIMPLEX   STATUS=UNCHANGED    151 CALLS      415 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.001        .43801E-03** at limit **
   2  Index         3.3482        8.1765        .25562E-04    .97840E-05
   3  Normalizat    .98326        .74122E-02    .53426E-07   -.18324E-02
   4  Prefactor     1.0591        .32112E-02    .22688E-07   -.45723E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   12922.12     FROM MIGRAD    STATUS=FAILED        69 CALLS      484 TOTAL
                     EDM=   .77E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1719.2        .29028E-04** at limit **
   2  Index         3.3476        8.2468        .50000        .96969E-05
   3  Normalizat    .98326        .18394        .15176E-04   -.18248E-02
   4  Prefactor     1.0591        .78487E-01    .63151E-05   -.45495E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.34758
  Normalizat = 0.983264
  Prefactor  = 1.05907
 **********
 **   18 **HESSE 
 **********

 FCN=   12922.12     FROM HESSE     STATUS=OK            27 CALLS      511 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6598        .58056E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3476        6.6786        .50000       -.33682    
   3  Normalizat    .98326        .18951        .30352E-05   -.93593    
   4  Prefactor     1.0591        .82143E-01    .12630E-05   -.90786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58424e-08
Minuit parameter uncertainties:
  1  3.81589e-05
  2  85.7209
  3  0.189636
  4  0.0821523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302721': 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): 1
logL (Free Index) = 12922.116625
delta logL = 4.14894748246e-06

Extracting fit parameters...

4FGL J0250.2-8224
   Spectrum: PowerLaw
106    Prefactor:  1.000e-04  3.816e-05  1.000e-04  1.000e+04 ( 1.000e-12)
107        Index:  3.348e+00  8.572e+01  0.000e+00  1.000e+01 (-1.000e+00)
108        Scale:  5.941e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.059e+00  8.215e-02  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  9.833e-01  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 42.573 -82.404

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/302721/cmap_HighResolution_680745601_681004801_4FGL_J0250.2-8224_daily_bin1703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-03', job_status='DONE', photon_flux_upper_limit='6.98e-08', time_completed='2022-08-01 03:32:14.020022', job_id='302721', GAL2='1.06', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1659349934.02', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='4.15e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1703' AND source_name='4FGL J0250.2-8224' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug  1 03:32:14 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 302652: <4FGL_J0250.2-8224_daily_bin1703> in cluster <slac> Done

Job <4FGL_J0250.2-8224_daily_bin1703> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug  1 00:05:20 2022
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug  1 00:10:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug  1 00:10:06 2022
Terminated at Mon Aug  1 03:26:05 2022
Results reported at Mon Aug  1 03:26:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0250.2-8224_daily_bin1703 42.5732 -82.4037 680745601 681004801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0250.2-8224 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11515.00 sec.
    Max Memory :                                 628 MB
    Average Memory :                             588.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11759 sec.
    Turnaround time :                            12045 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 302721: <4FGL_J0250.2-8224_daily_bin1703> in cluster <slac> Done

Job <4FGL_J0250.2-8224_daily_bin1703> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug  1 00:05:23 2022
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug  1 00:11:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug  1 00:11:08 2022
Terminated at Mon Aug  1 03:32:14 2022
Results reported at Mon Aug  1 03:32:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0250.2-8224_daily_bin1703 42.5732 -82.4037 680745601 681004801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0250.2-8224 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11860.00 sec.
    Max Memory :                                 628 MB
    Average Memory :                             596.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12066 sec.
    Turnaround time :                            12411 sec.

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

