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


Performing analysis on: 4FGL_J0245.9-4650_daily_bin1061
RA = 41.4966, Dec = -46.8463
tmin = 514339201, tmax = 514598401
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='799808', job_status='RUN', time_executed='2021-08-16 19:38:56.801595', time_epoch_executed='1629167936.8' WHERE source_name='4FGL J0245.9-4650' and cadence='daily' and bin_id='1061'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799808

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799808/ft1_4FGL_J0245.9-4650_daily_bin1061.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799808/ft2_4FGL_J0245.9-4650_daily_bin1061.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799808/ft1_4FGL_J0245.9-4650_daily_bin1061.fits outfile=/scratch/kocevski/799808/ft1_filteredMKT_4FGL_J0245.9-4650_daily_bin1061.fits ra=41.4966 dec=-46.8463 rad=12.0 tmin=514339201.0 tmax=514598401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.61
user 3.90
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/799808/ft2_4FGL_J0245.9-4650_daily_bin1061.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/799808/ft2_4FGL_J0245.9-4650_daily_bin1061.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/799808/ft1_filteredMKT_4FGL_J0245.9-4650_daily_bin1061.fits evtable="EVENTS" outfile="/scratch/kocevski/799808/ft1_filtered_4FGL_J0245.9-4650_daily_bin1061.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 1.37
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799808/ft1_filtered_4FGL_J0245.9-4650_daily_bin1061.fits" evtable="EVENTS" scfile=/scratch/kocevski/799808/ft2_4FGL_J0245.9-4650_daily_bin1061.fits sctable="SC_DATA" outfile=/scratch/kocevski/799808/ltcube_514339201_514598401_4FGL_J0245.9-4650_daily_bin1061.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/799808/ft2_4FGL_J0245.9-4650_daily_bin1061.fits
.....................!
real 13.14
user 12.37
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799808/ft1_filtered_4FGL_J0245.9-4650_daily_bin1061.fits evtable="EVENTS" scfile=/scratch/kocevski/799808/ft2_4FGL_J0245.9-4650_daily_bin1061.fits sctable="SC_DATA" expcube=/scratch/kocevski/799808/ltcube_514339201_514598401_4FGL_J0245.9-4650_daily_bin1061.fits outfile=/scratch/kocevski/799808/expmap_514339201_514598401_4FGL_J0245.9-4650_daily_bin1061.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/799808/ltcube_514339201_514598401_4FGL_J0245.9-4650_daily_bin1061.fits
.....................!
real 192.90
user 185.38
sys 4.71

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 183 point sources and 1 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 J0245.9-4650 @ 41.4966 -46.8463

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/799808/ft1_filtered_4FGL_J0245.9-4650_daily_bin1061.fits scfile=/scratch/kocevski/799808/ft2_4FGL_J0245.9-4650_daily_bin1061.fits outfile=/scratch/kocevski/799808/cmap_514339201_514598401_4FGL_J0245.9-4650_daily_bin1061.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.4966 yref=-46.8463 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.73
user 0.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799808/ft1_filtered_4FGL_J0245.9-4650_daily_bin1061.fits scfile=/scratch/kocevski/799808/ft2_4FGL_J0245.9-4650_daily_bin1061.fits outfile=/scratch/kocevski/799808/cmap_HighResolution_514339201_514598401_4FGL_J0245.9-4650_daily_bin1061.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.4966 yref=-46.8463 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.14
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799808/ft1_filtered_4FGL_J0245.9-4650_daily_bin1061.fits evtable="EVENTS" scfile=/scratch/kocevski/799808/ft2_4FGL_J0245.9-4650_daily_bin1061.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799808/Model_4FGL_J0245.9-4650_daily_bin1061.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/799808/ft1_filtered_4FGL_J0245.9-4650_daily_bin1061.fits.....................!
real 114.46
user 109.89
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/799808/ft1_filtered_4FGL_J0245.9-4650_daily_bin1061.fits', '/scratch/kocevski/799808/ft2_4FGL_J0245.9-4650_daily_bin1061.fits', expMap='/scratch/kocevski/799808/expmap_514339201_514598401_4FGL_J0245.9-4650_daily_bin1061.fits', expCube='/scratch/kocevski/799808/ltcube_514339201_514598401_4FGL_J0245.9-4650_daily_bin1061.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/799808/Model_4FGL_J0245.9-4650_daily_bin1061.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0245.9-4650'

4FGL J0245.9-4650
   Spectrum: LogParabola
268         norm:  1.978e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
269        alpha:  2.308e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
270         beta:  1.146e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
271           Eb:  5.224e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/799808/ft1_filtered_4FGL_J0245.9-4650_daily_bin1061.fits
Spacecraft file(s): /scratch/kocevski/799808/ft2_4FGL_J0245.9-4650_daily_bin1061.fits
Exposure map: /scratch/kocevski/799808/expmap_514339201_514598401_4FGL_J0245.9-4650_daily_bin1061.fits
Exposure cube: /scratch/kocevski/799808/ltcube_514339201_514598401_4FGL_J0245.9-4650_daily_bin1061.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/799808/Model_4FGL_J0245.9-4650_daily_bin1061.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) = 5548.33226153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3789       1.0000         .10000E-03   10000.    
     2 'norm      '    61.797       1.0000         .10000E-03   10000.    
     3 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.388       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3006       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4157       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7235       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.413       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8020       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.049       1.0000         .10000E-03   10000.    
    16 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5418       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.7315       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.1572       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    37.193       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.6077       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86899       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88423       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5548.274     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3130 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3785        5.5947        .22139E-06   -.40897E-04
   2  norm          61.838        47.453        .32548E-04    .10433E-04
   3  norm          .10000E-03    2.3309        .32464E-07** at limit **
   4  Prefactor     21.388        12.833       -.15939E-06   -.20596E-06
   5  Prefactor     5.2988        24.260       -.52892E-06   -.33735E-04
   6  Prefactor     2.4165        4.0132       -.63509E-06   -.41713E-03
   7  norm          1.7234        1.5084       -.25467E-06   -.59857E-03
   8  Prefactor     31.409        17.604       -.67449E-07   -.71749E-04
   9  Prefactor     .10000E-03    11.273        .37270E-05** at limit **
  10  norm          1.8019        1.6807       -.98743E-07   -.51795E-03
  11  norm          .10000E-03    .97547       -.44545E-07** at limit **
  12  Prefactor     .10000E-03    5.4291       -.11240E-06** at limit **
  13  Prefactor     .10000E-03    9.4887       -.30395E-05** at limit **
  14  Prefactor     .10000E-03    11.573       -.79063E-05** at limit **
  15  Prefactor     19.049        17.331        .25863E-07   -.98089E-05
  16  norm          .10000E-03    .45168        .14092E-07** at limit **
  17  Prefactor     .10000E-03    91.961       -.10301E-05** at limit **
  18  Prefactor     5.5416        4.3691        .31464E-06   -.35110E-03
  19  Prefactor     .10000E-03    10.122        .12841E-04** at limit **
  20  Prefactor     .10000E-03    7.3575        .89994E-06** at limit **
  21  Prefactor     9.7301        21.457        .20813E-06   -.29716E-04
  22  Prefactor     4.1566        6.4288        .16707E-06   -.32174E-03
  23  Prefactor     .10000E-03    9.3369       -.69876E-05** at limit **
  24  Prefactor     .10000E-03    60.701        .20671E-05** at limit **
  25  Prefactor     37.192        20.704        .39459E-06    .53935E-05
  26  norm          .10000E-03    .27288        .17797E-07** at limit **
  27  Prefactor     5.6021        79.564       -.13265E-04   -.84271E-05
  28  Normalizat    .86907        .16250        .52085E-06   -.47737E-04
  29  Prefactor     .88413        .17490       -.77545E-06    .13159E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.37845
  norm       = 61.8379
  norm       = 0.0001
  Prefactor  = 21.388
  Prefactor  = 5.2988
  Prefactor  = 2.41648
  norm       = 1.7234
  Prefactor  = 31.4087
  Prefactor  = 0.0001
  norm       = 1.80191
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0489
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.54162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.73009
  Prefactor  = 4.15663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.1924
  norm       = 0.0001
  Prefactor  = 5.60208
  Normalizat = 0.869068
  Prefactor  = 0.884132
 **********
 **   18 **HESSE 
 **********

 FCN=   5548.274     FROM HESSE     STATUS=OK           559 CALLS     3689 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3785        5.5827        .17209E-03   -1.5244    
   2  norm          61.838        47.483        .25522E-03   -1.4134    
   3  norm          .10000E-03    2.3515        .11065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.388        12.832        .86608E-04   -1.4783    
   5  Prefactor     5.2988        24.004        .17457E-03   -1.5248    
   6  Prefactor     2.4165        3.9761        .17758E-03   -1.5397    
   7  norm          1.7234        1.4882        .77326E-04   -1.5445    
   8  Prefactor     31.409        17.596        .71490E-04   -1.4587    
   9  Prefactor     .10000E-03    11.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8019        1.6652        .89609E-04   -1.5439    
  11  norm          .10000E-03    .99178        .71811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.4476        .16939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.4982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.049        17.332        .91768E-04   -1.4835    
  16  norm          .10000E-03    .81117        .95803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    91.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.5416        4.3619        .13206E-03   -1.5237    
  19  Prefactor     .10000E-03    10.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.4246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.7301        21.405        .12846E-03   -1.5084    
  22  Prefactor     4.1566        6.4006        .19768E-03   -1.5300    
  23  Prefactor     .10000E-03    9.3768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    61.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     37.192        20.737        .65717E-04   -1.4487    
  26  norm          .10000E-03    .45664        .75636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.6021        79.585        .16965E-03   -1.5235    
  28  Normalizat    .86907        .19302        .22100E-03   -.97556    
  29  Prefactor     .88413        .20788        .24326E-03   -.96698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3337e-10
Minuit parameter uncertainties:
  1  5.58323
  2  47.5118
  3  1.03425e-06
  4  12.8337
  5  22.5708
  6  3.97654
  7  1.4882
  8  17.599
  9  1.49748e-06
  10  1.66522
  11  6.72917e-07
  12  1.5826e-06
  13  2.13083e-06
  14  9.39105e-07
  15  17.3363
  16  5.44893e-07
  17  5.61942e-06
  18  4.36214
  19  1.11073e-05
  20  1.36921e-05
  21  21.4219
  22  6.40162
  23  1.17859e-05
  24  1.84501e-05
  25  20.7409
  26  2.50308e-06
  27  42.2978
  28  0.193175
  29  0.208065
Done.

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

Extracting fit parameters...

4FGL J0245.9-4650
   Spectrum: LogParabola
268         norm:  1.000e-04  5.449e-07  1.000e-04  1.000e+04 ( 1.000e-11)
269        alpha:  2.308e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
270         beta:  1.146e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
271           Eb:  5.224e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  8.841e-01  2.081e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  8.691e-01  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 41.497 -46.846
Photon Flux Upper Limit: 6.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/799808/likelihoodResults_514339201_514598401_4FGL_J0245.9-4650_daily_bin1061.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) = 5548.279953
delta logL = -0.0058851000631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5548.12477155
delta logL = 0.149296352501

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27531E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .83972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90443       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5548.125     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      339 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27622E-01    .60343E-01    .22075E-04    .18712E-01
   2  alpha         5.0000        4.7256        .50000    ** at limit **
   3  Normalizat    .83954        .19284        .22443E-03    .24338E-03
   4  Prefactor     .90455        .20956        .24078E-03   -.16431E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0276221
  alpha      = 5
  Normalizat = 0.839539
  Prefactor  = 0.904548
 **********
 **   18 **HESSE 
 **********

 FCN=   5548.125     FROM HESSE     STATUS=OK            29 CALLS      368 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27622E-01    .60004E-01    .88300E-06   -1.5675    
   2  alpha         5.0000        4.7150        .50000        1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .83954        .19308        .44886E-04   -.98618    
   4  Prefactor     .90455        .20981        .96312E-05   -.95982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45493e-09
Minuit parameter uncertainties:
  1  0.0600039
  2  0.00112225
  3  0.193237
  4  0.209993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799808': 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) = 5548.12476997
delta logL = 0.149297933877

Extracting fit parameters...

4FGL J0245.9-4650
   Spectrum: LogParabola
268         norm:  2.762e-02  6.000e-02  1.000e-04  1.000e+04 ( 1.000e-11)
269        alpha:  5.000e+00  1.122e-03  0.000e+00  5.000e+00 ( 1.000e+00)
270         beta:  1.146e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
271           Eb:  5.224e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  9.045e-01  2.100e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  8.395e-01  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 41.497 -46.846

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/799808/cmap_HighResolution_514339201_514598401_4FGL_J0245.9-4650_daily_bin1061.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.05e-05', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2021-08-16 19:52:35.558148', job_id='799808', GAL2='0.90', fit_tolerance='1e-08', EG2='0.84', EG='0.87', time_epoch_completed='1629168755.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.49e-01', ts2='0.32', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1061' AND source_name='4FGL J0245.9-4650' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 19:52:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 799808: <4FGL_J0245.9-4650_daily_bin1061> in cluster <slac> Done

Job <4FGL_J0245.9-4650_daily_bin1061> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Aug 16 19:36:59 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 19:37:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 19:37:41 2021
Terminated at Mon Aug 16 19:52:36 2021
Results reported at Mon Aug 16 19:52:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0245.9-4650_daily_bin1061 41.4966 -46.8463 514339201 514598401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0245.9-4650 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   800.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            937 sec.

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

