/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 180 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 = 7417
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0245.1-0257_daily_bin523
RA = 41.2914, Dec = -2.955
tmin = 374889601, tmax = 375148801
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='773408', job_status='RUN', time_executed='2021-08-16 18:25:52.735538', time_epoch_executed='1629163552.74' WHERE source_name='4FGL J0245.1-0257' and cadence='daily' and bin_id='523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/773408

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/773408/ft1_4FGL_J0245.1-0257_daily_bin523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/773408/ft2_4FGL_J0245.1-0257_daily_bin523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/773408/ft1_4FGL_J0245.1-0257_daily_bin523.fits outfile=/scratch/kocevski/773408/ft1_filteredMKT_4FGL_J0245.1-0257_daily_bin523.fits ra=41.2914 dec=-2.955 rad=12.0 tmin=374889601.0 tmax=375148801.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 8.70
user 3.36
sys 5.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/773408/ft2_4FGL_J0245.1-0257_daily_bin523.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/773408/ft2_4FGL_J0245.1-0257_daily_bin523.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/773408/ft1_filteredMKT_4FGL_J0245.1-0257_daily_bin523.fits evtable="EVENTS" outfile="/scratch/kocevski/773408/ft1_filtered_4FGL_J0245.1-0257_daily_bin523.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 5.76
user 0.35
sys 5.22

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/773408/ft1_filtered_4FGL_J0245.1-0257_daily_bin523.fits" evtable="EVENTS" scfile=/scratch/kocevski/773408/ft2_4FGL_J0245.1-0257_daily_bin523.fits sctable="SC_DATA" outfile=/scratch/kocevski/773408/ltcube_374889601_375148801_4FGL_J0245.1-0257_daily_bin523.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/773408/ft2_4FGL_J0245.1-0257_daily_bin523.fits
.....................!
real 19.13
user 12.99
sys 5.99

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/773408/ft1_filtered_4FGL_J0245.1-0257_daily_bin523.fits evtable="EVENTS" scfile=/scratch/kocevski/773408/ft2_4FGL_J0245.1-0257_daily_bin523.fits sctable="SC_DATA" expcube=/scratch/kocevski/773408/ltcube_374889601_375148801_4FGL_J0245.1-0257_daily_bin523.fits outfile=/scratch/kocevski/773408/expmap_374889601_375148801_4FGL_J0245.1-0257_daily_bin523.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/773408/ltcube_374889601_375148801_4FGL_J0245.1-0257_daily_bin523.fits
.....................!
real 198.84
user 186.10
sys 11.86

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
Added 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J0245.1-0257 @ 41.2914 -2.955

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/773408/ft1_filtered_4FGL_J0245.1-0257_daily_bin523.fits scfile=/scratch/kocevski/773408/ft2_4FGL_J0245.1-0257_daily_bin523.fits outfile=/scratch/kocevski/773408/cmap_374889601_375148801_4FGL_J0245.1-0257_daily_bin523.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=41.2914 yref=-2.955 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 5.45
user 0.39
sys 4.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/773408/ft1_filtered_4FGL_J0245.1-0257_daily_bin523.fits scfile=/scratch/kocevski/773408/ft2_4FGL_J0245.1-0257_daily_bin523.fits outfile=/scratch/kocevski/773408/cmap_HighResolution_374889601_375148801_4FGL_J0245.1-0257_daily_bin523.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=41.2914 yref=-2.955 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 5.34
user 0.39
sys 4.64

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/773408/ft1_filtered_4FGL_J0245.1-0257_daily_bin523.fits evtable="EVENTS" scfile=/scratch/kocevski/773408/ft2_4FGL_J0245.1-0257_daily_bin523.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/773408/Model_4FGL_J0245.1-0257_daily_bin523.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
Working on...
/scratch/kocevski/773408/ft1_filtered_4FGL_J0245.1-0257_daily_bin523.fits.....................!
real 64.13
user 55.31
sys 7.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/773408/ft1_filtered_4FGL_J0245.1-0257_daily_bin523.fits', '/scratch/kocevski/773408/ft2_4FGL_J0245.1-0257_daily_bin523.fits', expMap='/scratch/kocevski/773408/expmap_374889601_375148801_4FGL_J0245.1-0257_daily_bin523.fits', expCube='/scratch/kocevski/773408/ltcube_374889601_375148801_4FGL_J0245.1-0257_daily_bin523.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/773408/Model_4FGL_J0245.1-0257_daily_bin523.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0245.1-0257'

4FGL J0245.1-0257
   Spectrum: PowerLaw
282    Prefactor:  7.135e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.039e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  2.247e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/773408/ft1_filtered_4FGL_J0245.1-0257_daily_bin523.fits
Spacecraft file(s): /scratch/kocevski/773408/ft2_4FGL_J0245.1-0257_daily_bin523.fits
Exposure map: /scratch/kocevski/773408/expmap_374889601_375148801_4FGL_J0245.1-0257_daily_bin523.fits
Exposure cube: /scratch/kocevski/773408/ltcube_374889601_375148801_4FGL_J0245.1-0257_daily_bin523.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/773408/Model_4FGL_J0245.1-0257_daily_bin523.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) = 4680.90010427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12211E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.711       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5313       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.736       1.0000         .10000E-03   10000.    
    12 'norm      '    4.1404       1.0000         .10000E-03   10000.    
    13 'norm      '    4.1093       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21178E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5183       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89484       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90285       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4680.892     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     2031 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4885        .22686E-08** at limit **
   2  norm          .10000E-03    .28270        .33740E-08** at limit **
   3  Prefactor     .10000E-03    11.433       -.72062E-07** at limit **
   4  Prefactor     .10000E-03    20.195       -.18552E-05** at limit **
   5  Prefactor     .10000E-03    19.633       -.11834E-05** at limit **
   6  Prefactor     .10000E-03    13.680       -.16815E-05** at limit **
   7  Prefactor     .10000E-03    47.919        .16990E-05** at limit **
   8  Prefactor     10.714        13.771       -.37420E-07   -.42415E-04
   9  Prefactor     .10000E-03    50.339       -.43484E-05** at limit **
  10  Prefactor     7.5280        6.8677        .12280E-05    .28255E-03
  11  Prefactor     16.739        13.146       -.27302E-07   -.53106E-04
  12  norm          4.1392        6.2208        .15339E-05   -.10472E-02
  13  norm          4.1086        4.1105       -.13744E-06   -.15940E-03
  14  Prefactor     .10000E-03    15.656        .50051E-05** at limit **
  15  Prefactor     .10008E-03    7.2308        .14007E-05** at limit **
  16  Prefactor     6.5198        12.609       -.10919E-06   -.67359E-04
  17  Prefactor     .10000E-03    21.152       -.33985E-05** at limit **
  18  Prefactor     .10000E-03    2.3170       -.73749E-08** at limit **
  19  Normalizat    .89471        .19028        .14856E-06   -.14958E-03
  20  Prefactor     .90289        .13582       -.54710E-06   -.23017E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7141
  Prefactor  = 0.000100003
  Prefactor  = 7.52798
  Prefactor  = 16.7386
  norm       = 4.13915
  norm       = 4.10856
  Prefactor  = 0.000100004
  Prefactor  = 0.00010008
  Prefactor  = 6.51978
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 0.89471
  Prefactor  = 0.902891
 **********
 **   18 **HESSE 
 **********

 FCN=   4680.892     FROM HESSE     STATUS=OK           287 CALLS     2318 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4930        .15654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .28968        .70964E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    48.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.714        13.819        .12242E-03   -1.5053    
   9  Prefactor     .10000E-03    50.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.5280        6.9271        .14614E-03   -1.5159    
  11  Prefactor     16.739        13.154        .97902E-04   -1.4889    
  12  norm          4.1392        9.4843        .99047E-03   -1.5301    
  13  norm          4.1086        4.1242        .13280E-03   -1.5303    
  14  Prefactor     .10000E-03    16.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10008E-03    29.191        .33356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.5198        12.527        .15719E-03   -1.5197    
  17  Prefactor     .10000E-03    21.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.3257        .10169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89471        .21448        .27039E-03   -.96646    
  20  Prefactor     .90289        .15233        .19044E-03   -.96040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5135e-09
Minuit parameter uncertainties:
  1  9.05482e-07
  2  2.36658e-07
  3  4.78793e-06
  4  0.000201788
  5  0.000109932
  6  0.000151139
  7  0.000198969
  8  13.8228
  9  0.000762448
  10  6.92783
  11  13.1565
  12  9.4877
  13  4.12453
  14  0.000488441
  15  0.0030668
  16  12.5322
  17  0.000413473
  18  1.06287e-07
  19  0.214689
  20  0.152406
Done.

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

Extracting fit parameters...

4FGL J0245.1-0257
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  7.624e-04  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.039e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  2.247e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.029e-01  1.524e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  8.947e-01  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 41.291 -2.955
Photon Flux Upper Limit: 6.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/773408/likelihoodResults_374889601_375148801_4FGL_J0245.1-0257_daily_bin523.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) = 4680.89231111
delta logL = -9.34995496209e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4680.89221766
delta logL = -4.8678884923e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10658E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0965       1.0000          .0000       10.000    
     3 'Normalizat'    .89471       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90289       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4680.892     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      226 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7446.6        .90712E-02** at limit **
   2  Index         2.1037        8.6233        .50000       -.11951E-05
   3  Normalizat    .89471        .66025E-01    .44834E-01   -.26542E-04
   4  Prefactor     .90289        .46929E-01    .45042E-01    .16810E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.10368
  Normalizat = 0.894709
  Prefactor  = 0.902891
 **********
 **   18 **HESSE 
 **********

 FCN=   4680.892     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      259 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7739.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1037        7.0975        .50000       -.61782    
   3  Normalizat    .89471        .73868E-01    .27039E-03   -.96646    
   4  Prefactor     .90289        .52564E-01    .19044E-03   -.96040    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.13858e-08
Minuit parameter uncertainties:
  1  0.00963385
  2  47.6277
  3  0.0738759
  4  0.0525667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/773408': 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) = 4680.8922176
delta logL = 1.73904481926e-08

Extracting fit parameters...

4FGL J0245.1-0257
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  9.634e-03  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.104e+00  4.763e+01  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  2.247e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.029e-01  5.257e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  8.947e-01  7.388e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 41.291 -2.955

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/773408/cmap_HighResolution_374889601_375148801_4FGL_J0245.1-0257_daily_bin523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-03', job_status='DONE', photon_flux_upper_limit='6.40e-08', time_completed='2021-08-16 18:35:51.098323', job_id='773408', GAL2='0.90', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1629164151.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.74e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='523' AND source_name='4FGL J0245.1-0257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 18:35:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 773408: <4FGL_J0245.1-0257_daily_bin523> in cluster <slac> Done

Job <4FGL_J0245.1-0257_daily_bin523> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 16 18:20:31 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 18:21:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 18:21:07 2021
Terminated at Mon Aug 16 18:35:55 2021
Results reported at Mon Aug 16 18:35:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0245.1-0257_daily_bin523 41.2914 -2.955 374889601 375148801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0245.1-0257 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   669.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             232.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            924 sec.

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

