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


Performing analysis on: 4FGL_J0226.5-4441_daily_bin1020
RA = 36.6481, Dec = -44.6859
tmin = 503712001, tmax = 503971201
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='405413', job_status='RUN', time_executed='2021-08-15 22:49:59.048846', time_epoch_executed='1629092999.05' WHERE source_name='4FGL J0226.5-4441' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405413

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405413/ft1_4FGL_J0226.5-4441_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405413/ft2_4FGL_J0226.5-4441_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405413/ft1_4FGL_J0226.5-4441_daily_bin1020.fits outfile=/scratch/kocevski/405413/ft1_filteredMKT_4FGL_J0226.5-4441_daily_bin1020.fits ra=36.6481 dec=-44.6859 rad=12.0 tmin=503712001.0 tmax=503971201.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 5.05
user 4.33
sys 0.69

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405413/ft1_filtered_4FGL_J0226.5-4441_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/405413/ft2_4FGL_J0226.5-4441_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/405413/ltcube_503712001_503971201_4FGL_J0226.5-4441_daily_bin1020.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/405413/ft2_4FGL_J0226.5-4441_daily_bin1020.fits
.....................!
real 12.10
user 11.16
sys 0.90

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405413/ft1_filtered_4FGL_J0226.5-4441_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/405413/ft2_4FGL_J0226.5-4441_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/405413/ltcube_503712001_503971201_4FGL_J0226.5-4441_daily_bin1020.fits outfile=/scratch/kocevski/405413/expmap_503712001_503971201_4FGL_J0226.5-4441_daily_bin1020.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/405413/ltcube_503712001_503971201_4FGL_J0226.5-4441_daily_bin1020.fits
.....................!
real 156.40
user 151.39
sys 4.70

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/405413/ft1_filtered_4FGL_J0226.5-4441_daily_bin1020.fits scfile=/scratch/kocevski/405413/ft2_4FGL_J0226.5-4441_daily_bin1020.fits outfile=/scratch/kocevski/405413/cmap_503712001_503971201_4FGL_J0226.5-4441_daily_bin1020.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 0.93
user 0.32
sys 0.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405413/ft1_filtered_4FGL_J0226.5-4441_daily_bin1020.fits scfile=/scratch/kocevski/405413/ft2_4FGL_J0226.5-4441_daily_bin1020.fits outfile=/scratch/kocevski/405413/cmap_HighResolution_503712001_503971201_4FGL_J0226.5-4441_daily_bin1020.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 0.96
user 0.34
sys 0.59

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/405413/ft1_filtered_4FGL_J0226.5-4441_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/405413/ft2_4FGL_J0226.5-4441_daily_bin1020.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405413/Model_4FGL_J0226.5-4441_daily_bin1020.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/405413/ft1_filtered_4FGL_J0226.5-4441_daily_bin1020.fits......................!
real 36.08
user 34.33
sys 1.65

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.6722       1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.652       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.735       1.0000         .10000E-03   10000.    
    11 'norm      '    4.1123       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10720E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .54514E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.2776       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12754E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.370       1.0000         .10000E-03   10000.    
    25 'Prefactor '    41.748       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0977       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .75635       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=   1736.549     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3420 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.960       -.46901E-06** at limit **
   2  norm          9.6720        10.406       -.61957E-08    .35744E-04
   3  Prefactor     46.647        65.651       -.14219E-06    .20229E-04
   4  Prefactor     .10000E-03    4.2787       -.29899E-06** at limit **
   5  Prefactor     .10000E-03    6.1396       -.81255E-06** at limit **
   6  norm          .10000E-03    60.100       -.36369E-05** at limit **
   7  norm          .10000E-03    5.5188       -.11919E-05** at limit **
   8  Prefactor     .10000E-03    15.057       -.14917E-05** at limit **
   9  Prefactor     .10000E-03    29.485       -.10843E-05** at limit **
  10  Prefactor     12.735        11.912       -.19786E-06    .27740E-05
  11  norm          4.1111        3.2798       -.14393E-06   -.47005E-03
  12  Prefactor     .10007E-03    103.45       -.11127E-04** at limit **
  13  Prefactor     .10000E-03    31.445       -.15444E-05** at limit **
  14  norm          .10000E-03    2.2097       -.10615E-05** at limit **
  15  norm          .10001E-03    227.89       -.50159E-04** at limit **
  16  Prefactor     .10000E-03    16.714       -.20417E-05** at limit **
  17  Prefactor     .10000E-03    22.336       -.16689E-05** at limit **
  18  Prefactor     .10000E-03    121.92        .23603E-05** at limit **
  19  norm          .10000E-03    .73961       -.90770E-06** at limit **
  20  Prefactor     8.3783        6778.8        .28954E-04    .84092E-05
  21  Prefactor     .10000E-03    4.7377       -.11295E-05** at limit **
  22  Prefactor     .10000E-03    31.350       -.49700E-05** at limit **
  23  Prefactor     .10004E-03    125.85       -.74559E-05** at limit **
  24  Prefactor     12.358        12.004       -.20901E-06   -.38859E-03
  25  Prefactor     41.737        75.801        .13569E-05    .35542E-06
  26  Prefactor     .10000E-03    11.863       -.29706E-06** at limit **
  27  Normalizat    1.0979        .37428       -.15430E-04    .22513E-03
  28  Prefactor     .75611        .39136        .24940E-04   -.14535E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.67197
  Prefactor  = 46.6472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7346
  norm       = 4.11112
  Prefactor  = 0.000100074
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.00010001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 8.37832
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100038
  Prefactor  = 12.3581
  Prefactor  = 41.7365
  Prefactor  = 0.0001
  Normalizat = 1.09794
  Prefactor  = 0.756106
 **********
 **   18 **HESSE 
 **********

 FCN=   1736.549     FROM HESSE     STATUS=OK           505 CALLS     3925 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.972        .17255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.6720        10.407        .12885E-03   -1.5086    
   3  Prefactor     46.647        65.657        .58704E-04   -1.4341    
   4  Prefactor     .10000E-03    4.2906        .84210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.1605        .10091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    60.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.5706        .95748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.114        .15812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.735        11.936        .11225E-03   -1.4994    
  11  norm          4.1111        3.2840        .60683E-04   -1.5302    
  12  Prefactor     .10007E-03    105.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    31.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.2510        .60703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    218.03        .16487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.786        .16655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    122.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .75464        .35142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.3783        6763.0        .13934E-03   -1.5129    
  21  Prefactor     .10000E-03    4.7646        .88691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    31.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10004E-03    128.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.358        12.011        .11389E-03   -1.5005    
  25  Prefactor     41.737        75.900        .62042E-04   -1.4415    
  26  Prefactor     .10000E-03    11.865        .14022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0979        .37877        .21170E-03   -.89818    
  28  Prefactor     .75611        .39642        .26757E-03   -1.0137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13875e-09
Minuit parameter uncertainties:
  1  6.16501e-05
  2  10.4091
  3  65.7591
  4  1.73159e-05
  5  5.27655e-05
  6  0.000115591
  7  7.92878e-05
  8  0.000123932
  9  0.000232887
  10  11.9384
  11  3.2841
  12  0.00561443
  13  0.000442801
  14  5.10633e-05
  15  0.00294539
  16  0.000326321
  17  0.000114105
  18  0.0011397
  19  2.15369e-05
  20  385.16
  21  5.92721e-05
  22  0.000744227
  23  0.00443385
  24  12.0138
  25  76.076
  26  2.52519e-05
  27  0.379713
  28  0.397918
Done.

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

Extracting fit parameters...

4FGL J0226.5-4441
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  4.428e-04  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:  7.561e-01  3.979e-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.098e+00  3.797e-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: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405413/likelihoodResults_503712001_503971201_4FGL_J0226.5-4441_daily_bin1020.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) = 1736.54957878
delta logL = -0.000151085504513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1736.54942769
delta logL = 6.33008312434e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0192       1.0000          .0000       10.000    
     3 'Normalizat'    1.0979       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75612       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=   1736.549     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      227 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    259.32        .90712E-02** at limit **
   2  Index         2.0232        7.4311        .50000       -.11555E-05
   3  Normalizat    1.0979        .21059E-01    .38085E-01   -.41184E-05
   4  Prefactor     .75612        .22593E-01    .43143E-01    .51457E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.02317
  Normalizat = 1.09793
  Prefactor  = 0.756117
 **********
 **   18 **HESSE 
 **********

 FCN=   1736.549     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      260 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1937.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0232        5.0276        .50000       -.63772    
   3  Normalizat    1.0979        .63649E-01    .21170E-03   -.89818    
   4  Prefactor     .75612        .68255E-01    .26758E-03   -1.0137    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.43273e-10
Minuit parameter uncertainties:
  1  0.000163482
  2  32.6825
  3  0.0636531
  4  0.068263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405413': 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) = 1736.54942768
delta logL = 1.25960468722e-08

Extracting fit parameters...

4FGL J0226.5-4441
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  1.635e-04  1.000e-04  1.000e+04 ( 1.000e-14)
285        Index:  2.023e+00  3.268e+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:  7.561e-01  6.826e-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.098e+00  6.365e-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/405413/cmap_HighResolution_503712001_503971201_4FGL_J0226.5-4441_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.76e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-08-15 22:56:59.133938', job_id='405413', GAL2='0.76', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1629093419.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.26e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1020' AND source_name='4FGL J0226.5-4441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 22:56:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 405413: <4FGL_J0226.5-4441_daily_bin1020> in cluster <slac> Done

Job <4FGL_J0226.5-4441_daily_bin1020> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 15 22:40:51 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 22:45:43 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:45:43 2021
Terminated at Sun Aug 15 22:56:59 2021
Results reported at Sun Aug 15 22:56:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5-4441_daily_bin1020 36.6481 -44.6859 503712001 503971201 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 :                                   408.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             210.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            968 sec.

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

