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


Performing analysis on: 4FGL_J0226.5-4441_daily_bin1058
RA = 36.6481, Dec = -44.6859
tmin = 513561601, tmax = 513820801
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='406653', job_status='RUN', time_executed='2021-08-15 22:48:23.722193', time_epoch_executed='1629092903.72' WHERE source_name='4FGL J0226.5-4441' and cadence='daily' and bin_id='1058'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406653

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406653/ft1_4FGL_J0226.5-4441_daily_bin1058.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406653/ft2_4FGL_J0226.5-4441_daily_bin1058.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406653/ft1_4FGL_J0226.5-4441_daily_bin1058.fits outfile=/scratch/kocevski/406653/ft1_filteredMKT_4FGL_J0226.5-4441_daily_bin1058.fits ra=36.6481 dec=-44.6859 rad=12.0 tmin=513561601.0 tmax=513820801.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.33
user 2.83
sys 1.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/406653/ft2_4FGL_J0226.5-4441_daily_bin1058.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/406653/ft1_filteredMKT_4FGL_J0226.5-4441_daily_bin1058.fits evtable="EVENTS" outfile="/scratch/kocevski/406653/ft1_filtered_4FGL_J0226.5-4441_daily_bin1058.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.81
user 0.30
sys 1.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406653/ft1_filtered_4FGL_J0226.5-4441_daily_bin1058.fits" evtable="EVENTS" scfile=/scratch/kocevski/406653/ft2_4FGL_J0226.5-4441_daily_bin1058.fits sctable="SC_DATA" outfile=/scratch/kocevski/406653/ltcube_513561601_513820801_4FGL_J0226.5-4441_daily_bin1058.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/406653/ft2_4FGL_J0226.5-4441_daily_bin1058.fits
.....................!
real 12.93
user 11.12
sys 1.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406653/ft1_filtered_4FGL_J0226.5-4441_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/406653/ft2_4FGL_J0226.5-4441_daily_bin1058.fits sctable="SC_DATA" expcube=/scratch/kocevski/406653/ltcube_513561601_513820801_4FGL_J0226.5-4441_daily_bin1058.fits outfile=/scratch/kocevski/406653/expmap_513561601_513820801_4FGL_J0226.5-4441_daily_bin1058.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/406653/ltcube_513561601_513820801_4FGL_J0226.5-4441_daily_bin1058.fits
.....................!
real 158.24
user 151.48
sys 5.68

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/406653/ft1_filtered_4FGL_J0226.5-4441_daily_bin1058.fits scfile=/scratch/kocevski/406653/ft2_4FGL_J0226.5-4441_daily_bin1058.fits outfile=/scratch/kocevski/406653/cmap_513561601_513820801_4FGL_J0226.5-4441_daily_bin1058.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.74
user 0.34
sys 1.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406653/ft1_filtered_4FGL_J0226.5-4441_daily_bin1058.fits scfile=/scratch/kocevski/406653/ft2_4FGL_J0226.5-4441_daily_bin1058.fits outfile=/scratch/kocevski/406653/cmap_HighResolution_513561601_513820801_4FGL_J0226.5-4441_daily_bin1058.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.34
sys 1.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406653/ft1_filtered_4FGL_J0226.5-4441_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/406653/ft2_4FGL_J0226.5-4441_daily_bin1058.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406653/Model_4FGL_J0226.5-4441_daily_bin1058.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/406653/ft1_filtered_4FGL_J0226.5-4441_daily_bin1058.fits.....................!
real 74.80
user 71.74
sys 2.70

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/406653/ft1_filtered_4FGL_J0226.5-4441_daily_bin1058.fits', '/scratch/kocevski/406653/ft2_4FGL_J0226.5-4441_daily_bin1058.fits', expMap='/scratch/kocevski/406653/expmap_513561601_513820801_4FGL_J0226.5-4441_daily_bin1058.fits', expCube='/scratch/kocevski/406653/ltcube_513561601_513820801_4FGL_J0226.5-4441_daily_bin1058.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/406653/Model_4FGL_J0226.5-4441_daily_bin1058.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/406653/ft1_filtered_4FGL_J0226.5-4441_daily_bin1058.fits
Spacecraft file(s): /scratch/kocevski/406653/ft2_4FGL_J0226.5-4441_daily_bin1058.fits
Exposure map: /scratch/kocevski/406653/expmap_513561601_513820801_4FGL_J0226.5-4441_daily_bin1058.fits
Exposure cube: /scratch/kocevski/406653/ltcube_513561601_513820801_4FGL_J0226.5-4441_daily_bin1058.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/406653/Model_4FGL_J0226.5-4441_daily_bin1058.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) = 4311.00876925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.025       1.0000         .10000E-03   10000.    
     2 'norm      '    .44019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10881E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.917       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.333       1.0000         .10000E-03   10000.    
    11 'norm      '    .70970       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .50731       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.530       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .48634       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12894E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.102       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10957E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.2023       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .84272E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.5060       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .50660       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=   4310.951     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3686 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.034        38.643        .81629E-05   -.11638E-04
   2  norm          .10004E-03    9.9691        .25806E-06** at limit **
   3  Prefactor     .10000E-03    31.344       -.57907E-06** at limit **
   4  Prefactor     .10000E-03    6.9197        .28009E-06** at limit **
   5  Prefactor     .10000E-03    2.9542       -.93513E-08** at limit **
   6  norm          .10000E-03    20.538       -.14922E-06** at limit **
   7  norm          .10000E-03    2.6181        .21039E-07** at limit **
   8  Prefactor     .10000E-03    12.749        .66690E-07** at limit **
   9  Prefactor     46.927        29.976       -.64692E-06   -.45696E-06
  10  Prefactor     11.334        6.5846        .20675E-06    .14176E-05
  11  norm          .71013        1.4441       -.20020E-06   -.92623E-03
  12  Prefactor     .10000E-03    4.6330        .15362E-07** at limit **
  13  Prefactor     .10000E-03    6.4856        .10770E-07** at limit **
  14  norm          .10000E-03    1.4180        .99396E-07** at limit **
  15  norm          .50924        1.8000       -.37545E-06   -.68539E-03
  16  Prefactor     .10000E-03    6.1963        .41308E-07** at limit **
  17  Prefactor     17.539        22.417        .50289E-06    .43279E-04
  18  Prefactor     .10000E-03    205.19       -.37681E-04** at limit **
  19  norm          .48730        1.2934       -.22705E-06   -.10975E-02
  20  Prefactor     .10000E-03    248.25        .52279E-04** at limit **
  21  Prefactor     21.119        8.9484       -.79397E-07   -.73455E-04
  22  Prefactor     .10000E-03    72.739        .23116E-06** at limit **
  23  Prefactor     .10000E-03    13.964        .80954E-08** at limit **
  24  Prefactor     2.2155        9.3485        .32227E-05   -.31458E-03
  25  Prefactor     .58238        23.254       -.82108E-06   -.41622E-04
  26  Prefactor     .10000E-03    23.198        .72521E-09** at limit **
  27  Normalizat    1.5059        .21306       -.71387E-06    .10025E-03
  28  Prefactor     .50636        .21597       -.60849E-06   -.21219E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.0337
  norm       = 0.000100041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.9269
  Prefactor  = 11.3341
  norm       = 0.710135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.509241
  Prefactor  = 0.0001
  Prefactor  = 17.5392
  Prefactor  = 0.000100001
  norm       = 0.4873
  Prefactor  = 0.0001
  Prefactor  = 21.1194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.21545
  Prefactor  = 0.582376
  Prefactor  = 0.0001
  Normalizat = 1.50592
  Prefactor  = 0.506364
 **********
 **   18 **HESSE 
 **********

 FCN=   4310.951     FROM HESSE     STATUS=OK           527 CALLS     4213 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.034        38.205        .57272E-04   -1.4306    
   2  norm          .10004E-03    36.025        .39915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    31.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    34.827        .33170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9608        .11020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    20.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.6240        .10357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.927        29.973        .58538E-04   -1.4337    
  10  Prefactor     11.334        6.4976        .11900E-03   -1.5035    
  11  norm          .71013        1.2544        .10295E-02   -1.5539    
  12  Prefactor     .10000E-03    4.6366        .13802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.4871        .16332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.2517        .14978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .50924        1.8965        .15839E-02   -1.5565    
  16  Prefactor     .10000E-03    6.2291        .15958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.539        22.318        .95658E-04   -1.4870    
  18  Prefactor     .10000E-03    204.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .48730        1.2904        .11351E-03   -1.5568    
  20  Prefactor     .10000E-03    246.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.119        8.8991        .87193E-04   -1.4789    
  22  Prefactor     .10000E-03    75.056        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.2155        8.9900        .27724E-03   -1.5410    
  25  Prefactor     .58238        193.64        .61249E-02   -1.5555    
  26  Prefactor     .10000E-03    23.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.5059        .24249        .20334E-03   -.77612    
  28  Prefactor     .50636        .24483        .34150E-03   -1.1169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6667e-08
Minuit parameter uncertainties:
  1  38.2245
  2  0.00243925
  3  8.01279e-06
  4  3.93229e-05
  5  1.50537e-06
  6  3.58753e-07
  7  3.45215e-06
  8  1.43515e-05
  9  29.9831
  10  6.49803
  11  1.25449
  12  3.3366e-06
  13  2.6916e-06
  14  3.03744e-05
  15  1.89675
  16  9.91855e-06
  17  22.3282
  18  0.000872954
  19  1.29051
  20  5.60922e-05
  21  8.89965
  22  0.000236709
  23  3.22823e-05
  24  8.92782
  25  21.3066
  26  3.19593e-06
  27  0.24268
  28  0.245341
Done.

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

Extracting fit parameters...

4FGL J0226.5-4441
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  2.692e-06  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.064e-01  2.453e-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.506e+00  2.427e-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.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/406653/likelihoodResults_513561601_513820801_4FGL_J0226.5-4441_daily_bin1058.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) = 4310.95179747
delta logL = -0.00070048638463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4310.95109646
delta logL = 5.27336851519e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9075       1.0000          .0000       10.000    
     3 'Normalizat'    1.5059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50638       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4310.951     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      251 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10131E-03    32.967        .17527E-02** at limit **
   2  Index         1.8475        8.7517        .50000        .40600E-04
   3  Normalizat    1.5059        .10510E-01    .20334E-03   -.25774E-04
   4  Prefactor     .50637        .10830E-01    .34150E-03    .11019E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101308
  Index      = 1.84754
  Normalizat = 1.50592
  Prefactor  = 0.506367
 **********
 **   18 **HESSE 
 **********

 FCN=   4310.951     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10131E-03    146.64        .35054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8475        8.3963        .50000       -.68219    
   3  Normalizat    1.5059        .22562E-01    .81337E-05   -.77612    
   4  Prefactor     .50637        .23248E-01    .13660E-04   -1.1169    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.97682e-08
Minuit parameter uncertainties:
  1  0.0277669
  2  183.404
  3  0.0225622
  4  0.0232483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406653': 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) = 4310.95109587
delta logL = 1.11470308184e-06

Extracting fit parameters...

4FGL J0226.5-4441
   Spectrum: PowerLaw
284    Prefactor:  1.013e-04  2.777e-02  1.000e-04  1.000e+04 ( 1.000e-14)
285        Index:  1.848e+00  1.834e+02  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.064e-01  2.325e-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.506e+00  2.256e-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/406653/cmap_HighResolution_513561601_513820801_4FGL_J0226.5-4441_daily_bin1058.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.00e-03', job_status='DONE', photon_flux_upper_limit='4.02e-08', time_completed='2021-08-15 22:58:36.987186', job_id='406653', GAL2='0.51', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1629093516.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='1.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1058' AND source_name='4FGL J0226.5-4441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 22:58:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 406653: <4FGL_J0226.5-4441_daily_bin1058> in cluster <slac> Done

Job <4FGL_J0226.5-4441_daily_bin1058> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 22:45:31 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 22:46:25 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:25 2021
Terminated at Sun Aug 15 22:58:37 2021
Results reported at Sun Aug 15 22:58:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5-4441_daily_bin1058 36.6481 -44.6859 513561601 513820801 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 :                                   626.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            786 sec.

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

