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


Performing analysis on: 4FGL_J1226.8-1329_daily_bin1365
RA = 186.719, Dec = -13.494
tmin = 593136001, tmax = 593395201
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='657534', job_status='RUN', time_executed='2021-09-05 16:14:58.440534', time_epoch_executed='1630883698.44' WHERE source_name='4FGL J1226.8-1329' and cadence='daily' and bin_id='1365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657534

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657534/ft1_4FGL_J1226.8-1329_daily_bin1365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657534/ft2_4FGL_J1226.8-1329_daily_bin1365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657534/ft1_4FGL_J1226.8-1329_daily_bin1365.fits outfile=/scratch/kocevski/657534/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin1365.fits ra=186.719 dec=-13.494 rad=12.0 tmin=593136001.0 tmax=593395201.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.16
user 4.90
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/657534/ft2_4FGL_J1226.8-1329_daily_bin1365.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/657534/ft2_4FGL_J1226.8-1329_daily_bin1365.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/657534/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin1365.fits evtable="EVENTS" outfile="/scratch/kocevski/657534/ft1_filtered_4FGL_J1226.8-1329_daily_bin1365.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657534/ft1_filtered_4FGL_J1226.8-1329_daily_bin1365.fits" evtable="EVENTS" scfile=/scratch/kocevski/657534/ft2_4FGL_J1226.8-1329_daily_bin1365.fits sctable="SC_DATA" outfile=/scratch/kocevski/657534/ltcube_593136001_593395201_4FGL_J1226.8-1329_daily_bin1365.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/657534/ft2_4FGL_J1226.8-1329_daily_bin1365.fits
.....................!
real 11.63
user 11.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657534/ft1_filtered_4FGL_J1226.8-1329_daily_bin1365.fits evtable="EVENTS" scfile=/scratch/kocevski/657534/ft2_4FGL_J1226.8-1329_daily_bin1365.fits sctable="SC_DATA" expcube=/scratch/kocevski/657534/ltcube_593136001_593395201_4FGL_J1226.8-1329_daily_bin1365.fits outfile=/scratch/kocevski/657534/expmap_593136001_593395201_4FGL_J1226.8-1329_daily_bin1365.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/657534/ltcube_593136001_593395201_4FGL_J1226.8-1329_daily_bin1365.fits
.....................!
real 191.61
user 186.84
sys 4.27

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
Added 194 point sources and 0 extended sources

Setting source of interest to:
4FGL J1226.8-1329 @ 186.719 -13.494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/657534/ft1_filtered_4FGL_J1226.8-1329_daily_bin1365.fits scfile=/scratch/kocevski/657534/ft2_4FGL_J1226.8-1329_daily_bin1365.fits outfile=/scratch/kocevski/657534/cmap_593136001_593395201_4FGL_J1226.8-1329_daily_bin1365.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=186.719 yref=-13.494 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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657534/ft1_filtered_4FGL_J1226.8-1329_daily_bin1365.fits scfile=/scratch/kocevski/657534/ft2_4FGL_J1226.8-1329_daily_bin1365.fits outfile=/scratch/kocevski/657534/cmap_HighResolution_593136001_593395201_4FGL_J1226.8-1329_daily_bin1365.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=186.719 yref=-13.494 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.63
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/657534/ft1_filtered_4FGL_J1226.8-1329_daily_bin1365.fits evtable="EVENTS" scfile=/scratch/kocevski/657534/ft2_4FGL_J1226.8-1329_daily_bin1365.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/657534/Model_4FGL_J1226.8-1329_daily_bin1365.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 GAL_V02
Working on...
/scratch/kocevski/657534/ft1_filtered_4FGL_J1226.8-1329_daily_bin1365.fits.....................!
real 53.22
user 50.30
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/657534/ft1_filtered_4FGL_J1226.8-1329_daily_bin1365.fits', '/scratch/kocevski/657534/ft2_4FGL_J1226.8-1329_daily_bin1365.fits', expMap='/scratch/kocevski/657534/expmap_593136001_593395201_4FGL_J1226.8-1329_daily_bin1365.fits', expCube='/scratch/kocevski/657534/ltcube_593136001_593395201_4FGL_J1226.8-1329_daily_bin1365.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/657534/Model_4FGL_J1226.8-1329_daily_bin1365.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1226.8-1329'

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.164e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
355        Scale:  2.502e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/657534/ft1_filtered_4FGL_J1226.8-1329_daily_bin1365.fits
Spacecraft file(s): /scratch/kocevski/657534/ft2_4FGL_J1226.8-1329_daily_bin1365.fits
Exposure map: /scratch/kocevski/657534/expmap_593136001_593395201_4FGL_J1226.8-1329_daily_bin1365.fits
Exposure cube: /scratch/kocevski/657534/ltcube_593136001_593395201_4FGL_J1226.8-1329_daily_bin1365.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/657534/Model_4FGL_J1226.8-1329_daily_bin1365.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) = 5612.67136367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.485       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12781E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.0049       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    66.009       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2272       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7799       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0734       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.607       1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.027       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6050       1.0000         .10000E-03   10000.    
    19 'Prefactor '    96.113       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.8806       1.0000         .10000E-03   10000.    
    22 'norm      '    4.1103       1.0000         .10000E-03   10000.    
    23 'norm      '    10.753       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5327       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84191       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5612.656     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2909 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.486        34.336        .11909E-06    .43956E-06
   2  norm          .10000E-03    2.1395       -.22162E-07** at limit **
   3  Prefactor     .10000E-03    1.3513       -.23331E-07** at limit **
   4  Prefactor     .10000E-03    15.392       -.10928E-06** at limit **
   5  Prefactor     .10000E-03    53.558        .89384E-06** at limit **
   6  norm          4.0049        6.7019        .16301E-07   -.54213E-04
   7  Prefactor     .10000E-03    16.922        .67848E-07** at limit **
   8  Prefactor     .10000E-03    43.082       -.34543E-06** at limit **
   9  Prefactor     .10000E-03    98.354       -.65615E-06** at limit **
  10  Prefactor     66.003        87.482        .13536E-05   -.21775E-04
  11  Prefactor     .10017E-03    91.024        .17231E-04** at limit **
  12  Prefactor     5.2551        130.63       -.10988E-04   -.20836E-04
  13  Prefactor     .10000E-03    2.2615       -.19466E-07** at limit **
  14  Prefactor     3.7800        2.2962        .74188E-08    .21404E-04
  15  Prefactor     7.0733        7.7242       -.21743E-06    .18666E-04
  16  Prefactor     22.607        18.318        .11229E-06    .92634E-05
  17  Prefactor     40.026        18.699        .50044E-07    .51552E-05
  18  Prefactor     1.6027        31.683        .12795E-04   -.27629E-03
  19  Prefactor     96.094        85.783       -.71366E-06   -.12148E-03
  20  Prefactor     .10000E-03    57.593       -.38248E-06** at limit **
  21  norm          2.8807        .53982       -.27939E-08    .15316E-02
  22  norm          4.1106        6.7586       -.23912E-06    .22676E-03
  23  norm          10.754        10.715        .12880E-06    .27461E-04
  24  Normalizat    1.5329        .29524       -.27590E-06   -.23339E-05
  25  Prefactor     .84179        .16282       -.59670E-07   -.70313E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.4857
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.00491
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 66.0034
  Prefactor  = 0.000100167
  Prefactor  = 5.25514
  Prefactor  = 0.0001
  Prefactor  = 3.78001
  Prefactor  = 7.07331
  Prefactor  = 22.6067
  Prefactor  = 40.026
  Prefactor  = 1.60273
  Prefactor  = 96.0938
  Prefactor  = 0.0001
  norm       = 2.88071
  norm       = 4.11058
  norm       = 10.7541
  Normalizat = 1.53294
  Prefactor  = 0.841788
 **********
 **   18 **HESSE 
 **********

 FCN=   5612.656     FROM HESSE     STATUS=OK           425 CALLS     3334 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.486        34.341        .10178E-03   -1.4921    
   2  norm          .10000E-03    2.1407        .10702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3556        .85033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    53.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.0049        6.6362        .20152E-03   -1.5308    
   7  Prefactor     .10000E-03    16.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    44.220        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    100.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     66.003        87.009        .49398E-04   -1.4081    
  11  Prefactor     .10017E-03    105.71        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.2551        133.84        .17582E-03   -1.5249    
  13  Prefactor     .10000E-03    2.2648        .11001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.7800        2.2978        .85846E-04   -1.5319    
  15  Prefactor     7.0733        7.7273        .15083E-03   -1.5176    
  16  Prefactor     22.607        18.323        .84243E-04   -1.4757    
  17  Prefactor     40.026        18.765        .63356E-04   -1.4442    
  18  Prefactor     1.6027        33.989        .16725E-02   -1.5455    
  19  Prefactor     96.094        86.446        .40999E-04   -1.3744    
  20  Prefactor     .10000E-03    57.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.8807        .54777        .21269E-04   -1.5368    
  22  norm          4.1106        6.7300        .19884E-03   -1.5302    
  23  norm          10.754        10.723        .12218E-03   -1.5052    
  24  Normalizat    1.5329        .35377        .33743E-03   -.76857    
  25  Prefactor     .84179        .19473        .24076E-03   -.98206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84113e-09
Minuit parameter uncertainties:
  1  34.3847
  2  1.579e-07
  3  2.79896e-06
  4  2.28593e-05
  5  0.000198037
  6  6.63745
  7  4.17965e-05
  8  0.000199792
  9  0.000636598
  10  87.1778
  11  0.00840772
  12  53.1737
  13  1.50848e-06
  14  2.29788
  15  7.72837
  16  18.3276
  17  18.7682
  18  14.7707
  19  86.5597
  20  0.000275364
  21  0.547773
  22  6.73126
  23  10.7251
  24  0.354348
  25  0.194891
Done.

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

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.000e-04  1.508e-06  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
355        Scale:  2.502e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
631    Prefactor:  8.418e-01  1.949e-01  0.000e+00  1.000e+01 ( 1.000e+00)
632        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
633        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
630   Normalization:  1.533e+00  3.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.719 -13.494
Photon Flux Upper Limit: 7.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/657534/likelihoodResults_593136001_593395201_4FGL_J1226.8-1329_daily_bin1365.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) = 5612.65843653
delta logL = -0.00204417826535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5612.6563923
delta logL = 5.48625394003e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9806       1.0000          .0000       10.000    
     3 'Normalizat'    1.5329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84182       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5612.656     FROM MIGRAD    STATUS=FAILED        86 CALLS      237 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10162E-03    44.767        .11145E-02** at limit **
   2  Index         1.9103        8.0478        .50000        .52387E-04
   3  Normalizat    1.5329        .32529E-01    .33743E-03    .17958E-04
   4  Prefactor     .84179        .17958E-01    .24076E-03    .50620E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5612.656     FROM SIMPLEX   STATUS=PROGRESS     125 CALLS      362 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10152E-03    44.767        .19550E-03** at limit **
   2  Index         1.9087        8.0478        .55130E-03    .52387E-04
   3  Normalizat    1.5329        .32529E-01    .48394E-05    .17958E-04
   4  Prefactor     .84178        .17958E-01    .38285E-05    .50620E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5612.656     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      414 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.444        .22291E-02** at limit **
   2  Index         1.5409        8.5302        .50000        .33356E-07
   3  Normalizat    1.5329        .32466E-01    .13497E-04   -.30322E-04
   4  Prefactor     .84179        .17925E-01    .96304E-05   -.44859E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.54086
  Normalizat = 1.53294
  Prefactor  = 0.841789
 **********
 **   18 **HESSE 
 **********

 FCN=   5612.656     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      443 TOTAL
                     EDM=   .88E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    227.82        .44581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5409        7.7648        .50000       -.76402    
   3  Normalizat    1.5329        .75652E-01    .26995E-05   -.76857    
   4  Prefactor     .84179        .41757E-01    .19261E-05   -.98206    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.77091e-13
Minuit parameter uncertainties:
  1  4.48978e-05
  2  894.81
  3  0.0756578
  4  0.0417583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657534': 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) = 5612.65638865
delta logL = 3.70378074876e-06

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.000e-04  4.490e-05  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  1.541e+00  8.948e+02  0.000e+00  1.000e+01 (-1.000e+00)
355        Scale:  2.502e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
631    Prefactor:  8.418e-01  4.176e-02  0.000e+00  1.000e+01 ( 1.000e+00)
632        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
633        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
630   Normalization:  1.533e+00  7.566e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.719 -13.494

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/657534/cmap_HighResolution_593136001_593395201_4FGL_J1226.8-1329_daily_bin1365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.55e-03', job_status='DONE', photon_flux_upper_limit='7.41e-08', time_completed='2021-09-05 16:27:17.929168', job_id='657534', GAL2='0.84', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1630884437.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='3.70e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1365' AND source_name='4FGL J1226.8-1329' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 16:27:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 657534: <4FGL_J1226.8-1329_daily_bin1365> in cluster <slac> Done

Job <4FGL_J1226.8-1329_daily_bin1365> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 16:11:51 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 16:11:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 16:11:53 2021
Terminated at Sun Sep  5 16:27:18 2021
Results reported at Sun Sep  5 16:27:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1226.8-1329_daily_bin1365 186.719 -13.494 593136001 593395201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1226.8-1329 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   720.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

