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


Performing analysis on: 4FGL_J0245.1-0257_daily_bin1389
RA = 41.2914, Dec = -2.955
tmin = 599356801, tmax = 599616001
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='777055', job_status='RUN', time_executed='2021-08-16 18:36:43.118310', time_epoch_executed='1629164203.12' WHERE source_name='4FGL J0245.1-0257' and cadence='daily' and bin_id='1389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/777055

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/777055/ft1_4FGL_J0245.1-0257_daily_bin1389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/777055/ft2_4FGL_J0245.1-0257_daily_bin1389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/777055/ft1_4FGL_J0245.1-0257_daily_bin1389.fits outfile=/scratch/kocevski/777055/ft1_filteredMKT_4FGL_J0245.1-0257_daily_bin1389.fits ra=41.2914 dec=-2.955 rad=12.0 tmin=599356801.0 tmax=599616001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.11
user 2.50
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/777055/ft2_4FGL_J0245.1-0257_daily_bin1389.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/777055/ft1_filteredMKT_4FGL_J0245.1-0257_daily_bin1389.fits evtable="EVENTS" outfile="/scratch/kocevski/777055/ft1_filtered_4FGL_J0245.1-0257_daily_bin1389.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.77
user 0.33
sys 0.24

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/777055/ft1_filtered_4FGL_J0245.1-0257_daily_bin1389.fits" evtable="EVENTS" scfile=/scratch/kocevski/777055/ft2_4FGL_J0245.1-0257_daily_bin1389.fits sctable="SC_DATA" outfile=/scratch/kocevski/777055/ltcube_599356801_599616001_4FGL_J0245.1-0257_daily_bin1389.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/777055/ft2_4FGL_J0245.1-0257_daily_bin1389.fits
.....................!
real 13.28
user 12.64
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/777055/ft1_filtered_4FGL_J0245.1-0257_daily_bin1389.fits evtable="EVENTS" scfile=/scratch/kocevski/777055/ft2_4FGL_J0245.1-0257_daily_bin1389.fits sctable="SC_DATA" expcube=/scratch/kocevski/777055/ltcube_599356801_599616001_4FGL_J0245.1-0257_daily_bin1389.fits outfile=/scratch/kocevski/777055/expmap_599356801_599616001_4FGL_J0245.1-0257_daily_bin1389.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/777055/ltcube_599356801_599616001_4FGL_J0245.1-0257_daily_bin1389.fits
.....................!
real 191.14
user 185.24
sys 4.54

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/777055/ft1_filtered_4FGL_J0245.1-0257_daily_bin1389.fits scfile=/scratch/kocevski/777055/ft2_4FGL_J0245.1-0257_daily_bin1389.fits outfile=/scratch/kocevski/777055/cmap_599356801_599616001_4FGL_J0245.1-0257_daily_bin1389.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 1.67
user 0.40
sys 0.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/777055/ft1_filtered_4FGL_J0245.1-0257_daily_bin1389.fits scfile=/scratch/kocevski/777055/ft2_4FGL_J0245.1-0257_daily_bin1389.fits outfile=/scratch/kocevski/777055/cmap_HighResolution_599356801_599616001_4FGL_J0245.1-0257_daily_bin1389.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 1.32
user 0.40
sys 0.23

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/777055/ft1_filtered_4FGL_J0245.1-0257_daily_bin1389.fits evtable="EVENTS" scfile=/scratch/kocevski/777055/ft2_4FGL_J0245.1-0257_daily_bin1389.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/777055/Model_4FGL_J0245.1-0257_daily_bin1389.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/777055/ft1_filtered_4FGL_J0245.1-0257_daily_bin1389.fits.....................!
real 67.05
user 58.49
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.0409       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.931       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .70662E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.544       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.324       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2117       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.720       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2011       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.284       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11957E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1424       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0596       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.606       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9358       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .69275       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0859       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=   4986.071     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     2059 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7702        .44503E-06** at limit **
   2  norm          1.0410        .73570       -.41379E-07    .46849E-04
   3  Prefactor     27.210        21.753        .71168E-06    .77842E-04
   4  Prefactor     24.945        33.344        .47100E-05    .11636E-03
   5  Prefactor     .10018E-03    9.0428       -.30837E-05** at limit **
   6  Prefactor     20.547        22.754        .22544E-06    .46809E-04
   7  Prefactor     31.323        19.348       -.49066E-06   -.41816E-05
   8  Prefactor     1.1999        32.596        .59786E-05    .10884E-03
   9  Prefactor     20.718        38.468       -.10183E-05    .27831E-05
  10  Prefactor     7.2030        8.9239        .63475E-07   -.16429E-04
  11  Prefactor     11.285        9.8790       -.29181E-06    .24362E-05
  12  norm          .10000E-03    5.0693       -.42440E-06** at limit **
  13  norm          .10017E-03    3.3802        .47202E-06** at limit **
  14  Prefactor     .10000E-03    4.4418       -.18675E-06** at limit **
  15  Prefactor     5.1427        5.9426        .33653E-06    .33402E-04
  16  Prefactor     3.1234        110.04       -.29401E-05    .12073E-04
  17  Prefactor     26.530        55.170        .33175E-05    .14559E-04
  18  Prefactor     3.9369        6.1781        .69074E-07    .12974E-04
  19  Normalizat    .69260        .20475        .10810E-05    .33760E-03
  20  Prefactor     1.0859        .15183        .30724E-06    .35306E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.04098
  Prefactor  = 27.2096
  Prefactor  = 24.9452
  Prefactor  = 0.000100181
  Prefactor  = 20.5474
  Prefactor  = 31.3233
  Prefactor  = 1.19991
  Prefactor  = 20.7184
  Prefactor  = 7.20301
  Prefactor  = 11.285
  norm       = 0.0001
  norm       = 0.000100166
  Prefactor  = 0.0001
  Prefactor  = 5.14271
  Prefactor  = 3.12339
  Prefactor  = 26.5296
  Prefactor  = 3.93686
  Normalizat = 0.692596
  Prefactor  = 1.08589
 **********
 **   18 **HESSE 
 **********

 FCN=   4986.071     FROM HESSE     STATUS=OK           299 CALLS     2358 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7829        .15054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0410        .73843        .48773E-04   -1.5504    
   3  Prefactor     27.210        21.754        .76805E-04   -1.4664    
   4  Prefactor     24.945        33.170        .80227E-04   -1.4709    
   5  Prefactor     .10018E-03    42.478        .36946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.547        22.757        .88367E-04   -1.4801    
   7  Prefactor     31.323        19.344        .71592E-04   -1.4588    
   8  Prefactor     1.1999        32.237        .41089E-03   -1.5489    
   9  Prefactor     20.718        38.469        .87991E-04   -1.4797    
  10  Prefactor     7.2030        8.9052        .14948E-03   -1.5171    
  11  Prefactor     11.285        9.8797        .11926E-03   -1.5036    
  12  norm          .10000E-03    5.0757        .15528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10017E-03    37.794        .24553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.4617        .14537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.1427        5.9342        .17533E-03   -1.5254    
  16  Prefactor     3.1234        109.21        .23192E-03   -1.5354    
  17  Prefactor     26.530        55.118        .77665E-04   -1.4677    
  18  Prefactor     3.9369        6.1602        .20334E-03   -1.5311    
  19  Normalizat    .69260        .22051        .31096E-03   -1.0419    
  20  Prefactor     1.0859        .16734        .19332E-03   -.89919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.73284e-09
Minuit parameter uncertainties:
  1  4.28814e-06
  2  0.738439
  3  21.7604
  4  33.1945
  5  0.00554802
  6  22.7663
  7  19.3479
  8  12.4458
  9  38.5149
  10  8.90682
  11  9.88114
  12  1.32329e-05
  13  0.00500903
  14  7.74145e-06
  15  5.93487
  16  37.0116
  17  55.2243
  18  6.16115
  19  0.220791
  20  0.167417
Done.

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

Extracting fit parameters...

4FGL J0245.1-0257
   Spectrum: PowerLaw
282    Prefactor:  2.072e+01  3.851e+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:  1.086e+00  1.674e-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:  6.926e-01  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/777055/likelihoodResults_599356801_599616001_4FGL_J0245.1-0257_daily_bin1389.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) = 4986.04975364
delta logL = 0.0207663438032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4986.04211691
delta logL = 0.0284030693292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.444       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7817       1.0000          .0000       10.000    
     3 'Normalizat'    .69586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0846       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=   4986.042     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      234 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.444        1879.3        .19475E-02   -.12113E-03
   2  Index         1.7818        5.4978        .27219        .18479E-04
   3  Normalizat    .69590        .68575E-01    .70107E-01    .25765E-04
   4  Prefactor     1.0845        .44258E-01    .38205E-01    .20244E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.4442
  Index      = 1.78178
  Normalizat = 0.695905
  Prefactor  = 1.08452
 **********
 **   18 **HESSE 
 **********

 FCN=   4986.042     FROM HESSE     STATUS=OK            31 CALLS      265 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.444        50.138        .77902E-04   -1.4679    
   2  Index         1.7818        1.0363        .10174E-01   -.69925    
   3  Normalizat    .69590        .20902        .31027E-03   -1.0405    
   4  Prefactor     1.0845        .16058        .19341E-03   -.89963    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50586e-10
Minuit parameter uncertainties:
  1  50.2181
  2  1.04939
  3  0.209256
  4  0.160652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/777055': 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) = 4986.04211688
delta logL = 0.0284031019983

Extracting fit parameters...

4FGL J0245.1-0257
   Spectrum: PowerLaw
282    Prefactor:  2.644e+01  5.022e+01  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  1.782e+00  1.049e+00  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:  1.085e+00  1.607e-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:  6.959e-01  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
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/777055/cmap_HighResolution_599356801_599616001_4FGL_J0245.1-0257_daily_bin1389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-03', job_status='DONE', photon_flux_upper_limit='7.58e-08', time_completed='2021-08-16 18:45:52.407405', job_id='777055', GAL2='1.08', fit_tolerance='1e-08', EG2='0.70', EG='0.69', time_epoch_completed='1629164752.41', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.84e-02', ts2='0.47', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='1389' AND source_name='4FGL J0245.1-0257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 18:45:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 777055: <4FGL_J0245.1-0257_daily_bin1389> in cluster <slac> Done

Job <4FGL_J0245.1-0257_daily_bin1389> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 16 18:31:38 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 18:36:02 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:36:02 2021
Terminated at Mon Aug 16 18:45:52 2021
Results reported at Mon Aug 16 18:45:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0245.1-0257_daily_bin1389 41.2914 -2.955 599356801 599616001 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 :                                   527.51 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             350.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   590 sec.
    Turnaround time :                            854 sec.

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

