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


Performing analysis on: 4FGL_J0250.2-8224_monthly_bin169
RA = 42.5732, Dec = -82.4037
tmin = 675043201, tmax = 677635201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='161101', job_status='RUN', time_executed='2022-06-23 01:23:46.392048', time_epoch_executed='1655972626.39' WHERE source_name='4FGL J0250.2-8224' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161101

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/161101/ft1_4FGL_J0250.2-8224_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/161101/ft2_4FGL_J0250.2-8224_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161101/ft1_4FGL_J0250.2-8224_monthly_bin169.fits outfile=/scratch/kocevski/161101/ft1_filteredMKT_4FGL_J0250.2-8224_monthly_bin169.fits ra=42.5732 dec=-82.4037 rad=12.0 tmin=675043201.0 tmax=677635201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 31.72
user 30.90
sys 0.69

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/161101/ft2_4FGL_J0250.2-8224_monthly_bin169.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/161101/ft1_filteredMKT_4FGL_J0250.2-8224_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/161101/ft1_filtered_4FGL_J0250.2-8224_monthly_bin169.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.88
user 0.67
sys 0.20

Number of photons that the gtmktime cut: 10209

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/161101/ft1_filtered_4FGL_J0250.2-8224_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/161101/ft2_4FGL_J0250.2-8224_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/161101/ltcube_675043201_677635201_4FGL_J0250.2-8224_monthly_bin169.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/161101/ft2_4FGL_J0250.2-8224_monthly_bin169.fits
.....................!
real 136.61
user 135.82
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161101/ft1_filtered_4FGL_J0250.2-8224_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/161101/ft2_4FGL_J0250.2-8224_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/161101/ltcube_675043201_677635201_4FGL_J0250.2-8224_monthly_bin169.fits outfile=/scratch/kocevski/161101/expmap_675043201_677635201_4FGL_J0250.2-8224_monthly_bin169.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/161101/ltcube_675043201_677635201_4FGL_J0250.2-8224_monthly_bin169.fits
.....................!
real 192.74
user 186.95
sys 5.25

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/161101/ft1_filtered_4FGL_J0250.2-8224_monthly_bin169.fits scfile=/scratch/kocevski/161101/ft2_4FGL_J0250.2-8224_monthly_bin169.fits outfile=/scratch/kocevski/161101/cmap_675043201_677635201_4FGL_J0250.2-8224_monthly_bin169.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 1.05
user 0.64
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161101/ft1_filtered_4FGL_J0250.2-8224_monthly_bin169.fits scfile=/scratch/kocevski/161101/ft2_4FGL_J0250.2-8224_monthly_bin169.fits outfile=/scratch/kocevski/161101/cmap_HighResolution_675043201_677635201_4FGL_J0250.2-8224_monthly_bin169.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.80
user 0.64
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/161101/ft1_filtered_4FGL_J0250.2-8224_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/161101/ft2_4FGL_J0250.2-8224_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/161101/Model_4FGL_J0250.2-8224_monthly_bin169.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/161101/ft1_filtered_4FGL_J0250.2-8224_monthly_bin169.fits.....................!
real 90130.83
user 89866.10
sys 62.72

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0171       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.7747       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .44766       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.129       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21193E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.5462       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8201       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9361       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.763       1.0000         .10000E-03   10000.    
    12 'norm      '    5.3795       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8061       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.7401       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23192       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6586       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0507       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .98000       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   107442.1     FROM MIGRAD    STATUS=CONVERGED    341 CALLS     1510 TOTAL
                     EDM=   .69E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0170        1.8382         .0000        .11192    
   2  Prefactor     8.7744        12.251         .0000        .17300E-02
   3  Prefactor     .44826        1.1526         .0000        .48990    
   4  Prefactor     17.129        7.8770         .0000        .29627E-02
   5  Prefactor     .10000E-03    4.1851         .0000    ** at limit **
   6  Prefactor     .10000E-03    1.6982         .0000    ** at limit **
   7  Prefactor     .10000E-03    2.4220         .0000    ** at limit **
   8  norm          4.5462        5.7726         .0000        .45701E-03
   9  Prefactor     2.8200        1.1658         .0000        .42248E-02
  10  Prefactor     8.9361        6.7885         .0000        .63437E-03
  11  Prefactor     10.762        10.807         .0000        .23325E-02
  12  norm          5.3795        1.4290         .0000        .84156E-01
  13  Prefactor     7.8059        3.4054         .0000        .18196E-01
  14  Prefactor     9.7400        8.1576         .0000        .34844E-03
  15  Prefactor     .23311        1.2182         .0000        .35946    
  16  Prefactor     1.6589        3.8177         .0000        .13520E-02
  17  Normalizat    1.0508        .57260E-01     .0000       -.23222E-03
  18  Prefactor     .97999        .24064E-01     .0000       -.56156E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.017
  Prefactor  = 8.77435
  Prefactor  = 0.448259
  Prefactor  = 17.1288
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.54623
  Prefactor  = 2.82003
  Prefactor  = 8.93615
  Prefactor  = 10.7624
  norm       = 5.37953
  Prefactor  = 7.80594
  Prefactor  = 9.74003
  Prefactor  = 0.233115
  Prefactor  = 1.65892
  Normalizat = 1.0508
  Prefactor  = 0.979988
 **********
 **   18 **HESSE 
 **********

 FCN=   107442.1     FROM HESSE     STATUS=OK           258 CALLS     1768 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0170        1.8312        .11682E-02   -1.5361    
   2  Prefactor     8.7744        12.217        .13531E-03   -1.5115    
   3  Prefactor     .44826        1.1426        .22110E-02   -1.5574    
   4  Prefactor     17.129        7.9085        .96772E-04   -1.4880    
   5  Prefactor     .10000E-03    4.3344        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.7804        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.4353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.5462        5.7621        .18881E-03   -1.5281    
   9  Prefactor     2.8200        1.1644        .22014E-03   -1.5372    
  10  Prefactor     8.9361        6.7873        .13408E-03   -1.5110    
  11  Prefactor     10.762        10.802        .12213E-03   -1.5052    
  12  norm          5.3795        1.4275        .86632E-03   -1.5244    
  13  Prefactor     7.8059        3.4067        .71760E-03   -1.5149    
  14  Prefactor     9.7400        8.1505        .12840E-03   -1.5084    
  15  Prefactor     .23311        .59018        .61312E-01   -1.5611    
  16  Prefactor     1.6589        3.7648        .32762E-03   -1.5450    
  17  Normalizat    1.0508        .65959E-01    .35653E-03   -.91348    
  18  Prefactor     .97999        .27957E-01    .15856E-03   -.93400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40747e-08
Minuit parameter uncertainties:
  1  1.8312
  2  12.2205
  3  1.14269
  4  7.90895
  5  9.27871e-06
  6  6.54494e-06
  7  6.12791e-06
  8  5.76284
  9  1.16446
  10  6.78785
  11  10.8037
  12  1.42748
  13  3.40679
  14  8.15141
  15  0.590193
  16  3.76536
  17  0.0659637
  18  0.0279576
Done.

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

Extracting fit parameters...

4FGL J0250.2-8224
   Spectrum: PowerLaw
106    Prefactor:  4.483e-01  1.143e+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:  9.800e-01  2.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.051e+00  6.596e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/161101/likelihoodResults_675043201_677635201_4FGL_J0250.2-8224_monthly_bin169.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) = 107441.816491
delta logL = 0.251212941235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 107441.800699
delta logL = 0.267005299014

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30882       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6596       1.0000          .0000       10.000    
     3 'Normalizat'    1.0533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97948       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=   107441.8     FROM MIGRAD    STATUS=FAILED        97 CALLS      271 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30883        .86209        .29437E-02    .16264E-02
   2  Index         1.6595        1.2017        .27512E-01   -.19391E-02
   3  Normalizat    1.0533        .63376E-01    .35614E-03   -.23750E-03
   4  Prefactor     .97948        .27500E-01    .15860E-03   -.59297E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   107441.8     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      348 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30883        .86209        .53480E-04   -1.5597    
   2  Index         1.6595        1.2017        .12395E-02   -.73164    
   3  Normalizat    1.0533        .63376E-01    .80429E-04   -.91264    
   4  Prefactor     .97948        .27500E-01    .41908E-04   -.93417    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   107441.8     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      379 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30882        .70553        .11775E-03   -.15912E-03
   2  Index         1.6595        1.0006        .55023E-02    .48596E-05
   3  Normalizat    1.0533        .63404E-01    .14245E-04   -.68952E-04
   4  Prefactor     .97948        .27517E-01    .63438E-05   -.17777E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.308819
  Index      = 1.65953
  Normalizat = 1.05334
  Prefactor  = 0.97948
 **********
 **   18 **HESSE 
 **********

 FCN=   107441.8     FROM HESSE     STATUS=OK            23 CALLS      402 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30882        .72866        .47099E-05   -1.5597    
   2  Index         1.6595        1.0327        .22009E-03   -.73164    
   3  Normalizat    1.0533        .63363E-01    .28491E-05   -.91264    
   4  Prefactor     .97948        .27499E-01    .12688E-05   -.93417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15396e-12
Minuit parameter uncertainties:
  1  0.728685
  2  1.04649
  3  0.0633674
  4  0.0274996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161101': 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) = 107441.800699
delta logL = 0.267005300673

Extracting fit parameters...

4FGL J0250.2-8224
   Spectrum: PowerLaw
106    Prefactor:  3.088e-01  7.287e-01  1.000e-04  1.000e+04 ( 1.000e-12)
107        Index:  1.660e+00  1.046e+00  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:  9.795e-01  2.750e-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.053e+00  6.337e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/161101/cmap_HighResolution_675043201_677635201_4FGL_J0250.2-8224_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.70e-03', job_status='DONE', photon_flux_upper_limit='2.16e-08', time_completed='2022-06-24 03:42:35.923325', job_id='161101', GAL2='0.98', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1656067355.92', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.67e-01', ts2='0.72', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='169' AND source_name='4FGL J0250.2-8224' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Jun 24 03:42:35 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 161101: <4FGL_J0250.2-8224_monthly_bin169> in cluster <slac> Done

Job <4FGL_J0250.2-8224_monthly_bin169> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jun 23 01:20:29 2022
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 01:22:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 01:22:39 2022
Terminated at Fri Jun 24 03:42:37 2022
Results reported at Fri Jun 24 03:42:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0250.2-8224_monthly_bin169 42.5732 -82.4037 675043201 677635201 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 :                                   94539.00 sec.
    Max Memory :                                 658 MB
    Average Memory :                             634.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                22
    Run time :                                   94797 sec.
    Turnaround time :                            94928 sec.

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

