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


Performing analysis on: 4FGL_J0226.5-4441_daily_bin1597
RA = 36.6481, Dec = -44.6859
tmin = 653270401, tmax = 653529601
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='534730', job_status='RUN', time_executed='2021-09-17 00:15:57.721749', time_epoch_executed='1631862957.72' WHERE source_name='4FGL J0226.5-4441' and cadence='daily' and bin_id='1597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534730

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534730/ft1_4FGL_J0226.5-4441_daily_bin1597.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534730/ft2_4FGL_J0226.5-4441_daily_bin1597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534730/ft1_4FGL_J0226.5-4441_daily_bin1597.fits outfile=/scratch/kocevski/534730/ft1_filteredMKT_4FGL_J0226.5-4441_daily_bin1597.fits ra=36.6481 dec=-44.6859 rad=12.0 tmin=653270401.0 tmax=653529601.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.72
user 3.09
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/534730/ft1_filtered_4FGL_J0226.5-4441_daily_bin1597.fits" evtable="EVENTS" scfile=/scratch/kocevski/534730/ft2_4FGL_J0226.5-4441_daily_bin1597.fits sctable="SC_DATA" outfile=/scratch/kocevski/534730/ltcube_653270401_653529601_4FGL_J0226.5-4441_daily_bin1597.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/534730/ft2_4FGL_J0226.5-4441_daily_bin1597.fits
.....................!
real 12.70
user 12.19
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534730/ft1_filtered_4FGL_J0226.5-4441_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/534730/ft2_4FGL_J0226.5-4441_daily_bin1597.fits sctable="SC_DATA" expcube=/scratch/kocevski/534730/ltcube_653270401_653529601_4FGL_J0226.5-4441_daily_bin1597.fits outfile=/scratch/kocevski/534730/expmap_653270401_653529601_4FGL_J0226.5-4441_daily_bin1597.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/534730/ltcube_653270401_653529601_4FGL_J0226.5-4441_daily_bin1597.fits
.....................!
real 194.07
user 187.79
sys 5.86

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/534730/ft1_filtered_4FGL_J0226.5-4441_daily_bin1597.fits scfile=/scratch/kocevski/534730/ft2_4FGL_J0226.5-4441_daily_bin1597.fits outfile=/scratch/kocevski/534730/cmap_653270401_653529601_4FGL_J0226.5-4441_daily_bin1597.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.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534730/ft1_filtered_4FGL_J0226.5-4441_daily_bin1597.fits scfile=/scratch/kocevski/534730/ft2_4FGL_J0226.5-4441_daily_bin1597.fits outfile=/scratch/kocevski/534730/cmap_HighResolution_653270401_653529601_4FGL_J0226.5-4441_daily_bin1597.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/534730/ft1_filtered_4FGL_J0226.5-4441_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/534730/ft2_4FGL_J0226.5-4441_daily_bin1597.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/534730/Model_4FGL_J0226.5-4441_daily_bin1597.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/534730/ft1_filtered_4FGL_J0226.5-4441_daily_bin1597.fits.....................!
real 75.39
user 73.43
sys 1.40

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2301       1.0000         .10000E-03   10000.    
     2 'norm      '    24.508       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.368       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0348       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-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 '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7697       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7355       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.487       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .66411       1.0000         .10000E-03   10000.    
    15 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .62127       1.0000         .10000E-03   10000.    
    20 'Prefactor '    146.96       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9600       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.1342       1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.167       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12254E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    21.019       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.0771       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0328       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2941       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=   3625.279     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3958 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2068        34.568        .53349E-05   -.91385E-05
   2  norm          24.507        17.584       -.54929E-07   -.48789E-05
   3  Prefactor     28.365        49.820        .75771E-06   -.13248E-05
   4  Prefactor     2.0324        7.2064        .22346E-06   -.58645E-05
   5  Prefactor     .10000E-03    3.4155       -.21551E-07** at limit **
   6  norm          .10000E-03    35.595       -.98915E-06** at limit **
   7  norm          .10000E-03    1.8892       -.43165E-07** at limit **
   8  Prefactor     .10000E-03    7.3589       -.19521E-07** at limit **
   9  Prefactor     .10000E-03    11.440       -.67275E-06** at limit **
  10  Prefactor     4.7693        4.7438        .21147E-06   -.21115E-04
  11  norm          3.7357        2.1337       -.31411E-07   -.56166E-04
  12  Prefactor     13.489        21.907       -.36831E-06   -.31759E-04
  13  Prefactor     .10000E-03    31.073        .16319E-05** at limit **
  14  norm          .66291        2.3067        .12274E-06   -.52562E-04
  15  norm          .10000E-03    1.8939       -.17105E-07** at limit **
  16  Prefactor     .10000E-03    10.792        .47639E-06** at limit **
  17  Prefactor     .10000E-03    10.981        .22773E-06** at limit **
  18  Prefactor     .10000E-03    43.266       -.16972E-05** at limit **
  19  norm          .62055        .88684        .19324E-07   -.52416E-04
  20  Prefactor     147.09        379.81       -.10004E-04    .24773E-05
  21  Prefactor     1.9592        6.0745        .42779E-05   -.19314E-03
  22  Prefactor     2.1242        40.765        .28839E-05   -.19216E-05
  23  Prefactor     33.214        34.677       -.58334E-05   -.64705E-04
  24  Prefactor     .10000E-03    31.323        .47334E-05** at limit **
  25  Prefactor     21.007        39.852        .23241E-05   -.53154E-05
  26  Prefactor     8.0827        20.696        .59399E-07   -.90122E-05
  27  Normalizat    1.0340        .25368        .93224E-06   -.10759E-03
  28  Prefactor     1.2930        .27258       -.17791E-05   -.91400E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.20679
  norm       = 24.5067
  Prefactor  = 28.3651
  Prefactor  = 2.03235
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.76933
  norm       = 3.73567
  Prefactor  = 13.4895
  Prefactor  = 0.0001
  norm       = 0.662915
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.620554
  Prefactor  = 147.089
  Prefactor  = 1.95915
  Prefactor  = 2.12416
  Prefactor  = 33.2138
  Prefactor  = 0.000100005
  Prefactor  = 21.0071
  Prefactor  = 8.08268
  Normalizat = 1.034
  Prefactor  = 1.29302
 **********
 **   18 **HESSE 
 **********

 FCN=   3625.279     FROM HESSE     STATUS=OK           523 CALLS     4481 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2068        34.517        .14917E-03   -1.5171    
   2  norm          24.507        17.582        .80916E-04   -1.4717    
   3  Prefactor     28.365        49.789        .75219E-04   -1.4642    
   4  Prefactor     2.0324        7.1708        .28996E-03   -1.5423    
   5  Prefactor     .10000E-03    3.4192        .10868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    35.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8902        .80824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.3649        .15953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.7693        4.7460        .12609E-03   -1.5271    
  11  norm          3.7357        2.1313        .63213E-04   -1.5321    
  12  Prefactor     13.489        21.896        .10907E-03   -1.4973    
  13  Prefactor     .10000E-03    31.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .66291        2.2783        .16314E-03   -1.5545    
  15  norm          .10000E-03    1.9108        .80885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    43.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .62055        .83481        .65420E-03   -1.5550    
  20  Prefactor     147.09        378.86        .16621E-03   -1.3276    
  21  Prefactor     1.9592        6.1114        .12270E-02   -1.5428    
  22  Prefactor     2.1242        40.836        .28219E-03   -1.5416    
  23  Prefactor     33.214        34.884        .69579E-04   -1.4555    
  24  Prefactor     .10000E-03    32.751        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     21.007        39.887        .87365E-04   -1.4791    
  26  Prefactor     8.0827        20.689        .14107E-03   -1.5139    
  27  Normalizat    1.0340        .29772        .26163E-03   -.91900    
  28  Prefactor     1.2930        .32112        .26182E-03   -.83515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33195e-10
Minuit parameter uncertainties:
  1  31.5735
  2  17.5855
  3  49.8619
  4  7.1738
  5  2.14017e-06
  6  9.82908e-06
  7  6.94855e-07
  8  1.72158e-06
  9  1.31986e-06
  10  4.74642
  11  2.13132
  12  21.9092
  13  1.56844e-05
  14  2.27858
  15  1.30232e-06
  16  9.15658e-06
  17  2.45574e-06
  18  4.23064e-05
  19  0.834823
  20  385.413
  21  6.11339
  22  18.6413
  23  34.9053
  24  0.000774941
  25  39.9376
  26  20.7071
  27  0.298199
  28  0.321615
Done.

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

Extracting fit parameters...

4FGL J0226.5-4441
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  1.568e-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:  1.293e+00  3.216e-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.034e+00  2.982e-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: 8.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/534730/likelihoodResults_653270401_653529601_4FGL_J0226.5-4441_daily_bin1597.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) = 3625.27954437
delta logL = -0.000153161991875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3625.27939131
delta logL = -1.0045732779e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11764E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0224       1.0000          .0000       10.000    
     3 'Normalizat'    1.0340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2930       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=   3625.279     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      236 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    130.85        .90712E-02** at limit **
   2  Index         2.0633        5.0359        .50000       -.11037E-04
   3  Normalizat    1.0340        .11500E-01    .41786E-01   -.47242E-05
   4  Prefactor     1.2930        .12743E-01    .59205E-01    .26096E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.06332
  Normalizat = 1.034
  Prefactor  = 1.29302
 **********
 **   18 **HESSE 
 **********

 FCN=   3625.279     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1693.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0633        5.9764        .50000       -.62776    
   3  Normalizat    1.0340        .44643E-01    .26163E-03   -.91900    
   4  Prefactor     1.2930        .49454E-01    .26182E-03   -.83515    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.67992e-08
Minuit parameter uncertainties:
  1  0.00849343
  2  28.3896
  3  0.0446443
  4  0.0494557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534730': 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) = 3625.27939095
delta logL = 2.58786712948e-07

Extracting fit parameters...

4FGL J0226.5-4441
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  8.493e-03  1.000e-04  1.000e+04 ( 1.000e-14)
285        Index:  2.063e+00  2.839e+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:  1.293e+00  4.946e-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.034e+00  4.464e-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/534730/cmap_HighResolution_653270401_653529601_4FGL_J0226.5-4441_daily_bin1597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.33e-03', job_status='DONE', photon_flux_upper_limit='8.47e-08', time_completed='2021-09-17 00:26:43.835067', job_id='534730', GAL2='1.29', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1631863603.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='2.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1597' AND source_name='4FGL J0226.5-4441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 00:26:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 534730: <4FGL_J0226.5-4441_daily_bin1597> in cluster <slac> Done

Job <4FGL_J0226.5-4441_daily_bin1597> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Sep 17 00:15:23 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 00:15:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 00:15:26 2021
Terminated at Fri Sep 17 00:26:44 2021
Results reported at Fri Sep 17 00:26:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5-4441_daily_bin1597 36.6481 -44.6859 653270401 653529601 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 :                                   646.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            681 sec.

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

