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


Performing analysis on: 4FGL_J0335.1-4459_daily_bin1410
RA = 53.7846, Dec = -44.9916
tmin = 604800001, tmax = 605059201
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='678856', job_status='RUN', time_executed='2021-08-18 19:16:34.912854', time_epoch_executed='1629339394.91' WHERE source_name='4FGL J0335.1-4459' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/678856

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/678856/ft1_4FGL_J0335.1-4459_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/678856/ft2_4FGL_J0335.1-4459_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/678856/ft1_4FGL_J0335.1-4459_daily_bin1410.fits outfile=/scratch/kocevski/678856/ft1_filteredMKT_4FGL_J0335.1-4459_daily_bin1410.fits ra=53.7846 dec=-44.9916 rad=12.0 tmin=604800001.0 tmax=605059201.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 10.21
user 4.84
sys 5.33

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/678856/ft2_4FGL_J0335.1-4459_daily_bin1410.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/678856/ft2_4FGL_J0335.1-4459_daily_bin1410.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/678856/ft1_filteredMKT_4FGL_J0335.1-4459_daily_bin1410.fits evtable="EVENTS" outfile="/scratch/kocevski/678856/ft1_filtered_4FGL_J0335.1-4459_daily_bin1410.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 5.64
user 0.33
sys 5.24

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/678856/ft1_filtered_4FGL_J0335.1-4459_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/678856/ft2_4FGL_J0335.1-4459_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/678856/ltcube_604800001_605059201_4FGL_J0335.1-4459_daily_bin1410.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/678856/ft2_4FGL_J0335.1-4459_daily_bin1410.fits
.....................!
real 18.09
user 12.09
sys 5.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/678856/ft1_filtered_4FGL_J0335.1-4459_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/678856/ft2_4FGL_J0335.1-4459_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/678856/ltcube_604800001_605059201_4FGL_J0335.1-4459_daily_bin1410.fits outfile=/scratch/kocevski/678856/expmap_604800001_605059201_4FGL_J0335.1-4459_daily_bin1410.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/678856/ltcube_604800001_605059201_4FGL_J0335.1-4459_daily_bin1410.fits
.....................!
real 198.00
user 185.56
sys 11.88

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 189 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 J0335.1-4459 @ 53.7846 -44.9916

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/678856/ft1_filtered_4FGL_J0335.1-4459_daily_bin1410.fits scfile=/scratch/kocevski/678856/ft2_4FGL_J0335.1-4459_daily_bin1410.fits outfile=/scratch/kocevski/678856/cmap_604800001_605059201_4FGL_J0335.1-4459_daily_bin1410.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=53.7846 yref=-44.9916 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 5.64
user 0.38
sys 5.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/678856/ft1_filtered_4FGL_J0335.1-4459_daily_bin1410.fits scfile=/scratch/kocevski/678856/ft2_4FGL_J0335.1-4459_daily_bin1410.fits outfile=/scratch/kocevski/678856/cmap_HighResolution_604800001_605059201_4FGL_J0335.1-4459_daily_bin1410.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=53.7846 yref=-44.9916 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 5.56
user 0.39
sys 5.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/678856/ft1_filtered_4FGL_J0335.1-4459_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/678856/ft2_4FGL_J0335.1-4459_daily_bin1410.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/678856/Model_4FGL_J0335.1-4459_daily_bin1410.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/678856/ft1_filtered_4FGL_J0335.1-4459_daily_bin1410.fits.....................!
real 102.40
user 93.82
sys 8.03

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/678856/ft1_filtered_4FGL_J0335.1-4459_daily_bin1410.fits', '/scratch/kocevski/678856/ft2_4FGL_J0335.1-4459_daily_bin1410.fits', expMap='/scratch/kocevski/678856/expmap_604800001_605059201_4FGL_J0335.1-4459_daily_bin1410.fits', expCube='/scratch/kocevski/678856/ltcube_604800001_605059201_4FGL_J0335.1-4459_daily_bin1410.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/678856/Model_4FGL_J0335.1-4459_daily_bin1410.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0335.1-4459'

4FGL J0335.1-4459
   Spectrum: PowerLaw
301    Prefactor:  9.020e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.981e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  2.173e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/678856/ft1_filtered_4FGL_J0335.1-4459_daily_bin1410.fits
Spacecraft file(s): /scratch/kocevski/678856/ft2_4FGL_J0335.1-4459_daily_bin1410.fits
Exposure map: /scratch/kocevski/678856/expmap_604800001_605059201_4FGL_J0335.1-4459_daily_bin1410.fits
Exposure cube: /scratch/kocevski/678856/ltcube_604800001_605059201_4FGL_J0335.1-4459_daily_bin1410.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/678856/Model_4FGL_J0335.1-4459_daily_bin1410.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) = 4350.12221311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.060       1.0000         .10000E-03   10000.    
     2 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4479       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4430       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6804       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    50.487       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.7879       1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.425       1.0000         .10000E-03   10000.    
    14 'Prefactor '    60.829       1.0000         .10000E-03   10000.    
    15 'norm      '    .20662E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    9.8224       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7224       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.6900       1.0000         .10000E-03   10000.    
    23 'norm      '    24.767       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81626       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0492       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4350.120     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2867 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.061        22.734        .30944E-06   -.73469E-05
   2  norm          .10000E-03    .60582        .16506E-07** at limit **
   3  Prefactor     .10000E-03    80.244       -.86711E-06** at limit **
   4  Prefactor     2.4483        6.2233       -.65742E-06   -.28485E-04
   5  Prefactor     8.4469        18.433        .10474E-06   -.10799E-04
   6  Prefactor     .10000E-03    20.374        .48533E-05** at limit **
   7  Prefactor     2.6750        4.1877        .18366E-07   -.49226E-03
   8  Prefactor     .10000E-03    17.712       -.70935E-06** at limit **
   9  Prefactor     50.488        44.845        .10374E-05   -.22964E-06
  10  Prefactor     .10000E-03    7.5972       -.18284E-06** at limit **
  11  norm          .10000E-03    1.2824       -.46594E-08** at limit **
  12  norm          3.7880        1.3750       -.66408E-08   -.67367E-06
  13  Prefactor     44.428        59.985        .38900E-05   -.32156E-06
  14  Prefactor     60.835        27.392        .15964E-05    .15092E-04
  15  norm          .19703E-01    .31058       -.19747E-07   -.47081E-03
  16  norm          9.8242        8.2803        .39383E-06    .43509E-04
  17  Prefactor     .10000E-03    4.6303       -.29356E-06** at limit **
  18  Prefactor     .10000E-03    47.592        .62319E-06** at limit **
  19  Prefactor     .10000E-03    21.357       -.43012E-05** at limit **
  20  norm          .10000E-03    1.3139       -.43103E-07** at limit **
  21  Prefactor     2.7223        12.421        .19427E-06   -.12405E-03
  22  Prefactor     4.6903        3.4338        .10583E-07   -.36783E-05
  23  norm          24.765        16.703        .13871E-06    .47209E-06
  24  Normalizat    .81601        .20968       -.78405E-06    .11367E-04
  25  Prefactor     1.0494        .22171       -.32015E-06   -.10803E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.0614
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.44835
  Prefactor  = 8.44688
  Prefactor  = 0.0001
  Prefactor  = 2.67498
  Prefactor  = 0.0001
  Prefactor  = 50.4883
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.78799
  Prefactor  = 44.4284
  Prefactor  = 60.8345
  norm       = 0.0197031
  norm       = 9.82418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.7223
  Prefactor  = 4.69026
  norm       = 24.7652
  Normalizat = 0.816013
  Prefactor  = 1.04944
 **********
 **   18 **HESSE 
 **********

 FCN=   4350.120     FROM HESSE     STATUS=OK           431 CALLS     3298 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.061        22.738        .61093E-04   -1.4395    
   2  norm          .10000E-03    .62085        .99916E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    80.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4483        6.1661        .24442E-03   -1.5395    
   5  Prefactor     8.4469        18.541        .13796E-03   -1.5127    
   6  Prefactor     .10000E-03    20.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6750        6.7850        .12445E-02   -1.5381    
   8  Prefactor     .10000E-03    17.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     50.488        44.839        .56441E-04   -1.4286    
  10  Prefactor     .10000E-03    7.6022        .17756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2842        .72931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.7880        1.3776        .44571E-04   -1.5319    
  13  Prefactor     44.428        59.948        .60151E-04   -1.4374    
  14  Prefactor     60.835        27.387        .51445E-04   -1.4146    
  15  norm          .19703E-01    1.0703        .68079E-03   -1.5680    
  16  norm          9.8242        8.3068        .12786E-03   -1.5081    
  17  Prefactor     .10000E-03    4.6319        .13859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    47.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.3148        .73832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.7223        18.893        .12341E-02   -1.5378    
  22  Prefactor     4.6903        3.4308        .98596E-04   -1.5275    
  23  norm          24.765        16.693        .80491E-04   -1.4712    
  24  Normalizat    .81601        .25137        .25696E-03   -.99477    
  25  Prefactor     1.0494        .26551        .25767E-03   -.91099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35198e-08
Minuit parameter uncertainties:
  1  22.743
  2  4.43422e-07
  3  2.18385e-07
  4  6.16774
  5  18.5536
  6  8.50562e-06
  7  6.78698
  8  8.77113e-07
  9  44.8693
  10  2.40063e-06
  11  8.14696e-07
  12  1.37761
  13  60.0291
  14  27.3929
  15  0.289702
  16  8.30776
  17  1.41319e-06
  18  2.62853e-05
  19  6.72998e-06
  20  4.58638e-07
  21  14.3496
  22  3.43091
  23  16.6965
  24  0.251726
  25  0.265848
Done.

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

Extracting fit parameters...

4FGL J0335.1-4459
   Spectrum: PowerLaw
301    Prefactor:  4.443e+01  6.003e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.981e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  2.173e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.049e+00  2.658e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  8.160e-01  2.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.79
Ra Dec: 53.785 -44.992
Photon Flux Upper Limit: 8.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/678856/likelihoodResults_604800001_605059201_4FGL_J0335.1-4459_daily_bin1410.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) = 4350.03808143
delta logL = 0.0822450344549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4350.03622115
delta logL = 0.084105311349

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.003       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3437       1.0000          .0000       10.000    
     3 'Normalizat'    .80267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0583       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+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=   4350.036     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      289 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.985        69.255        .74394E-04    .34842E-04
   2  Index         2.3438        1.1227        .67771E-02    .40298E-03
   3  Normalizat    .80266        .23619        .25892E-03   -.83128E-03
   4  Prefactor     1.0586        .26390        .25668E-03   -.10146E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.9849
  Index      = 2.34385
  Normalizat = 0.802657
  Prefactor  = 1.05858
 **********
 **   18 **HESSE 
 **********

 FCN=   4350.036     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.985        58.790        .29758E-05   -1.4631    
   2  Index         2.3438        .95479        .13554E-02   -.56005    
   3  Normalizat    .80266        .23564        .51783E-04   -.99970    
   4  Prefactor     1.0586        .26343        .51335E-04   -.90802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74963e-09
Minuit parameter uncertainties:
  1  58.9083
  2  0.963067
  3  0.235942
  4  0.263756
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/678856': 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) = 4350.03621845
delta logL = 0.0841080129967

Extracting fit parameters...

4FGL J0335.1-4459
   Spectrum: PowerLaw
301    Prefactor:  2.898e+01  5.891e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.344e+00  9.631e-01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  2.173e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.059e+00  2.638e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  8.027e-01  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.79
Ra Dec: 53.785 -44.992

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/678856/cmap_HighResolution_604800001_605059201_4FGL_J0335.1-4459_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.55e-03', job_status='DONE', photon_flux_upper_limit='8.74e-08', time_completed='2021-08-18 19:29:17.393902', job_id='678856', GAL2='1.06', fit_tolerance='1e-08', EG2='0.80', EG='0.82', time_epoch_completed='1629340157.39', return_code2='0', ts='0.79', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='8.41e-02', ts2='0.96', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1410' AND source_name='4FGL J0335.1-4459' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 19:29:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 678856: <4FGL_J0335.1-4459_daily_bin1410> in cluster <slac> Done

Job <4FGL_J0335.1-4459_daily_bin1410> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Aug 18 19:14:40 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 19:14:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 18 19:14:43 2021
Terminated at Wed Aug 18 19:29:19 2021
Results reported at Wed Aug 18 19:29:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0335.1-4459_daily_bin1410 53.7846 -44.9916 604800001 605059201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0335.1-4459 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   822.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             310.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            879 sec.

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

