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


Performing analysis on: 4FGL_J0226.5-4441_daily_bin1053
RA = 36.6481, Dec = -44.6859
tmin = 512265601, tmax = 512524801
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='406645', job_status='RUN', time_executed='2021-08-15 22:49:58.523154', time_epoch_executed='1629092998.52' WHERE source_name='4FGL J0226.5-4441' and cadence='daily' and bin_id='1053'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406645

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406645/ft1_4FGL_J0226.5-4441_daily_bin1053.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406645/ft2_4FGL_J0226.5-4441_daily_bin1053.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406645/ft1_4FGL_J0226.5-4441_daily_bin1053.fits outfile=/scratch/kocevski/406645/ft1_filteredMKT_4FGL_J0226.5-4441_daily_bin1053.fits ra=36.6481 dec=-44.6859 rad=12.0 tmin=512265601.0 tmax=512524801.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 3.90
user 2.71
sys 1.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/406645/ft2_4FGL_J0226.5-4441_daily_bin1053.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/406645/ft1_filteredMKT_4FGL_J0226.5-4441_daily_bin1053.fits evtable="EVENTS" outfile="/scratch/kocevski/406645/ft1_filtered_4FGL_J0226.5-4441_daily_bin1053.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.42
user 0.28
sys 1.09

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406645/ft1_filtered_4FGL_J0226.5-4441_daily_bin1053.fits" evtable="EVENTS" scfile=/scratch/kocevski/406645/ft2_4FGL_J0226.5-4441_daily_bin1053.fits sctable="SC_DATA" outfile=/scratch/kocevski/406645/ltcube_512265601_512524801_4FGL_J0226.5-4441_daily_bin1053.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/406645/ft2_4FGL_J0226.5-4441_daily_bin1053.fits
.....................!
real 12.20
user 10.75
sys 1.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406645/ft1_filtered_4FGL_J0226.5-4441_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/406645/ft2_4FGL_J0226.5-4441_daily_bin1053.fits sctable="SC_DATA" expcube=/scratch/kocevski/406645/ltcube_512265601_512524801_4FGL_J0226.5-4441_daily_bin1053.fits outfile=/scratch/kocevski/406645/expmap_512265601_512524801_4FGL_J0226.5-4441_daily_bin1053.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/406645/ltcube_512265601_512524801_4FGL_J0226.5-4441_daily_bin1053.fits
.....................!
real 158.74
user 152.36
sys 5.92

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/406645/ft1_filtered_4FGL_J0226.5-4441_daily_bin1053.fits scfile=/scratch/kocevski/406645/ft2_4FGL_J0226.5-4441_daily_bin1053.fits outfile=/scratch/kocevski/406645/cmap_512265601_512524801_4FGL_J0226.5-4441_daily_bin1053.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.44
user 0.30
sys 1.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406645/ft1_filtered_4FGL_J0226.5-4441_daily_bin1053.fits scfile=/scratch/kocevski/406645/ft2_4FGL_J0226.5-4441_daily_bin1053.fits outfile=/scratch/kocevski/406645/cmap_HighResolution_512265601_512524801_4FGL_J0226.5-4441_daily_bin1053.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.40
user 0.32
sys 1.07

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406645/ft1_filtered_4FGL_J0226.5-4441_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/406645/ft2_4FGL_J0226.5-4441_daily_bin1053.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406645/Model_4FGL_J0226.5-4441_daily_bin1053.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/406645/ft1_filtered_4FGL_J0226.5-4441_daily_bin1053.fits.....................!
real 82.35
user 79.76
sys 2.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .17359E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.622       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7531       1.0000         .10000E-03   10000.    
     6 'norm      '    19.573       1.0000         .10000E-03   10000.    
     7 'norm      '    3.1539       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.696       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2182       1.0000         .10000E-03   10000.    
    11 'norm      '    3.1219       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .12603E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.5480       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    53.455       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4251       1.0000         .10000E-03   10000.    
    20 'Prefactor '    160.08       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.061       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    38.833       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.436       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1062       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .89234       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=   4746.549     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     3439 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7085        .27039E-05** at limit **
   2  norm          .10004E-03    5.6263       -.74855E-06** at limit **
   3  Prefactor     24.629        32.288        .86242E-05   -.93186E-04
   4  Prefactor     .10000E-03    8.9919        .43021E-05** at limit **
   5  Prefactor     5.7535        5.6567       -.18340E-06    .12871E-03
   6  norm          19.565        44.710       -.16005E-04    .11985E-05
   7  norm          3.1547        4.8155       -.31257E-05   -.18384E-03
   8  Prefactor     .10000E-03    18.811        .10945E-04** at limit **
   9  Prefactor     36.695        37.579       -.24155E-05    .23073E-04
  10  Prefactor     5.2180        4.5504        .36964E-06    .66365E-04
  11  norm          3.1220        1.8652        .80148E-08    .44706E-04
  12  Prefactor     .10000E-03    14.306       -.61601E-05** at limit **
  13  Prefactor     .10000E-03    17.482        .40231E-05** at limit **
  14  norm          .10000E-03    1.9013       -.17150E-06** at limit **
  15  norm          4.5488        3.8675       -.17356E-06   -.18469E-03
  16  Prefactor     .10000E-03    7.8231       -.44827E-05** at limit **
  17  Prefactor     .10000E-03    14.699       -.59563E-05** at limit **
  18  Prefactor     53.454        56.912       -.17400E-05    .56927E-05
  19  norm          1.4251        1.0392       -.60516E-07    .17166E-03
  20  Prefactor     160.04        182.62       -.32078E-04    .14412E-05
  21  Prefactor     16.061        7.7721       -.29692E-08    .31290E-04
  22  Prefactor     .10000E-03    8.2388       -.74364E-06** at limit **
  23  Prefactor     38.835        27.496        .22644E-05   -.36853E-05
  24  Prefactor     .10000E-03    4.6886        .52202E-06** at limit **
  25  Prefactor     .10000E-03    11.825       -.80043E-06** at limit **
  26  Prefactor     12.436        20.205       -.90143E-06   -.93806E-05
  27  Normalizat    1.1061        .20930        .33586E-06    .19432E-04
  28  Prefactor     .89243        .21746        .10505E-05    .72195E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100036
  Prefactor  = 24.6287
  Prefactor  = 0.000100002
  Prefactor  = 5.75355
  norm       = 19.5646
  norm       = 3.15466
  Prefactor  = 0.0001
  Prefactor  = 36.6945
  Prefactor  = 5.21802
  norm       = 3.12199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.54879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.4537
  norm       = 1.42509
  Prefactor  = 160.041
  Prefactor  = 16.0605
  Prefactor  = 0.0001
  Prefactor  = 38.8349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4357
  Normalizat = 1.10608
  Prefactor  = 0.89243
 **********
 **   18 **HESSE 
 **********

 FCN=   4746.549     FROM HESSE     STATUS=OK           523 CALLS     3962 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.7224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10004E-03    33.336        .31505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.629        32.130        .80728E-04   -1.4715    
   4  Prefactor     .10000E-03    9.2301        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.7535        5.6550        .15637E-03   -1.5228    
   6  norm          19.565        44.787        .90531E-04   -1.4823    
   7  norm          3.1547        4.8025        .16390E-03   -1.5353    
   8  Prefactor     .10000E-03    18.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.695        37.579        .66159E-04   -1.4496    
  10  Prefactor     5.2180        4.5544        .12891E-03   -1.5251    
  11  norm          3.1220        1.8624        .66629E-04   -1.5355    
  12  Prefactor     .10000E-03    14.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.2355        .18273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.5488        3.8716        .11661E-03   -1.5281    
  16  Prefactor     .10000E-03    7.8724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     53.454        56.893        .54859E-04   -1.4244    
  19  norm          1.4251        1.0372        .57715E-04   -1.5469    
  20  Prefactor     160.04        182.81        .15935E-03   -1.3171    
  21  Prefactor     16.061        7.7501        .99938E-04   -1.4906    
  22  Prefactor     .10000E-03    8.2833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     38.835        27.459        .64319E-04   -1.4461    
  24  Prefactor     .10000E-03    4.7042        .14547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.436        20.199        .11359E-03   -1.5003    
  27  Normalizat    1.1061        .24217        .23120E-03   -.89557    
  28  Prefactor     .89243        .25074        .27577E-03   -.96406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34676e-09
Minuit parameter uncertainties:
  1  4.44563e-07
  2  0.0021907
  3  32.1521
  4  0.000241523
  5  5.65554
  6  44.8641
  7  4.80307
  8  0.000126567
  9  37.6036
  10  4.5547
  11  1.86246
  12  3.30778e-05
  13  1.59219e-05
  14  8.26568e-06
  15  3.87181
  16  1.15329e-05
  17  1.88914e-05
  18  56.9509
  19  1.03723
  20  183.459
  21  7.75055
  22  1.93146e-05
  23  27.4682
  24  2.85535e-05
  25  1.25891e-06
  26  20.2101
  27  0.242411
  28  0.251066
Done.

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

Extracting fit parameters...

4FGL J0226.5-4441
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  1.592e-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:  8.924e-01  2.511e-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.106e+00  2.424e-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: 5.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/406645/likelihoodResults_512265601_512524801_4FGL_J0226.5-4441_daily_bin1053.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) = 4746.54906582
delta logL = -0.00027104946912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4746.54879509
delta logL = -3.09936694975e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0974       1.0000          .0000       10.000    
     3 'Normalizat'    1.1061       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89243       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=   4746.549     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      233 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7250        .90712E-02** at limit **
   2  Index         2.0781        7.4644        .50000        .95474E-05
   3  Normalizat    1.1061        .19768E-02    .37759E-01    .19512E-05
   4  Prefactor     .89243        .21531E-02    .44908E-01    .96516E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07808
  Normalizat = 1.10608
  Prefactor  = 0.89243
 **********
 **   18 **HESSE 
 **********

 FCN=   4746.549     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0781        5.8187        .50000       -.62412    
   3  Normalizat    1.1061        .79707E-02    .23120E-03   -.89557    
   4  Prefactor     .89243        .86787E-02    .27577E-03   -.96406    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.13944e-08
Minuit parameter uncertainties:
  1  6.27211e-05
  2  85.6402
  3  0.0079707
  4  0.00867874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406645': 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) = 4746.54879503
delta logL = -2.4969176593e-07

Extracting fit parameters...

4FGL J0226.5-4441
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  6.272e-05  1.000e-04  1.000e+04 ( 1.000e-14)
285        Index:  2.078e+00  8.564e+01  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:  8.924e-01  8.679e-03  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.106e+00  7.971e-03  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/406645/cmap_HighResolution_512265601_512524801_4FGL_J0226.5-4441_daily_bin1053.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-03', job_status='DONE', photon_flux_upper_limit='5.49e-08', time_completed='2021-08-15 23:00:38.246955', job_id='406645', GAL2='0.89', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1629093638.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-2.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1053' AND source_name='4FGL J0226.5-4441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 23:00:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 406645: <4FGL_J0226.5-4441_daily_bin1053> in cluster <slac> Done

Job <4FGL_J0226.5-4441_daily_bin1053> 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) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 22:46:23 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:23 2021
Terminated at Sun Aug 15 23:00:38 2021
Results reported at Sun Aug 15 23:00:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5-4441_daily_bin1053 36.6481 -44.6859 512265601 512524801 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 :                                   639.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            907 sec.

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

