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


Performing analysis on: 4FGL_J0226.5-4441_daily_bin1283
RA = 36.6481, Dec = -44.6859
tmin = 571881601, tmax = 572140801
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='408150', job_status='RUN', time_executed='2021-08-15 22:52:01.884326', time_epoch_executed='1629093121.88' WHERE source_name='4FGL J0226.5-4441' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408150

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408150/ft1_4FGL_J0226.5-4441_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408150/ft2_4FGL_J0226.5-4441_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408150/ft1_4FGL_J0226.5-4441_daily_bin1283.fits outfile=/scratch/kocevski/408150/ft1_filteredMKT_4FGL_J0226.5-4441_daily_bin1283.fits ra=36.6481 dec=-44.6859 rad=12.0 tmin=571881601.0 tmax=572140801.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.28
user 2.40
sys 0.83

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408150/ft1_filtered_4FGL_J0226.5-4441_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/408150/ft2_4FGL_J0226.5-4441_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/408150/ltcube_571881601_572140801_4FGL_J0226.5-4441_daily_bin1283.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/408150/ft2_4FGL_J0226.5-4441_daily_bin1283.fits
.....................!
real 17.19
user 15.96
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408150/ft1_filtered_4FGL_J0226.5-4441_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/408150/ft2_4FGL_J0226.5-4441_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/408150/ltcube_571881601_572140801_4FGL_J0226.5-4441_daily_bin1283.fits outfile=/scratch/kocevski/408150/expmap_571881601_572140801_4FGL_J0226.5-4441_daily_bin1283.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/408150/ltcube_571881601_572140801_4FGL_J0226.5-4441_daily_bin1283.fits
.....................!
real 195.28
user 187.68
sys 6.54

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/408150/ft1_filtered_4FGL_J0226.5-4441_daily_bin1283.fits scfile=/scratch/kocevski/408150/ft2_4FGL_J0226.5-4441_daily_bin1283.fits outfile=/scratch/kocevski/408150/cmap_571881601_572140801_4FGL_J0226.5-4441_daily_bin1283.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.22
user 0.39
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408150/ft1_filtered_4FGL_J0226.5-4441_daily_bin1283.fits scfile=/scratch/kocevski/408150/ft2_4FGL_J0226.5-4441_daily_bin1283.fits outfile=/scratch/kocevski/408150/cmap_HighResolution_571881601_572140801_4FGL_J0226.5-4441_daily_bin1283.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.20
user 0.40
sys 0.79

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408150/ft1_filtered_4FGL_J0226.5-4441_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/408150/ft2_4FGL_J0226.5-4441_daily_bin1283.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408150/Model_4FGL_J0226.5-4441_daily_bin1283.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/408150/ft1_filtered_4FGL_J0226.5-4441_daily_bin1283.fits.....................!
real 127.38
user 124.74
sys 2.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.210       1.0000         .10000E-03   10000.    
     2 'norm      '    21.202       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.708       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.5154       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8120       1.0000         .10000E-03   10000.    
    11 'norm      '    16.457       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.1141       1.0000         .10000E-03   10000.    
    15 'norm      '    .14341       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.542       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.639       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.988       1.0000         .10000E-03   10000.    
    19 'norm      '    .10430E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.308       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .16554E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    37.851       1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.145       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3033       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0269       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=   6221.294     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     3538 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.208        28.576        .90889E-07   -.39214E-05
   2  norm          21.202        13.007       -.16045E-07   -.49864E-05
   3  Prefactor     19.712        25.735       -.60588E-07   -.14678E-05
   4  Prefactor     .10000E-03    5.4493        .83825E-07** at limit **
   5  Prefactor     .10000E-03    4.7669        .21793E-07** at limit **
   6  norm          .10000E-03    22.315        .13036E-05** at limit **
   7  norm          .10000E-03    1.9904        .12792E-07** at limit **
   8  Prefactor     8.5166        12.875        .40498E-07    .22166E-05
   9  Prefactor     .10000E-03    12.136        .92950E-06** at limit **
  10  Prefactor     2.8120        5.6217        .41322E-05    .14260E-04
  11  norm          16.457        3.2925       -.27264E-06   -.33660E-04
  12  Prefactor     .10000E-03    8.0669       -.52368E-06** at limit **
  13  Prefactor     .10000E-03    12.119        .90255E-06** at limit **
  14  norm          9.1141        3.3826       -.10786E-07    .99140E-06
  15  norm          .14221        1.4484        .14394E-06   -.27396E-03
  16  Prefactor     17.543        15.900        .17845E-06   -.58691E-06
  17  Prefactor     10.640        15.356       -.70433E-07    .10417E-04
  18  Prefactor     11.950        51.631        .87277E-05    .97242E-05
  19  norm          .10000E-03    .77127        .31627E-07** at limit **
  20  Prefactor     .10000E-03    118.10        .22603E-06** at limit **
  21  Prefactor     16.308        8.6666        .47500E-07    .38732E-04
  22  Prefactor     .10000E-03    7.5025        .41915E-06** at limit **
  23  Prefactor     .10000E-03    30.253       -.38550E-06** at limit **
  24  Prefactor     .10000E-03    12.978       -.11056E-05** at limit **
  25  Prefactor     37.850        35.564       -.26140E-07    .57933E-06
  26  Prefactor     16.144        22.311        .21607E-06    .29029E-04
  27  Normalizat    1.3033        .20634        .31124E-06    .15291E-03
  28  Prefactor     1.0269        .21538       -.46505E-06    .15226E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.2078
  norm       = 21.2023
  Prefactor  = 19.7122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.51661
  Prefactor  = 0.0001
  Prefactor  = 2.81201
  norm       = 16.4567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.11408
  norm       = 0.142211
  Prefactor  = 17.5427
  Prefactor  = 10.6397
  Prefactor  = 11.95
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.8504
  Prefactor  = 16.1442
  Normalizat = 1.30329
  Prefactor  = 1.02694
 **********
 **   18 **HESSE 
 **********

 FCN=   6221.294     FROM HESSE     STATUS=OK           525 CALLS     4063 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.208        28.594        .76800E-04   -1.4664    
   2  norm          21.202        13.006        .86986E-04   -1.4787    
   3  Prefactor     19.712        25.739        .90221E-04   -1.4820    
   4  Prefactor     .10000E-03    5.6583        .35941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.7973        .16816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    22.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.9971        .10867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.5166        12.883        .13737E-03   -1.5124    
   9  Prefactor     .10000E-03    12.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8120        5.6306        .12128E-02   -1.5373    
  11  norm          16.457        3.2976        .58258E-04   -1.4896    
  12  Prefactor     .10000E-03    8.0986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.1141        3.3822        .42460E-03   -1.5104    
  15  norm          .14221        9.3068        .17756E-02   -1.5633    
  16  Prefactor     17.543        15.800        .95626E-04   -1.4870    
  17  Prefactor     10.640        15.366        .12283E-03   -1.5055    
  18  Prefactor     11.950        51.976        .11570E-03   -1.5016    
  19  norm          .10000E-03    2.2856        .13234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    118.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.308        8.6660        .99179E-04   -1.4900    
  22  Prefactor     .10000E-03    7.5261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    30.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.351        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     37.850        35.684        .65146E-04   -1.4477    
  26  Prefactor     16.144        22.332        .99677E-04   -1.4904    
  27  Normalizat    1.3033        .24812        .26080E-03   -.83468    
  28  Prefactor     1.0269        .25860        .31076E-03   -.91837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54985e-10
Minuit parameter uncertainties:
  1  28.6086
  2  13.0073
  3  25.753
  4  6.54344e-06
  5  1.29606e-06
  6  3.81078e-06
  7  4.84218e-07
  8  12.8867
  9  1.85091e-06
  10  5.63166
  11  3.29767
  12  4.9739e-06
  13  1.86065e-06
  14  3.38231
  15  2.30046
  16  15.8039
  17  15.3717
  18  49.9171
  19  8.72458e-06
  20  7.56406e-05
  21  8.66667
  22  7.48566e-06
  23  0.000162289
  24  0.000157126
  25  35.7045
  26  22.3432
  27  0.24835
  28  0.258919
Done.

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

Extracting fit parameters...

4FGL J0226.5-4441
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  1.861e-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:  1.027e+00  2.589e-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.303e+00  2.483e-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.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408150/likelihoodResults_571881601_572140801_4FGL_J0226.5-4441_daily_bin1283.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) = 6221.2942848
delta logL = -0.000391623125324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6221.29389331
delta logL = -1.29542058858e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10829E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9119       1.0000          .0000       10.000    
     3 'Normalizat'    1.3032       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0270       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=   6221.294     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      247 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10100E-03    58.392        .18142E-02** at limit **
   2  Index         1.8597        5.6641        .50000        .18804E-04
   3  Normalizat    1.3033        .10480E-01    .26079E-03    .15955E-04
   4  Prefactor     1.0269        .11295E-01    .31076E-03   -.16462E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101003
  Index      = 1.85967
  Normalizat = 1.30329
  Prefactor  = 1.02694
 **********
 **   18 **HESSE 
 **********

 FCN=   6221.294     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10100E-03    275.39        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8597        5.4854        .50000       -.67907    
   3  Normalizat    1.3033        .23231E-01    .10432E-04   -.83468    
   4  Prefactor     1.0269        .25038E-01    .12431E-04   -.91837    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24536e-08
Minuit parameter uncertainties:
  1  0.0333953
  2  270.027
  3  0.0232315
  4  0.0250385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408150': 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) = 6221.29389272
delta logL = 4.55028384749e-07

Extracting fit parameters...

4FGL J0226.5-4441
   Spectrum: PowerLaw
284    Prefactor:  1.010e-04  3.340e-02  1.000e-04  1.000e+04 ( 1.000e-14)
285        Index:  1.860e+00  2.700e+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:  1.027e+00  2.504e-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.303e+00  2.323e-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/408150/cmap_HighResolution_571881601_572140801_4FGL_J0226.5-4441_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-03', job_status='DONE', photon_flux_upper_limit='4.92e-08', time_completed='2021-08-15 23:07:00.402476', job_id='408150', GAL2='1.03', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1629094020.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1283' AND source_name='4FGL J0226.5-4441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 23:07:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 408150: <4FGL_J0226.5-4441_daily_bin1283> in cluster <slac> Done

Job <4FGL_J0226.5-4441_daily_bin1283> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sun Aug 15 22:50:31 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 22:50:37 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:50:37 2021
Terminated at Sun Aug 15 23:07:01 2021
Results reported at Sun Aug 15 23:07:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5-4441_daily_bin1283 36.6481 -44.6859 571881601 572140801 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 :                                   901.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            990 sec.

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

