/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 167 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 = 7471
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0245.1-0257_daily_bin226
RA = 41.2914, Dec = -2.955
tmin = 297907201, tmax = 298166401
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='770405', job_status='RUN', time_executed='2021-08-16 18:15:34.822956', time_epoch_executed='1629162934.82' WHERE source_name='4FGL J0245.1-0257' and cadence='daily' and bin_id='226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/770405

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/770405/ft1_4FGL_J0245.1-0257_daily_bin226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/770405/ft2_4FGL_J0245.1-0257_daily_bin226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/770405/ft1_4FGL_J0245.1-0257_daily_bin226.fits outfile=/scratch/kocevski/770405/ft1_filteredMKT_4FGL_J0245.1-0257_daily_bin226.fits ra=41.2914 dec=-2.955 rad=12.0 tmin=297907201.0 tmax=298166401.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 6.14
user 3.31
sys 2.68

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/770405/ft2_4FGL_J0245.1-0257_daily_bin226.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/770405/ft1_filteredMKT_4FGL_J0245.1-0257_daily_bin226.fits evtable="EVENTS" outfile="/scratch/kocevski/770405/ft1_filtered_4FGL_J0245.1-0257_daily_bin226.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 3.10
user 0.34
sys 2.62

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/770405/ft1_filtered_4FGL_J0245.1-0257_daily_bin226.fits" evtable="EVENTS" scfile=/scratch/kocevski/770405/ft2_4FGL_J0245.1-0257_daily_bin226.fits sctable="SC_DATA" outfile=/scratch/kocevski/770405/ltcube_297907201_298166401_4FGL_J0245.1-0257_daily_bin226.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/770405/ft2_4FGL_J0245.1-0257_daily_bin226.fits
.....................!
real 15.63
user 12.29
sys 3.17

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/770405/ft1_filtered_4FGL_J0245.1-0257_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/770405/ft2_4FGL_J0245.1-0257_daily_bin226.fits sctable="SC_DATA" expcube=/scratch/kocevski/770405/ltcube_297907201_298166401_4FGL_J0245.1-0257_daily_bin226.fits outfile=/scratch/kocevski/770405/expmap_297907201_298166401_4FGL_J0245.1-0257_daily_bin226.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/770405/ltcube_297907201_298166401_4FGL_J0245.1-0257_daily_bin226.fits
.....................!
real 196.59
user 186.10
sys 9.33

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/770405/ft1_filtered_4FGL_J0245.1-0257_daily_bin226.fits scfile=/scratch/kocevski/770405/ft2_4FGL_J0245.1-0257_daily_bin226.fits outfile=/scratch/kocevski/770405/cmap_297907201_298166401_4FGL_J0245.1-0257_daily_bin226.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 3.10
user 0.38
sys 2.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/770405/ft1_filtered_4FGL_J0245.1-0257_daily_bin226.fits scfile=/scratch/kocevski/770405/ft2_4FGL_J0245.1-0257_daily_bin226.fits outfile=/scratch/kocevski/770405/cmap_HighResolution_297907201_298166401_4FGL_J0245.1-0257_daily_bin226.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 3.01
user 0.41
sys 2.56

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/770405/ft1_filtered_4FGL_J0245.1-0257_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/770405/ft2_4FGL_J0245.1-0257_daily_bin226.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/770405/Model_4FGL_J0245.1-0257_daily_bin226.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/770405/ft1_filtered_4FGL_J0245.1-0257_daily_bin226.fits.....................!
real 68.50
user 63.12
sys 4.59

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/770405/ft1_filtered_4FGL_J0245.1-0257_daily_bin226.fits', '/scratch/kocevski/770405/ft2_4FGL_J0245.1-0257_daily_bin226.fits', expMap='/scratch/kocevski/770405/expmap_297907201_298166401_4FGL_J0245.1-0257_daily_bin226.fits', expCube='/scratch/kocevski/770405/ltcube_297907201_298166401_4FGL_J0245.1-0257_daily_bin226.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/770405/Model_4FGL_J0245.1-0257_daily_bin226.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/770405/ft1_filtered_4FGL_J0245.1-0257_daily_bin226.fits
Spacecraft file(s): /scratch/kocevski/770405/ft2_4FGL_J0245.1-0257_daily_bin226.fits
Exposure map: /scratch/kocevski/770405/expmap_297907201_298166401_4FGL_J0245.1-0257_daily_bin226.fits
Exposure cube: /scratch/kocevski/770405/ltcube_297907201_298166401_4FGL_J0245.1-0257_daily_bin226.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/770405/Model_4FGL_J0245.1-0257_daily_bin226.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) = 5219.80334241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.1856       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.934       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.081       1.0000         .10000E-03   10000.    
     9 'Prefactor '    72.750       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7370       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9542       1.0000         .10000E-03   10000.    
    12 'norm      '    5.7796       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4109       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3517       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5609       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2593       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80208       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=   5219.770     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     2002 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.396       -.46620E-06** at limit **
   2  norm          2.1856        1.0348        .14279E-07   -.11712E-03
   3  Prefactor     22.933        22.789        .26922E-06    .21827E-04
   4  Prefactor     .10000E-03    9.0015        .37652E-06** at limit **
   5  Prefactor     .10000E-03    9.1554        .22593E-06** at limit **
   6  Prefactor     .10000E-03    20.166        .70545E-06** at limit **
   7  Prefactor     .10000E-03    7.3465       -.24091E-06** at limit **
   8  Prefactor     10.080        13.241        .80067E-07   -.11336E-04
   9  Prefactor     72.738        60.813        .90825E-06   -.38181E-04
  10  Prefactor     5.7371        5.0976        .73100E-07   -.47141E-04
  11  Prefactor     7.9534        14.620       -.57076E-06    .20808E-04
  12  norm          5.7799        10.429        .18903E-06   -.16002E-04
  13  norm          .10000E-03    1.5947        .16089E-07** at limit **
  14  Prefactor     .10000E-03    18.502       -.36138E-06** at limit **
  15  Prefactor     .10000E-03    5.7984        .31035E-06** at limit **
  16  Prefactor     2.4091        33.634        .63103E-05    .15251E-03
  17  Prefactor     5.3552        24.956       -.48920E-05   -.17999E-03
  18  Prefactor     2.5607        6.8297        .47645E-05   -.37313E-03
  19  Normalizat    1.2594        .20761       -.12145E-06    .14180E-04
  20  Prefactor     .80207        .13441       -.74917E-06   -.97147E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.18556
  Prefactor  = 22.933
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.08
  Prefactor  = 72.7383
  Prefactor  = 5.73709
  Prefactor  = 7.95343
  norm       = 5.77986
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.40913
  Prefactor  = 5.35515
  Prefactor  = 2.56067
  Normalizat = 1.25938
  Prefactor  = 0.802067
 **********
 **   18 **HESSE 
 **********

 FCN=   5219.770     FROM HESSE     STATUS=OK           293 CALLS     2295 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1856        1.0389        .27842E-04   -1.5412    
   3  Prefactor     22.933        22.816        .83641E-04   -1.4750    
   4  Prefactor     .10000E-03    8.9894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.1922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.3583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.080        13.297        .12620E-03   -1.5073    
   9  Prefactor     72.738        60.667        .47070E-04   -1.4000    
  10  Prefactor     5.7371        5.0949        .14826E-03   -1.5229    
  11  Prefactor     7.9534        14.730        .14217E-03   -1.5144    
  12  norm          5.7799        10.431        .16706E-03   -1.5227    
  13  norm          .10000E-03    1.6004        .89070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.0730        .33965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.4091        33.794        .26366E-03   -1.5398    
  17  Prefactor     5.3552        25.101        .17372E-03   -1.5245    
  18  Prefactor     2.5607        6.8533        .12755E-02   -1.5388    
  19  Normalizat    1.2594        .23855        .26300E-03   -.84787    
  20  Prefactor     .80207        .15314        .21501E-03   -.99652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33548e-09
Minuit parameter uncertainties:
  1  6.05996e-05
  2  1.03892
  3  22.8244
  4  3.66428e-05
  5  4.49978e-05
  6  0.000135518
  7  2.28285e-05
  8  13.301
  9  60.7182
  10  5.09532
  11  14.7363
  12  10.4342
  13  1.6487e-06
  14  0.000187542
  15  4.04672e-05
  16  18.0581
  17  23.2036
  18  6.85536
  19  0.238757
  20  0.15322
Done.

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

Extracting fit parameters...

4FGL J0245.1-0257
   Spectrum: PowerLaw
282    Prefactor:  7.274e+01  6.072e+01  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:  8.021e-01  1.532e-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:  1.259e+00  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.30
Ra Dec: 41.291 -2.955
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 3.99e-08 +/- 3.33e-08
Energy Flux (Fixed Index): 2.51e-05 +/- 2.10e-05

TS (Fixed Index): 3.30
Ra Dec: 41.291 -2.955
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/770405/likelihoodResults_297907201_298166401_4FGL_J0245.1-0257_daily_bin226.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) = 5219.76732099
delta logL = 0.00222519050021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5219.76607471
delta logL = 0.00347146374952

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5219.766     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      267 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.420        79.302        .22973E-03    .23309E-04
   2  Index         1.9962        .52822        .62684E-02    .33968E-03
   3  Normalizat    1.2609        .22173        .26287E-03   -.18554E-04
   4  Prefactor     .80156        .14842        .21507E-03   -.35786E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.4195
  Index      = 1.99618
  Normalizat = 1.26087
  Prefactor  = 0.801557
 **********
 **   18 **HESSE 
 **********

 FCN=   5219.766     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.420        76.950        .91890E-05   -1.3957    
   2  Index         1.9962        .51257        .12537E-02   -.64446    
   3  Normalizat    1.2609        .22181        .10515E-04   -.84742    
   4  Prefactor     .80156        .14849        .86030E-05   -.99671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29978e-11
Minuit parameter uncertainties:
  1  77.0505
  2  0.513988
  3  0.221977
  4  0.148565
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/770405': 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) = 5219.76607434
delta logL = 0.00347183593112

Extracting fit parameters...

4FGL J0245.1-0257
   Spectrum: PowerLaw
282    Prefactor:  7.642e+01  7.705e+01  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  1.996e+00  5.140e-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:  8.016e-01  1.486e-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:  1.261e+00  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.30
Ra Dec: 41.291 -2.955
Photon Index (Free Index): 2.00 +/- 0.51
Photon Flux (Free Index): 3.83e-08 +/- 3.75e-08
Energy Flux (Free Index): 2.67e-05 +/- 2.99e-05

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/770405/cmap_HighResolution_297907201_298166401_4FGL_J0245.1-0257_daily_bin226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.95e-03', comment='SUCCESS', photon_flux='3.99e-08', energy_flux2='2.67e-05', photon_flux_error='3.33e-08', dlogl='3.47e-03', energy_flux='2.51e-05', photon_flux2='3.83e-08', job_status='DONE', time_completed='2021-08-16 18:25:22.913080', photon_index_error2='0.51', photon_index2='2.00', ts='3.30', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='2.99e-05', EG='1.26', time_epoch_completed='1629163522.91', return_code='0', job_id='770405', GAL2='0.80', EG2='1.26', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='3.75e-08', ts2='3.30', photon_index='2.04' WHERE bin_id='226' AND source_name='4FGL J0245.1-0257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 18:25:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 770405: <4FGL_J0245.1-0257_daily_bin226> in cluster <slac> Done

Job <4FGL_J0245.1-0257_daily_bin226> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug 16 18:10:46 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 18:11:39 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:11:39 2021
Terminated at Mon Aug 16 18:25:24 2021
Results reported at Mon Aug 16 18:25:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0245.1-0257_daily_bin226 41.2914 -2.955 297907201 298166401 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 :                                   622.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             240.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            878 sec.

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

