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


Performing analysis on: 4FGL_J0250.2-8224_daily_bin1685
RA = 42.5732, Dec = -82.4037
tmin = 676080001, tmax = 676339201
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='365240', job_status='RUN', time_executed='2022-06-08 00:37:07.079511', time_epoch_executed='1654673827.08' WHERE source_name='4FGL J0250.2-8224' and cadence='daily' and bin_id='1685'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365240

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365240/ft1_4FGL_J0250.2-8224_daily_bin1685.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365240/ft2_4FGL_J0250.2-8224_daily_bin1685.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365240/ft1_4FGL_J0250.2-8224_daily_bin1685.fits outfile=/scratch/kocevski/365240/ft1_filteredMKT_4FGL_J0250.2-8224_daily_bin1685.fits ra=42.5732 dec=-82.4037 rad=12.0 tmin=676080001.0 tmax=676339201.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.08
user 3.83
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/365240/ft2_4FGL_J0250.2-8224_daily_bin1685.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/365240/ft1_filteredMKT_4FGL_J0250.2-8224_daily_bin1685.fits evtable="EVENTS" outfile="/scratch/kocevski/365240/ft1_filtered_4FGL_J0250.2-8224_daily_bin1685.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.53
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 941

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/365240/ft1_filtered_4FGL_J0250.2-8224_daily_bin1685.fits" evtable="EVENTS" scfile=/scratch/kocevski/365240/ft2_4FGL_J0250.2-8224_daily_bin1685.fits sctable="SC_DATA" outfile=/scratch/kocevski/365240/ltcube_676080001_676339201_4FGL_J0250.2-8224_daily_bin1685.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/365240/ft2_4FGL_J0250.2-8224_daily_bin1685.fits
.....................!
real 14.60
user 14.19
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365240/ft1_filtered_4FGL_J0250.2-8224_daily_bin1685.fits evtable="EVENTS" scfile=/scratch/kocevski/365240/ft2_4FGL_J0250.2-8224_daily_bin1685.fits sctable="SC_DATA" expcube=/scratch/kocevski/365240/ltcube_676080001_676339201_4FGL_J0250.2-8224_daily_bin1685.fits outfile=/scratch/kocevski/365240/expmap_676080001_676339201_4FGL_J0250.2-8224_daily_bin1685.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/365240/ltcube_676080001_676339201_4FGL_J0250.2-8224_daily_bin1685.fits
.....................!
real 190.60
user 185.47
sys 4.71

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/365240/ft1_filtered_4FGL_J0250.2-8224_daily_bin1685.fits scfile=/scratch/kocevski/365240/ft2_4FGL_J0250.2-8224_daily_bin1685.fits outfile=/scratch/kocevski/365240/cmap_676080001_676339201_4FGL_J0250.2-8224_daily_bin1685.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/365240/ft1_filtered_4FGL_J0250.2-8224_daily_bin1685.fits scfile=/scratch/kocevski/365240/ft2_4FGL_J0250.2-8224_daily_bin1685.fits outfile=/scratch/kocevski/365240/cmap_HighResolution_676080001_676339201_4FGL_J0250.2-8224_daily_bin1685.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.56
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/365240/ft1_filtered_4FGL_J0250.2-8224_daily_bin1685.fits evtable="EVENTS" scfile=/scratch/kocevski/365240/ft2_4FGL_J0250.2-8224_daily_bin1685.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/365240/Model_4FGL_J0250.2-8224_daily_bin1685.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/365240/ft1_filtered_4FGL_J0250.2-8224_daily_bin1685.fits.....................!
real 8180.56
user 8160.69
sys 3.54

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/365240/ft1_filtered_4FGL_J0250.2-8224_daily_bin1685.fits', '/scratch/kocevski/365240/ft2_4FGL_J0250.2-8224_daily_bin1685.fits', expMap='/scratch/kocevski/365240/expmap_676080001_676339201_4FGL_J0250.2-8224_daily_bin1685.fits', expCube='/scratch/kocevski/365240/ltcube_676080001_676339201_4FGL_J0250.2-8224_daily_bin1685.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/365240/Model_4FGL_J0250.2-8224_daily_bin1685.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/365240/ft1_filtered_4FGL_J0250.2-8224_daily_bin1685.fits
Spacecraft file(s): /scratch/kocevski/365240/ft2_4FGL_J0250.2-8224_daily_bin1685.fits
Exposure map: /scratch/kocevski/365240/expmap_676080001_676339201_4FGL_J0250.2-8224_daily_bin1685.fits
Exposure cube: /scratch/kocevski/365240/ltcube_676080001_676339201_4FGL_J0250.2-8224_daily_bin1685.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/365240/Model_4FGL_J0250.2-8224_daily_bin1685.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) = 9899.12846463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0048       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7068       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6811       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.486       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8405       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.387       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10323E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.291       1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.309       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0133       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2684       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .84221       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.

 FCN=   9899.082     FROM MIGRAD    STATUS=CONVERGED    347 CALLS     1731 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0024        6.5950       -.42899E-06   -.52554E-03
   2  Prefactor     4.6427        170.48        .32024E-06   -.74639E-04
   3  Prefactor     1.6769        6.0920        .15113E-05    .22950E-03
   4  Prefactor     35.482        30.318        .15502E-06   -.73436E-04
   5  Prefactor     .10000E-03    17.765        .61876E-06** at limit **
   6  Prefactor     .10000E-03    6.8752        .10092E-06** at limit **
   7  Prefactor     .10000E-03    28.690        .20283E-06** at limit **
   8  norm          .10000E-03    13.580        .76437E-07** at limit **
   9  Prefactor     4.8400        4.1132        .24063E-06    .25156E-03
  10  Prefactor     16.369        23.627        .16752E-06   -.95923E-04
  11  Prefactor     .10000E-03    32.253       -.58354E-06** at limit **
  12  norm          .10002E-03    9.3198        .57848E-05** at limit **
  13  Prefactor     16.291        12.055       -.66436E-07   -.23960E-03
  14  Prefactor     53.357        39.728       -.13495E-05   -.49091E-03
  15  Prefactor     3.0130        5.7373        .12674E-05    .52344E-03
  16  Prefactor     .10000E-03    9.3845       -.27015E-08** at limit **
  17  Normalizat    1.2682        .18604       -.67486E-06   -.10376E-02
  18  Prefactor     .84237        .76523E-01   -.63724E-06   -.22112E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.00237
  Prefactor  = 4.64268
  Prefactor  = 1.67694
  Prefactor  = 35.4825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.84
  Prefactor  = 16.3688
  Prefactor  = 0.0001
  norm       = 0.000100024
  Prefactor  = 16.2907
  Prefactor  = 53.3566
  Prefactor  = 3.01295
  Prefactor  = 0.0001
  Normalizat = 1.26825
  Prefactor  = 0.842371
 **********
 **   18 **HESSE 
 **********

 FCN=   9899.082     FROM HESSE     STATUS=OK           244 CALLS     1975 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0024        6.5788        .20152E-03   -1.5308    
   2  Prefactor     4.6427        169.54        .18548E-03   -1.5277    
   3  Prefactor     1.6769        6.1896        .32489E-03   -1.5449    
   4  Prefactor     35.482        30.590        .67274E-04   -1.4516    
   5  Prefactor     .10000E-03    17.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.8873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    13.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.8400        4.1214        .18132E-03   -1.5268    
  10  Prefactor     16.369        23.653        .98941E-04   -1.4899    
  11  Prefactor     .10000E-03    32.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10002E-03    10.833        .32121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.291        12.055        .99231E-04   -1.4901    
  14  Prefactor     53.357        40.181        .27467E-03   -1.4246    
  15  Prefactor     3.0130        5.8467        .23380E-03   -1.5361    
  16  Prefactor     .10000E-03    9.3874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2682        .21704        .32226E-03   -.84519    
  18  Prefactor     .84237        .89809E-01    .16609E-03   -.98185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14803e-09
Minuit parameter uncertainties:
  1  6.57997
  2  56.284
  3  6.19192
  4  30.6038
  5  0.00015632
  6  1.7718e-05
  7  9.67609e-05
  8  1.08356e-05
  9  4.12168
  10  23.6667
  11  0.000198253
  12  0.00102214
  13  12.0564
  14  40.2013
  15  5.84785
  16  6.22743e-06
  17  0.217192
  18  0.0898248
Done.

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

Extracting fit parameters...

4FGL J0250.2-8224
   Spectrum: PowerLaw
106    Prefactor:  1.677e+00  6.192e+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

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  8.424e-01  8.982e-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:  1.268e+00  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 42.573 -82.404
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/365240/likelihoodResults_676080001_676339201_4FGL_J0250.2-8224_daily_bin1685.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) = 9898.869081
delta logL = 0.212419549671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9898.83010114
delta logL = 0.251399414439

Fit tolerance = 1e-08

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

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

 FCN=   9898.830     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      217 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1605        30.501        .10596E-01    .16955E-02
   2  Index         3.8475        3.8407        .20733        .13703E-03
   3  Normalizat    1.2363        .40946E-01    .73628E-01    .18568E-04
   4  Prefactor     .84937        .17708E-01    .44357E-01    .12477E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.16052
  Index      = 3.84752
  Normalizat = 1.23633
  Prefactor  = 0.849368
 **********
 **   18 **HESSE 
 **********

 FCN=   9898.830     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      250 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1605        105.97        .13864E-03   -1.5493    
   2  Index         3.8475        5.4106        .11414E-01   -.23259    
   3  Normalizat    1.2363        .20393        .32583E-03   -.85487    
   4  Prefactor     .84937        .87947E-01    .16546E-03   -.97933    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.00891e-09
Minuit parameter uncertainties:
  1  22.2195
  2  12.1791
  3  0.204061
  4  0.0879621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365240': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9898.83009511
delta logL = 0.251405446817

Extracting fit parameters...

4FGL J0250.2-8224
   Spectrum: PowerLaw
106    Prefactor:  1.161e+00  2.222e+01  1.000e-04  1.000e+04 ( 1.000e-12)
107        Index:  3.848e+00  1.218e+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:  8.494e-01  8.796e-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:  1.236e+00  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/365240/cmap_HighResolution_676080001_676339201_4FGL_J0250.2-8224_daily_bin1685.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.33e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2022-06-08 03:05:03.611750', job_id='365240', GAL2='0.85', fit_tolerance='1e-08', EG2='1.24', EG='1.27', time_epoch_completed='1654682703.61', return_code2='102', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.51e-01', ts2='0.61', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1685' AND source_name='4FGL J0250.2-8224' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun  8 03:05:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 365240: <4FGL_J0250.2-8224_daily_bin1685> in cluster <slac> Done

Job <4FGL_J0250.2-8224_daily_bin1685> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Jun  8 00:04:55 2022
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun  8 00:36:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun  8 00:36:37 2022
Terminated at Wed Jun  8 03:05:04 2022
Results reported at Wed Jun  8 03:05:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0250.2-8224_daily_bin1685 42.5732 -82.4037 676080001 676339201 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 :                                   8866.00 sec.
    Max Memory :                                 1103 MB
    Average Memory :                             599.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   8913 sec.
    Turnaround time :                            10809 sec.

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

