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


Performing analysis on: 4FGL_J0226.5-4441_daily_bin1070
RA = 36.6481, Dec = -44.6859
tmin = 516672001, tmax = 516931201
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='406672', job_status='RUN', time_executed='2021-08-15 22:47:22.396911', time_epoch_executed='1629092842.4' WHERE source_name='4FGL J0226.5-4441' and cadence='daily' and bin_id='1070'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406672

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406672/ft1_4FGL_J0226.5-4441_daily_bin1070.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406672/ft2_4FGL_J0226.5-4441_daily_bin1070.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406672/ft1_4FGL_J0226.5-4441_daily_bin1070.fits outfile=/scratch/kocevski/406672/ft1_filteredMKT_4FGL_J0226.5-4441_daily_bin1070.fits ra=36.6481 dec=-44.6859 rad=12.0 tmin=516672001.0 tmax=516931201.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.75
user 3.27
sys 1.39

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/406672/ft2_4FGL_J0226.5-4441_daily_bin1070.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/406672/ft2_4FGL_J0226.5-4441_daily_bin1070.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/406672/ft1_filteredMKT_4FGL_J0226.5-4441_daily_bin1070.fits evtable="EVENTS" outfile="/scratch/kocevski/406672/ft1_filtered_4FGL_J0226.5-4441_daily_bin1070.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.69
user 0.35
sys 1.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406672/ft1_filtered_4FGL_J0226.5-4441_daily_bin1070.fits" evtable="EVENTS" scfile=/scratch/kocevski/406672/ft2_4FGL_J0226.5-4441_daily_bin1070.fits sctable="SC_DATA" outfile=/scratch/kocevski/406672/ltcube_516672001_516931201_4FGL_J0226.5-4441_daily_bin1070.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/406672/ft2_4FGL_J0226.5-4441_daily_bin1070.fits
.....................!
real 15.24
user 13.43
sys 1.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406672/ft1_filtered_4FGL_J0226.5-4441_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/406672/ft2_4FGL_J0226.5-4441_daily_bin1070.fits sctable="SC_DATA" expcube=/scratch/kocevski/406672/ltcube_516672001_516931201_4FGL_J0226.5-4441_daily_bin1070.fits outfile=/scratch/kocevski/406672/expmap_516672001_516931201_4FGL_J0226.5-4441_daily_bin1070.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/406672/ltcube_516672001_516931201_4FGL_J0226.5-4441_daily_bin1070.fits
.....................!
real 193.96
user 187.50
sys 5.75

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 180 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 J0226.5-4441 @ 36.6481 -44.6859

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/406672/ft1_filtered_4FGL_J0226.5-4441_daily_bin1070.fits scfile=/scratch/kocevski/406672/ft2_4FGL_J0226.5-4441_daily_bin1070.fits outfile=/scratch/kocevski/406672/cmap_516672001_516931201_4FGL_J0226.5-4441_daily_bin1070.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=36.6481 yref=-44.6859 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.71
user 0.38
sys 1.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406672/ft1_filtered_4FGL_J0226.5-4441_daily_bin1070.fits scfile=/scratch/kocevski/406672/ft2_4FGL_J0226.5-4441_daily_bin1070.fits outfile=/scratch/kocevski/406672/cmap_HighResolution_516672001_516931201_4FGL_J0226.5-4441_daily_bin1070.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=36.6481 yref=-44.6859 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.75
user 0.40
sys 1.28

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406672/ft1_filtered_4FGL_J0226.5-4441_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/406672/ft2_4FGL_J0226.5-4441_daily_bin1070.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406672/Model_4FGL_J0226.5-4441_daily_bin1070.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/406672/ft1_filtered_4FGL_J0226.5-4441_daily_bin1070.fits.....................!
real 108.91
user 105.66
sys 2.78

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/406672/ft1_filtered_4FGL_J0226.5-4441_daily_bin1070.fits', '/scratch/kocevski/406672/ft2_4FGL_J0226.5-4441_daily_bin1070.fits', expMap='/scratch/kocevski/406672/expmap_516672001_516931201_4FGL_J0226.5-4441_daily_bin1070.fits', expCube='/scratch/kocevski/406672/ltcube_516672001_516931201_4FGL_J0226.5-4441_daily_bin1070.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/406672/Model_4FGL_J0226.5-4441_daily_bin1070.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0226.5-4441'

4FGL J0226.5-4441
   Spectrum: PowerLaw
284    Prefactor:  2.526e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
285        Index:  1.949e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  3.547e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/406672/ft1_filtered_4FGL_J0226.5-4441_daily_bin1070.fits
Spacecraft file(s): /scratch/kocevski/406672/ft2_4FGL_J0226.5-4441_daily_bin1070.fits
Exposure map: /scratch/kocevski/406672/expmap_516672001_516931201_4FGL_J0226.5-4441_daily_bin1070.fits
Exposure cube: /scratch/kocevski/406672/ltcube_516672001_516931201_4FGL_J0226.5-4441_daily_bin1070.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/406672/Model_4FGL_J0226.5-4441_daily_bin1070.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) = 5318.41517647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.026       1.0000         .10000E-03   10000.    
     2 'norm      '    11.718       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3857       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8996       1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.450       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1235       1.0000         .10000E-03   10000.    
    11 'norm      '    6.7077       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.248       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.500       1.0000         .10000E-03   10000.    
    18 'Prefactor '    47.364       1.0000         .10000E-03   10000.    
    19 'norm      '    3.9325       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.643       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.585       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2586       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .54235       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5318.388     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3506 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.999        25.634       -.22991E-04    .18253E-04
   2  norm          11.718        8.7763        .53084E-06    .45806E-04
   3  Prefactor     .10000E-03    13.694       -.78369E-05** at limit **
   4  Prefactor     5.3845        4.5245        .53479E-07    .49548E-04
   5  Prefactor     2.8985        5.1627       -.25757E-05   -.29800E-03
   6  norm          .10000E-03    33.381        .15291E-06** at limit **
   7  norm          .10000E-03    1.4159        .67058E-07** at limit **
   8  Prefactor     42.444        16.709       -.85920E-06    .69792E-04
   9  Prefactor     .10000E-03    6.8373       -.20917E-06** at limit **
  10  Prefactor     7.1241        4.9439        .11451E-05    .56846E-04
  11  norm          6.7070        1.9717       -.22669E-06    .21104E-03
  12  Prefactor     .10000E-03    8.0541        .29249E-05** at limit **
  13  Prefactor     .10000E-03    8.5610       -.41603E-05** at limit **
  14  norm          .10000E-03    .44114       -.38113E-08** at limit **
  15  norm          .10000E-03    1.8631        .11102E-06** at limit **
  16  Prefactor     19.242        13.579       -.74082E-06    .11073E-04
  17  Prefactor     26.502        32.187        .15517E-05    .16163E-04
  18  Prefactor     47.340        53.630       -.28047E-04    .15217E-04
  19  norm          3.9318        1.5635       -.17568E-06    .40086E-04
  20  Prefactor     .10000E-03    58.381        .36138E-05** at limit **
  21  Prefactor     14.640        7.2255       -.11631E-05   -.16203E-02
  22  Prefactor     .10000E-03    12.567        .32071E-05** at limit **
  23  Prefactor     .10000E-03    12.456        .48771E-05** at limit **
  24  Prefactor     .10000E-03    2.3800       -.59309E-07** at limit **
  25  Prefactor     .10000E-03    10.130       -.73464E-06** at limit **
  26  Prefactor     16.573        22.787       -.74623E-05    .47576E-05
  27  Normalizat    1.2593        .18975        .56952E-05   -.27983E-03
  28  Prefactor     .54167        .19225        .15033E-06    .16997E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9991
  norm       = 11.718
  Prefactor  = 0.0001
  Prefactor  = 5.38448
  Prefactor  = 2.89846
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 42.4437
  Prefactor  = 0.0001
  Prefactor  = 7.12405
  norm       = 6.70696
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.2419
  Prefactor  = 26.5016
  Prefactor  = 47.3397
  norm       = 3.93184
  Prefactor  = 0.0001
  Prefactor  = 14.6403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5729
  Normalizat = 1.2593
  Prefactor  = 0.541665
 **********
 **   18 **HESSE 
 **********

 FCN=   5318.388     FROM HESSE     STATUS=OK           515 CALLS     4021 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.999        25.667        .11099E-03   -1.4987    
   2  norm          11.718        8.7727        .11702E-03   -1.5023    
   3  Prefactor     .10000E-03    13.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.3845        4.5287        .13762E-03   -1.5244    
   5  Prefactor     2.8985        5.1606        .21413E-03   -1.5367    
   6  norm          .10000E-03    33.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4198        .84728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     42.444        16.729        .61529E-04   -1.4404    
   9  Prefactor     .10000E-03    6.8401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.1241        4.9469        .12828E-03   -1.5174    
  11  norm          6.7070        1.9751        .51841E-04   -1.5190    
  12  Prefactor     .10000E-03    8.0693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.5683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .44215        .47298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.9139        .19357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.242        13.588        .91293E-04   -1.4830    
  17  Prefactor     26.502        32.104        .77820E-04   -1.4678    
  18  Prefactor     47.340        53.536        .58263E-04   -1.4331    
  19  norm          3.9318        1.5636        .53745E-04   -1.5311    
  20  Prefactor     .10000E-03    58.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.640        7.2940        .52335E-03   -1.4943    
  22  Prefactor     .10000E-03    12.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.3833        .10987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     16.573        22.828        .98347E-04   -1.4894    
  27  Normalizat    1.2593        .22068        .21565E-03   -.84789    
  28  Prefactor     .54167        .22097        .33340E-03   -1.1010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06285e-09
Minuit parameter uncertainties:
  1  25.6892
  2  8.77366
  3  2.54589e-05
  4  4.52899
  5  5.1614
  6  4.2679e-05
  7  3.224e-06
  8  16.7311
  9  9.17564e-07
  10  4.94719
  11  1.97513
  12  1.80104e-05
  13  1.08419e-05
  14  1.02333e-06
  15  1.08308e-05
  16  13.5903
  17  32.1246
  18  53.5901
  19  1.56363
  20  4.09569e-06
  21  7.29449
  22  3.20815e-05
  23  2.0907e-05
  24  3.23825e-06
  25  1.30922e-05
  26  22.8401
  27  0.220847
  28  0.221324
Done.

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

Extracting fit parameters...

4FGL J0226.5-4441
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  1.084e-05  1.000e-04  1.000e+04 ( 1.000e-14)
285        Index:  1.949e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  3.547e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  5.417e-01  2.213e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
565   Normalization:  1.259e+00  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.648 -44.686
Photon Flux Upper Limit: 4.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/406672/likelihoodResults_516672001_516931201_4FGL_J0226.5-4441_daily_bin1070.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) = 5318.38824159
delta logL = -0.000553037761165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5318.38769141
delta logL = -2.8554823075e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13286E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9237       1.0000          .0000       10.000    
     3 'Normalizat'    1.2590       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54198       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5318.388     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    75.897        .90712E-02** at limit **
   2  Index         1.9003        7.6273        .50000        .19973E-04
   3  Normalizat    1.2593        .13157E-01    .48781E-01    .51312E-04
   4  Prefactor     .54166        .13924E-01    .75294E-01    .57530E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 1.90029
  Normalizat = 1.25931
  Prefactor  = 0.541658
 **********
 **   18 **HESSE 
 **********

 FCN=   5318.388     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      235 TOTAL
                     EDM=   .10E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    455.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9003        8.2620        .20000       -.66867    
   3  Normalizat    1.2593        .34058E-01    .21565E-03   -.84789    
   4  Prefactor     .54166        .35988E-01    .33340E-03   -1.1010    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.000101791
Minuit parameter uncertainties:
  1  0.00260107
  2  2015.75
  3  0.0340582
  4  0.0359897
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406672': 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): 102
logL (Free Index) = 5318.38768829
delta logL = 2.60620254267e-07

Extracting fit parameters...

4FGL J0226.5-4441
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  2.601e-03  1.000e-04  1.000e+04 ( 1.000e-14)
285        Index:  1.900e+00  2.016e+03  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  3.547e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  5.417e-01  3.599e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
565   Normalization:  1.259e+00  3.406e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.648 -44.686

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/406672/cmap_HighResolution_516672001_516931201_4FGL_J0226.5-4441_daily_bin1070.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-03', job_status='DONE', photon_flux_upper_limit='4.64e-08', time_completed='2021-08-15 23:01:03.230190', job_id='406672', GAL2='0.54', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1629093663.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='2.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1070' AND source_name='4FGL J0226.5-4441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 23:01:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0016>
Subject: Job 406672: <4FGL_J0226.5-4441_daily_bin1070> in cluster <slac> Done

Job <4FGL_J0226.5-4441_daily_bin1070> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 22:45:33 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 22:46:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 22:46:30 2021
Terminated at Sun Aug 15 23:01:04 2021
Results reported at Sun Aug 15 23:01:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5-4441_daily_bin1070 36.6481 -44.6859 516672001 516931201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0226.5-4441 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   833.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            931 sec.

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

