/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 36 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 = 7386
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0245.1-0257_daily_bin216
RA = 41.2914, Dec = -2.955
tmin = 295315201, tmax = 295574401
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='770391', job_status='RUN', time_executed='2021-08-16 18:12:52.948557', time_epoch_executed='1629162772.95' WHERE source_name='4FGL J0245.1-0257' and cadence='daily' and bin_id='216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/770391

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/770391/ft1_4FGL_J0245.1-0257_daily_bin216.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/770391/ft2_4FGL_J0245.1-0257_daily_bin216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/770391/ft1_4FGL_J0245.1-0257_daily_bin216.fits outfile=/scratch/kocevski/770391/ft1_filteredMKT_4FGL_J0245.1-0257_daily_bin216.fits ra=41.2914 dec=-2.955 rad=12.0 tmin=295315201.0 tmax=295574401.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.12
user 2.15
sys 1.69

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/770391/ft1_filtered_4FGL_J0245.1-0257_daily_bin216.fits" evtable="EVENTS" scfile=/scratch/kocevski/770391/ft2_4FGL_J0245.1-0257_daily_bin216.fits sctable="SC_DATA" outfile=/scratch/kocevski/770391/ltcube_295315201_295574401_4FGL_J0245.1-0257_daily_bin216.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/770391/ft2_4FGL_J0245.1-0257_daily_bin216.fits
.....................!
real 14.73
user 12.63
sys 2.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/770391/ft1_filtered_4FGL_J0245.1-0257_daily_bin216.fits evtable="EVENTS" scfile=/scratch/kocevski/770391/ft2_4FGL_J0245.1-0257_daily_bin216.fits sctable="SC_DATA" expcube=/scratch/kocevski/770391/ltcube_295315201_295574401_4FGL_J0245.1-0257_daily_bin216.fits outfile=/scratch/kocevski/770391/expmap_295315201_295574401_4FGL_J0245.1-0257_daily_bin216.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/770391/ltcube_295315201_295574401_4FGL_J0245.1-0257_daily_bin216.fits
.....................!
real 195.38
user 187.38
sys 7.59

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/770391/ft1_filtered_4FGL_J0245.1-0257_daily_bin216.fits scfile=/scratch/kocevski/770391/ft2_4FGL_J0245.1-0257_daily_bin216.fits outfile=/scratch/kocevski/770391/cmap_295315201_295574401_4FGL_J0245.1-0257_daily_bin216.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 2.04
user 0.37
sys 1.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/770391/ft1_filtered_4FGL_J0245.1-0257_daily_bin216.fits scfile=/scratch/kocevski/770391/ft2_4FGL_J0245.1-0257_daily_bin216.fits outfile=/scratch/kocevski/770391/cmap_HighResolution_295315201_295574401_4FGL_J0245.1-0257_daily_bin216.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 2.02
user 0.39
sys 1.62

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/770391/ft1_filtered_4FGL_J0245.1-0257_daily_bin216.fits evtable="EVENTS" scfile=/scratch/kocevski/770391/ft2_4FGL_J0245.1-0257_daily_bin216.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/770391/Model_4FGL_J0245.1-0257_daily_bin216.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/770391/ft1_filtered_4FGL_J0245.1-0257_daily_bin216.fits.....................!
real 87.51
user 84.14
sys 3.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    18.231       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6061       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.186       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.9883       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7440       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.5427       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9824       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10483E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13573E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.726       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92281       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0256       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=   7420.784     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     2036 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1762        .25109E-05** at limit **
   2  norm          .10000E-03    .23313       -.41497E-07** at limit **
   3  Prefactor     .10000E-03    11.353        .40898E-05** at limit **
   4  Prefactor     18.230        21.311       -.16380E-05   -.45134E-05
   5  Prefactor     .10000E-03    3.0814       -.19885E-05** at limit **
   6  Prefactor     7.6053        16.439       -.15286E-05   -.34945E-04
   7  Prefactor     20.186        17.162       -.63895E-06    .51432E-05
   8  Prefactor     .10000E-03    1.9820        .27759E-07** at limit **
   9  Prefactor     8.9683        31.377       -.51935E-04   -.27035E-05
  10  Prefactor     3.7445        5.7113       -.98660E-06   -.52150E-03
  11  Prefactor     .10000E-03    7.6807       -.59666E-05** at limit **
  12  norm          2.5430        7.1148       -.84027E-06   -.36158E-03
  13  norm          .10000E-03    1.9972       -.25717E-07** at limit **
  14  Prefactor     4.9782        12.845       -.38213E-05   -.57449E-04
  15  Prefactor     .10000E-03    6.0645        .34194E-05** at limit **
  16  Prefactor     .10000E-03    16.592       -.25650E-05** at limit **
  17  Prefactor     35.731        24.688        .67072E-05   -.84913E-05
  18  Prefactor     .10000E-03    3.9950       -.12357E-05** at limit **
  19  Normalizat    .92282        .15846        .26089E-05    .11345E-03
  20  Prefactor     1.0256        .11766       -.24129E-06    .24479E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2298
  Prefactor  = 0.0001
  Prefactor  = 7.60531
  Prefactor  = 20.1856
  Prefactor  = 0.0001
  Prefactor  = 8.96828
  Prefactor  = 3.74447
  Prefactor  = 0.0001
  norm       = 2.54296
  norm       = 0.0001
  Prefactor  = 4.97822
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 35.7313
  Prefactor  = 0.0001
  Normalizat = 0.922816
  Prefactor  = 1.02564
 **********
 **   18 **HESSE 
 **********

 FCN=   7420.784     FROM HESSE     STATUS=OK           291 CALLS     2327 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1778        .14990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .46168        .80619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.230        21.297        .93803E-04   -1.4854    
   5  Prefactor     .10000E-03    3.0926        .14766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6053        16.425        .14541E-03   -1.5156    
   7  Prefactor     20.186        17.149        .89148E-04   -1.4809    
   8  Prefactor     .10000E-03    1.9839        .11843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.9683        31.390        .13369E-03   -1.5109    
  10  Prefactor     3.7445        5.7151        .20867E-03   -1.5321    
  11  Prefactor     .10000E-03    7.8118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.5430        7.1161        .25610E-03   -1.5389    
  13  norm          .10000E-03    2.0232        .11882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.9782        12.843        .18017E-03   -1.5262    
  15  Prefactor     .10000E-03    6.2059        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     35.731        24.580        .67048E-04   -1.4512    
  18  Prefactor     .10000E-03    4.1421        .33604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .92282        .17625        .27640E-03   -.95663    
  20  Prefactor     1.0256        .13196        .19471E-03   -.91880    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02132e-09
Minuit parameter uncertainties:
  1  4.34439e-06
  2  1.41773e-06
  3  2.21996e-05
  4  21.3054
  5  8.65514e-07
  6  16.4345
  7  17.1531
  8  1.19167e-05
  9  31.4476
  10  5.71588
  11  5.10843e-06
  12  7.11841
  13  4.30226e-06
  14  12.8505
  15  0.000142139
  16  0.00053173
  17  24.5871
  18  3.0576e-06
  19  0.176359
  20  0.132002
Done.

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

Extracting fit parameters...

4FGL J0245.1-0257
   Spectrum: PowerLaw
282    Prefactor:  8.968e+00  3.145e+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.026e+00  1.320e-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:  9.228e-01  1.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/770391/likelihoodResults_295315201_295574401_4FGL_J0245.1-0257_daily_bin216.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) = 7420.49041353
delta logL = 0.2937902834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7420.47384622
delta logL = 0.310357600843

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2741       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0310       1.0000          .0000       10.000    
     3 'Normalizat'    .90081       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0323       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7420.474     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      305 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2669        399.67        .97440E-03   -.31913E-03
   2  Index         3.0336        6.1604        .71751E-02   -.60433E-04
   3  Normalizat    .90058        .16881        .27938E-03   -.55912E-04
   4  Prefactor     1.0325        .12129        .19409E-03   -.15815E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.26693
  Index      = 3.0336
  Normalizat = 0.900576
  Prefactor  = 1.03253
 **********
 **   18 **HESSE 
 **********

 FCN=   7420.474     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2669        13.219        .38976E-04   -1.5295    
   2  Index         3.0336        1.2332        .28701E-03   -.40420    
   3  Normalizat    .90058        .17483        .11175E-04   -.96440    
   4  Prefactor     1.0325        .12763        .77637E-05   -.91653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11224e-10
Minuit parameter uncertainties:
  1  13.2282
  2  1.24852
  3  0.174944
  4  0.12767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/770391': 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) = 7420.4738387
delta logL = 0.310365121269

Extracting fit parameters...

4FGL J0245.1-0257
   Spectrum: PowerLaw
282    Prefactor:  4.267e+00  1.323e+01  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  3.034e+00  1.249e+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.033e+00  1.277e-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:  9.006e-01  1.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/770391/cmap_HighResolution_295315201_295574401_4FGL_J0245.1-0257_daily_bin216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-03', job_status='DONE', photon_flux_upper_limit='5.82e-08', time_completed='2021-08-16 18:24:07.520932', job_id='770391', GAL2='1.03', fit_tolerance='1e-08', EG2='0.90', EG='0.92', time_epoch_completed='1629163447.52', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.10e-01', ts2='0.73', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='216' AND source_name='4FGL J0245.1-0257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 18:24:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 770391: <4FGL_J0245.1-0257_daily_bin216> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0245.1-0257_daily_bin216 41.2914 -2.955 295315201 295574401 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 :                                   691.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             314.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            804 sec.

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

