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


Performing analysis on: 4FGL_J1226.8-1329_daily_bin1121
RA = 186.719, Dec = -13.494
tmin = 529891201, tmax = 530150401
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='657053', job_status='RUN', time_executed='2021-09-05 16:11:46.544843', time_epoch_executed='1630883506.54' WHERE source_name='4FGL J1226.8-1329' and cadence='daily' and bin_id='1121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657053

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657053/ft1_4FGL_J1226.8-1329_daily_bin1121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657053/ft2_4FGL_J1226.8-1329_daily_bin1121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657053/ft1_4FGL_J1226.8-1329_daily_bin1121.fits outfile=/scratch/kocevski/657053/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin1121.fits ra=186.719 dec=-13.494 rad=12.0 tmin=529891201.0 tmax=530150401.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.85
user 3.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/657053/ft2_4FGL_J1226.8-1329_daily_bin1121.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/657053/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin1121.fits evtable="EVENTS" outfile="/scratch/kocevski/657053/ft1_filtered_4FGL_J1226.8-1329_daily_bin1121.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657053/ft1_filtered_4FGL_J1226.8-1329_daily_bin1121.fits" evtable="EVENTS" scfile=/scratch/kocevski/657053/ft2_4FGL_J1226.8-1329_daily_bin1121.fits sctable="SC_DATA" outfile=/scratch/kocevski/657053/ltcube_529891201_530150401_4FGL_J1226.8-1329_daily_bin1121.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/657053/ft2_4FGL_J1226.8-1329_daily_bin1121.fits
.....................!
real 12.48
user 11.50
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657053/ft1_filtered_4FGL_J1226.8-1329_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/657053/ft2_4FGL_J1226.8-1329_daily_bin1121.fits sctable="SC_DATA" expcube=/scratch/kocevski/657053/ltcube_529891201_530150401_4FGL_J1226.8-1329_daily_bin1121.fits outfile=/scratch/kocevski/657053/expmap_529891201_530150401_4FGL_J1226.8-1329_daily_bin1121.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/657053/ltcube_529891201_530150401_4FGL_J1226.8-1329_daily_bin1121.fits
.....................!
real 191.65
user 186.41
sys 4.35

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/657053/ft1_filtered_4FGL_J1226.8-1329_daily_bin1121.fits scfile=/scratch/kocevski/657053/ft2_4FGL_J1226.8-1329_daily_bin1121.fits outfile=/scratch/kocevski/657053/cmap_529891201_530150401_4FGL_J1226.8-1329_daily_bin1121.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657053/ft1_filtered_4FGL_J1226.8-1329_daily_bin1121.fits scfile=/scratch/kocevski/657053/ft2_4FGL_J1226.8-1329_daily_bin1121.fits outfile=/scratch/kocevski/657053/cmap_HighResolution_529891201_530150401_4FGL_J1226.8-1329_daily_bin1121.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/657053/ft1_filtered_4FGL_J1226.8-1329_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/657053/ft2_4FGL_J1226.8-1329_daily_bin1121.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/657053/Model_4FGL_J1226.8-1329_daily_bin1121.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/657053/ft1_filtered_4FGL_J1226.8-1329_daily_bin1121.fits.....................!
real 62.01
user 59.91
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/657053/ft1_filtered_4FGL_J1226.8-1329_daily_bin1121.fits', '/scratch/kocevski/657053/ft2_4FGL_J1226.8-1329_daily_bin1121.fits', expMap='/scratch/kocevski/657053/expmap_529891201_530150401_4FGL_J1226.8-1329_daily_bin1121.fits', expCube='/scratch/kocevski/657053/ltcube_529891201_530150401_4FGL_J1226.8-1329_daily_bin1121.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/657053/Model_4FGL_J1226.8-1329_daily_bin1121.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/657053/ft1_filtered_4FGL_J1226.8-1329_daily_bin1121.fits
Spacecraft file(s): /scratch/kocevski/657053/ft2_4FGL_J1226.8-1329_daily_bin1121.fits
Exposure map: /scratch/kocevski/657053/expmap_529891201_530150401_4FGL_J1226.8-1329_daily_bin1121.fits
Exposure cube: /scratch/kocevski/657053/ltcube_529891201_530150401_4FGL_J1226.8-1329_daily_bin1121.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/657053/Model_4FGL_J1226.8-1329_daily_bin1121.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) = 7287.92692815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.6969       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9927       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.225       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13419E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.644       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10643E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    71.547       1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.864       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3460       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.577       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.437       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6432       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.593       1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.553       1.0000         .10000E-03   10000.    
    21 'norm      '    7.1819       1.0000         .10000E-03   10000.    
    22 'norm      '    1.0448       1.0000         .10000E-03   10000.    
    23 'norm      '    6.7264       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0456       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1234       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=   7287.910     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2858 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.926       -.24940E-06** at limit **
   2  norm          5.6967        6.4279        .17807E-05   -.70310E-04
   3  Prefactor     6.9904        6.1573       -.11879E-06   -.41633E-04
   4  Prefactor     10.217        26.804       -.76400E-07   -.40846E-04
   5  Prefactor     .10000E-03    50.369       -.26497E-05** at limit **
   6  norm          10.646        6.3140       -.50791E-06   -.14367E-04
   7  Prefactor     .10000E-03    38.456        .91665E-06** at limit **
   8  Prefactor     .10000E-03    5.5290       -.16129E-07** at limit **
   9  Prefactor     71.543        45.725        .14476E-06   -.23903E-04
  10  Prefactor     32.866        38.937       -.83789E-07    .16565E-04
  11  Prefactor     .10000E-03    10.408        .13564E-06** at limit **
  12  Prefactor     .10000E-03    25.074        .87579E-07** at limit **
  13  Prefactor     .10000E-03    2.9758        .24397E-07** at limit **
  14  Prefactor     3.3460        2.0479        .15124E-08    .31696E-05
  15  Prefactor     11.577        17.980        .31890E-07   -.82003E-06
  16  Prefactor     17.435        18.363        .38953E-07   -.25744E-04
  17  Prefactor     5.6430        12.449        .28757E-06   -.10241E-04
  18  Prefactor     .10000E-03    10.200       -.83722E-07** at limit **
  19  Prefactor     44.600        83.466        .46677E-06    .11608E-04
  20  Prefactor     36.547        59.198       -.17802E-06   -.23297E-04
  21  norm          7.1818        .72611       -.71250E-08    .53794E-05
  22  norm          1.0490        9.4073        .73927E-06   -.13056E-03
  23  norm          6.7259        6.4323       -.29862E-07   -.35776E-04
  24  Normalizat    1.0457        .28912       -.20524E-07   -.56565E-04
  25  Prefactor     1.1233        .15674       -.43557E-06   -.78929E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.69674
  Prefactor  = 6.99036
  Prefactor  = 10.2168
  Prefactor  = 0.0001
  norm       = 10.6456
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 71.5434
  Prefactor  = 32.8659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.34605
  Prefactor  = 11.5768
  Prefactor  = 17.4351
  Prefactor  = 5.64297
  Prefactor  = 0.0001
  Prefactor  = 44.6001
  Prefactor  = 36.5469
  norm       = 7.18178
  norm       = 1.04899
  norm       = 6.7259
  Normalizat = 1.0457
  Prefactor  = 1.12328
 **********
 **   18 **HESSE 
 **********

 FCN=   7287.910     FROM HESSE     STATUS=OK           427 CALLS     3285 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.6967        6.4864        .84145E-03   -1.5231    
   3  Prefactor     6.9904        6.1268        .15171E-03   -1.5179    
   4  Prefactor     10.217        26.753        .12530E-03   -1.5069    
   5  Prefactor     .10000E-03    50.440        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.646        6.2482        .12281E-03   -1.5055    
   7  Prefactor     .10000E-03    39.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.5350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     71.543        45.737        .47461E-04   -1.4014    
  10  Prefactor     32.866        38.940        .69899E-04   -1.4561    
  11  Prefactor     .10000E-03    10.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.9879        .14376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.3460        2.0494        .92698E-04   -1.5342    
  15  Prefactor     11.577        18.000        .11774E-03   -1.5027    
  16  Prefactor     17.435        18.374        .95915E-04   -1.4873    
  17  Prefactor     5.6430        12.445        .16910E-03   -1.5233    
  18  Prefactor     .10000E-03    10.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     44.600        84.211        .60038E-04   -1.4371    
  20  Prefactor     36.547        59.190        .66288E-04   -1.4498    
  21  norm          7.1818        .73389        .20776E-04   -1.5172    
  22  norm          1.0490        36.690        .47737E-02   -1.5503    
  23  norm          6.7259        6.4252        .15471E-03   -1.5189    
  24  Normalizat    1.0457        .33038        .42026E-03   -.91515    
  25  Prefactor     1.1233        .18060        .22945E-03   -.88726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44937e-10
Minuit parameter uncertainties:
  1  9.87536e-05
  2  6.48725
  3  6.12732
  4  26.7839
  5  0.000223759
  6  6.24859
  7  0.000546007
  8  1.05514e-06
  9  45.7594
  10  38.9703
  11  4.37907e-05
  12  3.94655e-05
  13  9.91306e-07
  14  2.04949
  15  18.0089
  16  18.3804
  17  12.4507
  18  3.10852e-05
  19  84.4364
  20  59.2853
  21  0.733888
  22  12.4153
  23  6.42589
  24  0.331033
  25  0.1807
Done.

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

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.000e-04  9.913e-07  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:  1.123e+00  1.807e-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.046e+00  3.310e-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.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/657053/likelihoodResults_529891201_530150401_4FGL_J1226.8-1329_daily_bin1121.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) = 7287.91146628
delta logL = -0.00158691518664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7287.90987948
delta logL = -1.12108864414e-07

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 'Index     '    1.9962       1.0000          .0000       10.000    
     3 'Normalizat'    1.0456       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1234       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.

 FCN=   7287.910     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .19265        .90712E-02** at limit **
   2  Index         1.9943        8.2623        .50000        .51295E-05
   3  Normalizat    1.0457        .17460E-02    .94862E-01    .39579E-04
   4  Prefactor     1.1233        .98844E-03    .36760E-01    .33254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99425
  Normalizat = 1.04571
  Prefactor  = 1.12328
 **********
 **   18 **HESSE 
 **********

 FCN=   7287.910     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      233 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.840        .14379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9943        5.3402        .50000       -.64494    
   3  Normalizat    1.0457        .19105E-01    .42026E-03   -.91515    
   4  Prefactor     1.1233        .10829E-01    .22945E-03   -.88726    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.51709e-06
Minuit parameter uncertainties:
  1  9.37244e-06
  2  960.677
  3  0.0191056
  4  0.0108293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657053': 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) = 7287.90987936
delta logL = 5.27052179677e-09

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.000e-04  9.372e-06  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  1.994e+00  9.607e+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:  1.123e+00  1.083e-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.046e+00  1.911e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/657053/cmap_HighResolution_529891201_530150401_4FGL_J1226.8-1329_daily_bin1121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.98e-03', job_status='DONE', photon_flux_upper_limit='7.97e-08', time_completed='2021-09-05 16:25:48.075984', job_id='657053', GAL2='1.12', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630884348.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='5.27e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1121' AND source_name='4FGL J1226.8-1329' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 16:25:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 657053: <4FGL_J1226.8-1329_daily_bin1121> in cluster <slac> Done

Job <4FGL_J1226.8-1329_daily_bin1121> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 16:11:05 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 16:11:07 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:07 2021
Terminated at Sun Sep  5 16:25:48 2021
Results reported at Sun Sep  5 16:25:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1226.8-1329_daily_bin1121 186.719 -13.494 529891201 530150401 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 :                                   819.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

