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


Performing analysis on: 4FGL_J0226.5-4441_daily_bin1593
RA = 36.6481, Dec = -44.6859
tmin = 652233601, tmax = 652492801
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='325122', job_status='RUN', time_executed='2021-09-05 00:01:19.442207', time_epoch_executed='1630825279.44' WHERE source_name='4FGL J0226.5-4441' and cadence='daily' and bin_id='1593'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325122

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325122/ft1_4FGL_J0226.5-4441_daily_bin1593.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325122/ft2_4FGL_J0226.5-4441_daily_bin1593.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325122/ft1_4FGL_J0226.5-4441_daily_bin1593.fits outfile=/scratch/kocevski/325122/ft1_filteredMKT_4FGL_J0226.5-4441_daily_bin1593.fits ra=36.6481 dec=-44.6859 rad=12.0 tmin=652233601.0 tmax=652492801.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.45
user 4.19
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/325122/ft2_4FGL_J0226.5-4441_daily_bin1593.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/325122/ft1_filteredMKT_4FGL_J0226.5-4441_daily_bin1593.fits evtable="EVENTS" outfile="/scratch/kocevski/325122/ft1_filtered_4FGL_J0226.5-4441_daily_bin1593.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/325122/ft1_filtered_4FGL_J0226.5-4441_daily_bin1593.fits" evtable="EVENTS" scfile=/scratch/kocevski/325122/ft2_4FGL_J0226.5-4441_daily_bin1593.fits sctable="SC_DATA" outfile=/scratch/kocevski/325122/ltcube_652233601_652492801_4FGL_J0226.5-4441_daily_bin1593.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/325122/ft2_4FGL_J0226.5-4441_daily_bin1593.fits
.....................!
real 11.90
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325122/ft1_filtered_4FGL_J0226.5-4441_daily_bin1593.fits evtable="EVENTS" scfile=/scratch/kocevski/325122/ft2_4FGL_J0226.5-4441_daily_bin1593.fits sctable="SC_DATA" expcube=/scratch/kocevski/325122/ltcube_652233601_652492801_4FGL_J0226.5-4441_daily_bin1593.fits outfile=/scratch/kocevski/325122/expmap_652233601_652492801_4FGL_J0226.5-4441_daily_bin1593.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/325122/ltcube_652233601_652492801_4FGL_J0226.5-4441_daily_bin1593.fits
.....................!
real 191.42
user 186.32
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/325122/ft1_filtered_4FGL_J0226.5-4441_daily_bin1593.fits scfile=/scratch/kocevski/325122/ft2_4FGL_J0226.5-4441_daily_bin1593.fits outfile=/scratch/kocevski/325122/cmap_652233601_652492801_4FGL_J0226.5-4441_daily_bin1593.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/325122/ft1_filtered_4FGL_J0226.5-4441_daily_bin1593.fits scfile=/scratch/kocevski/325122/ft2_4FGL_J0226.5-4441_daily_bin1593.fits outfile=/scratch/kocevski/325122/cmap_HighResolution_652233601_652492801_4FGL_J0226.5-4441_daily_bin1593.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/325122/ft1_filtered_4FGL_J0226.5-4441_daily_bin1593.fits evtable="EVENTS" scfile=/scratch/kocevski/325122/ft2_4FGL_J0226.5-4441_daily_bin1593.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/325122/Model_4FGL_J0226.5-4441_daily_bin1593.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/325122/ft1_filtered_4FGL_J0226.5-4441_daily_bin1593.fits.....................!
real 116.03
user 114.60
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.5321       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8915       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    52.838       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4430       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6954       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7526       1.0000         .10000E-03   10000.    
    11 'norm      '    .41856       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.366       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    84.081       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    50.774       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5935       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11513E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    21.471       1.0000         .10000E-03   10000.    
    26 'Prefactor '    52.380       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .70584       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .88712       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=   5804.762     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     3440 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0146        .56651E-06** at limit **
   2  norm          6.5315        6.1669        .22801E-07   -.52941E-04
   3  Prefactor     .10000E-03    8.9585        .74071E-06** at limit **
   4  Prefactor     2.8912        3.4968        .29700E-06    .42623E-04
   5  Prefactor     .10000E-03    2.5161        .95134E-06** at limit **
   6  norm          52.840        45.763       -.19361E-06   -.21575E-04
   7  norm          .10000E-03    1.4116        .54973E-07** at limit **
   8  Prefactor     7.4420        6.7134        .19180E-07   -.34405E-04
   9  Prefactor     4.6901        14.330        .73506E-06   -.23254E-04
  10  Prefactor     5.7521        3.3333       -.16953E-06   -.36441E-03
  11  norm          .41880        .51972        .30829E-06    .95988E-03
  12  Prefactor     .10000E-03    7.7006        .17189E-05** at limit **
  13  Prefactor     .10000E-03    7.0193        .79877E-06** at limit **
  14  norm          .10000E-03    .80760        .16484E-05** at limit **
  15  norm          .10000E-03    .82473       -.67434E-06** at limit **
  16  Prefactor     12.361        8.2126       -.29104E-06   -.36664E-03
  17  Prefactor     .10000E-03    5.9282       -.18158E-05** at limit **
  18  Prefactor     84.087        44.530        .21834E-06   -.43330E-04
  19  norm          .10000E-03    .24411        .60277E-06** at limit **
  20  Prefactor     49.391        232.33       -.38589E-04   -.63974E-04
  21  Prefactor     1.5926        4.1627        .95008E-06   -.22444E-03
  22  Prefactor     .10000E-03    2.5927        .32068E-06** at limit **
  23  Prefactor     .10000E-03    4.9144        .23644E-06** at limit **
  24  Prefactor     .10002E-03    4.0389        .33118E-05** at limit **
  25  Prefactor     21.464        24.325        .92555E-07   -.59284E-04
  26  Prefactor     52.371        22.677       -.40056E-06   -.27590E-03
  27  Normalizat    .70605        .13511       -.20613E-05   -.10119E-02
  28  Prefactor     .88692        .15065        .41898E-06   -.11193E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.53154
  Prefactor  = 0.0001
  Prefactor  = 2.8912
  Prefactor  = 0.0001
  norm       = 52.8401
  norm       = 0.0001
  Prefactor  = 7.44202
  Prefactor  = 4.69013
  Prefactor  = 5.75207
  norm       = 0.418798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 12.3614
  Prefactor  = 0.0001
  Prefactor  = 84.0869
  norm       = 0.0001
  Prefactor  = 49.3907
  Prefactor  = 1.59263
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 21.4637
  Prefactor  = 52.3712
  Normalizat = 0.706047
  Prefactor  = 0.886923
 **********
 **   18 **HESSE 
 **********

 FCN=   5804.762     FROM HESSE     STATUS=OK           517 CALLS     3957 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0205        .16668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.5315        6.1637        .15702E-03   -1.5197    
   3  Prefactor     .10000E-03    8.9773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8912        3.4894        .15121E-03   -1.5368    
   5  Prefactor     .10000E-03    2.5405        .11815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          52.840        45.772        .55177E-04   -1.4253    
   7  norm          .10000E-03    1.4178        .88034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.4420        6.7109        .14701E-03   -1.5162    
   9  Prefactor     4.6901        14.288        .18571E-03   -1.5275    
  10  Prefactor     5.7521        3.3336        .10270E-03   -1.5228    
  11  norm          .41880        .49448        .59707E-03   -1.5579    
  12  Prefactor     .10000E-03    7.7957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.0358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.1511        .12462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .83610        .67241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.361        8.2195        .11391E-03   -1.5005    
  17  Prefactor     .10000E-03    5.9360        .18118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     84.087        44.548        .21904E-03   -1.3871    
  19  norm          .10000E-03    .25373        .73876E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     49.391        237.42        .28141E-03   -1.4301    
  21  Prefactor     1.5926        4.1417        .23889E-03   -1.5456    
  22  Prefactor     .10000E-03    2.5967        .11980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.9156        .16495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10002E-03    8.0164        .27468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     21.464        24.364        .86442E-04   -1.4781    
  26  Prefactor     52.371        22.691        .55416E-04   -1.4259    
  27  Normalizat    .70605        .15934        .21345E-03   -1.0365    
  28  Prefactor     .88692        .17708        .21756E-03   -.96600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45649e-09
Minuit parameter uncertainties:
  1  2.03617e-05
  2  6.16431
  3  3.62499e-05
  4  3.48969
  5  2.27956e-05
  6  45.8028
  7  1.78076e-07
  8  6.7116
  9  14.298
  10  3.33367
  11  0.494482
  12  8.17392e-05
  13  3.46971e-05
  14  6.85237e-05
  15  4.63941e-07
  16  8.2202
  17  4.65692e-05
  18  44.566
  19  4.64127e-06
  20  217.992
  21  4.1424
  22  3.35823e-06
  23  6.08752e-07
  24  0.000893732
  25  24.3753
  26  22.6949
  27  0.159448
  28  0.177195
Done.

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

Extracting fit parameters...

4FGL J0226.5-4441
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  3.470e-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.869e-01  1.772e-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:  7.060e-01  1.594e-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: 3.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/325122/likelihoodResults_652233601_652492801_4FGL_J0226.5-4441_daily_bin1593.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) = 5804.76259557
delta logL = -0.000675962777677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5804.76192172
delta logL = -2.11566657526e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9313       1.0000          .0000       10.000    
     3 'Normalizat'    .70605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88675       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=   5804.762     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      199 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.941        .90712E-02** at limit **
   2  Index         1.9141        5.8031        .50000        .18310E-04
   3  Normalizat    .70605        .71258E-02    .42371E-01   -.26439E-03
   4  Prefactor     .88693        .81183E-02    .44836E-01   -.29370E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.91414
  Normalizat = 0.706047
  Prefactor  = 0.886925
 **********
 **   18 **HESSE 
 **********

 FCN=   5804.762     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      230 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1589.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9141        7.1710        .50000       -.66514    
   3  Normalizat    .70605        .10719        .21344E-03   -1.0365    
   4  Prefactor     .88693        .12206        .21755E-03   -.96599    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06818e-07
Minuit parameter uncertainties:
  1  0.0006675
  2  60.1797
  3  0.107222
  4  0.122099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325122': 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) = 5804.76191944
delta logL = 1.68188307725e-07

Extracting fit parameters...

4FGL J0226.5-4441
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  6.675e-04  1.000e-04  1.000e+04 ( 1.000e-14)
285        Index:  1.914e+00  6.018e+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.869e-01  1.221e-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:  7.060e-01  1.072e-01  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/325122/cmap_HighResolution_652233601_652492801_4FGL_J0226.5-4441_daily_bin1593.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-03', job_status='DONE', photon_flux_upper_limit='3.46e-08', time_completed='2021-09-05 00:14:59.150944', job_id='325122', GAL2='0.89', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630826099.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1593' AND source_name='4FGL J0226.5-4441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:14:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 325122: <4FGL_J0226.5-4441_daily_bin1593> in cluster <slac> Done

Job <4FGL_J0226.5-4441_daily_bin1593> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 00:00:52 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 00:00:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 00:00:54 2021
Terminated at Sun Sep  5 00:14:59 2021
Results reported at Sun Sep  5 00:14:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5-4441_daily_bin1593 36.6481 -44.6859 652233601 652492801 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 :                                   820.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             356.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            847 sec.

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

