/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 5 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 = 7563
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1226.8-1329_daily_bin304
RA = 186.719, Dec = -13.494
tmin = 318124801, tmax = 318384001
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='648694', job_status='RUN', time_executed='2021-09-05 15:45:44.913257', time_epoch_executed='1630881944.91' WHERE source_name='4FGL J1226.8-1329' and cadence='daily' and bin_id='304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648694

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648694/ft1_4FGL_J1226.8-1329_daily_bin304.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648694/ft2_4FGL_J1226.8-1329_daily_bin304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648694/ft1_4FGL_J1226.8-1329_daily_bin304.fits outfile=/scratch/kocevski/648694/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin304.fits ra=186.719 dec=-13.494 rad=12.0 tmin=318124801.0 tmax=318384001.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.36
user 3.16
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/648694/ft1_filtered_4FGL_J1226.8-1329_daily_bin304.fits" evtable="EVENTS" scfile=/scratch/kocevski/648694/ft2_4FGL_J1226.8-1329_daily_bin304.fits sctable="SC_DATA" outfile=/scratch/kocevski/648694/ltcube_318124801_318384001_4FGL_J1226.8-1329_daily_bin304.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/648694/ft2_4FGL_J1226.8-1329_daily_bin304.fits
.....................!
real 12.21
user 11.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648694/ft1_filtered_4FGL_J1226.8-1329_daily_bin304.fits evtable="EVENTS" scfile=/scratch/kocevski/648694/ft2_4FGL_J1226.8-1329_daily_bin304.fits sctable="SC_DATA" expcube=/scratch/kocevski/648694/ltcube_318124801_318384001_4FGL_J1226.8-1329_daily_bin304.fits outfile=/scratch/kocevski/648694/expmap_318124801_318384001_4FGL_J1226.8-1329_daily_bin304.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/648694/ltcube_318124801_318384001_4FGL_J1226.8-1329_daily_bin304.fits
.....................!
real 190.31
user 185.19
sys 4.71

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/648694/ft1_filtered_4FGL_J1226.8-1329_daily_bin304.fits scfile=/scratch/kocevski/648694/ft2_4FGL_J1226.8-1329_daily_bin304.fits outfile=/scratch/kocevski/648694/cmap_318124801_318384001_4FGL_J1226.8-1329_daily_bin304.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648694/ft1_filtered_4FGL_J1226.8-1329_daily_bin304.fits scfile=/scratch/kocevski/648694/ft2_4FGL_J1226.8-1329_daily_bin304.fits outfile=/scratch/kocevski/648694/cmap_HighResolution_318124801_318384001_4FGL_J1226.8-1329_daily_bin304.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/648694/ft1_filtered_4FGL_J1226.8-1329_daily_bin304.fits evtable="EVENTS" scfile=/scratch/kocevski/648694/ft2_4FGL_J1226.8-1329_daily_bin304.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/648694/Model_4FGL_J1226.8-1329_daily_bin304.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/648694/ft1_filtered_4FGL_J1226.8-1329_daily_bin304.fits.....................!
real 52.25
user 50.82
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    22.489       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.033       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.3490       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10622E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .82547       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3540       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.941       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4239       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    61.108       1.0000         .10000E-03   10000.    
    21 'norm      '    .82511       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .59577E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2895       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1084       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=   5942.445     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2924 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.182       -.31162E-06** at limit **
   2  norm          22.489        10.862       -.10997E-06    .14393E-04
   3  Prefactor     .10000E-03    1.8382       -.72207E-07** at limit **
   4  Prefactor     12.024        20.089       -.43744E-06    .20506E-04
   5  Prefactor     .10000E-03    10.228       -.32731E-06** at limit **
   6  norm          5.3487        5.5538       -.80941E-07    .17976E-03
   7  Prefactor     .10000E-03    89.671        .12681E-05** at limit **
   8  Prefactor     .10000E-03    8.8444       -.37621E-06** at limit **
   9  Prefactor     .10000E-03    25.892        .27631E-06** at limit **
  10  Prefactor     .10000E-03    24.427       -.83243E-06** at limit **
  11  Prefactor     .10000E-03    49.667       -.37077E-05** at limit **
  12  Prefactor     .10000E-03    37.295        .20146E-05** at limit **
  13  Prefactor     .82559        2.9031       -.23008E-06    .63778E-04
  14  Prefactor     5.3539        2.3931       -.27025E-07   -.95757E-04
  15  Prefactor     19.937        13.445       -.10441E-06   -.10401E-04
  16  Prefactor     1.4273        76.688       -.35910E-06   -.65882E-05
  17  Prefactor     .10000E-03    10.643       -.53500E-06** at limit **
  18  Prefactor     .10000E-03    12.894        .28815E-06** at limit **
  19  Prefactor     .10000E-03    13.769        .72622E-07** at limit **
  20  Prefactor     61.169        102.03        .32177E-05   -.30566E-04
  21  norm          .82513        .27621       -.14434E-07    .31648E-03
  22  norm          .10000E-03    9.2613        .18615E-06** at limit **
  23  norm          .10000E-03    23.141        .86120E-05** at limit **
  24  Normalizat    1.2893        .27196        .16189E-05    .15608E-03
  25  Prefactor     1.1085        .15575        .35202E-06    .12692E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 22.4894
  Prefactor  = 0.0001
  Prefactor  = 12.024
  Prefactor  = 0.0001
  norm       = 5.34867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.825593
  Prefactor  = 5.3539
  Prefactor  = 19.9372
  Prefactor  = 1.42734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.1691
  norm       = 0.825135
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.28934
  Prefactor  = 1.1085
 **********
 **   18 **HESSE 
 **********

 FCN=   5942.445     FROM HESSE     STATUS=OK           423 CALLS     3347 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          22.489        10.861        .84464E-04   -1.4759    
   3  Prefactor     .10000E-03    1.8452        .10199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.024        20.109        .11548E-03   -1.5014    
   5  Prefactor     .10000E-03    10.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.3487        5.5451        .17377E-03   -1.5245    
   7  Prefactor     .10000E-03    89.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.8996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    50.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .82559        3.0302        .23701E-02   -1.5526    
  14  Prefactor     5.3539        2.4108        .76845E-04   -1.5245    
  15  Prefactor     19.937        13.450        .89693E-04   -1.4815    
  16  Prefactor     1.4273        77.357        .36236E-03   -1.5469    
  17  Prefactor     .10000E-03    11.007        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     61.169        101.59        .51328E-04   -1.4142    
  21  norm          .82513        .27654        .22598E-04   -1.5526    
  22  norm          .10000E-03    9.3264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    23.041        .39147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2893        .32046        .34419E-03   -.83885    
  25  Prefactor     1.1085        .18247        .21032E-03   -.89195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16529e-10
Minuit parameter uncertainties:
  1  9.50739e-06
  2  10.8624
  3  5.46619e-06
  4  20.1206
  5  8.5523e-06
  6  5.54567
  7  0.000422149
  8  2.93476e-05
  9  5.69117e-05
  10  3.76299e-06
  11  7.2498e-05
  12  0.000105314
  13  3.03075
  14  2.4108
  15  13.4517
  16  21.0436
  17  5.68745e-05
  18  7.08281e-05
  19  1.27958e-05
  20  101.884
  21  0.276538
  22  7.69937e-05
  23  5.86713e-05
  24  0.32095
  25  0.182569
Done.

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

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  8.256e-01  3.031e+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

GAL_V02
   Spectrum: PowerLaw
631    Prefactor:  1.109e+00  1.826e-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.289e+00  3.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/648694/likelihoodResults_318124801_318384001_4FGL_J1226.8-1329_daily_bin304.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): 0
logL (Free Index) = 5942.42293089
delta logL = 0.022012539549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5942.41187847
delta logL = 0.0330649670996

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3956       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6528       1.0000          .0000       10.000    
     3 'Normalizat'    1.2910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1077       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.

 FCN=   5942.412     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      254 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4016        4.2237        .25843E-03   -.38977E-04
   2  Index         1.6504        1.2102        .17181E-01    .94762E-04
   3  Normalizat    1.2915        .31246        .34394E-03    .38743E-03
   4  Prefactor     1.1074        .18004        .21039E-03    .50890E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.40163
  Index      = 1.65041
  Normalizat = 1.2915
  Prefactor  = 1.10743
 **********
 **   18 **HESSE 
 **********

 FCN=   5942.412     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4016        4.1288        .10337E-04   -1.5471    
   2  Index         1.6504        1.1850        .34362E-02   -.73410    
   3  Normalizat    1.2915        .31270        .68787E-04   -.83821    
   4  Prefactor     1.1074        .18019        .42079E-04   -.89230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23419e-10
Minuit parameter uncertainties:
  1  4.12962
  2  1.20615
  3  0.313162
  4  0.180289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648694': 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): 0
logL (Free Index) = 5942.41187465
delta logL = 0.0330687809692

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.402e+00  4.130e+00  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  1.650e+00  1.206e+00  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.107e+00  1.803e-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.291e+00  3.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/648694/cmap_HighResolution_318124801_318384001_4FGL_J1226.8-1329_daily_bin304.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.56e-03', job_status='DONE', photon_flux_upper_limit='7.42e-08', time_completed='2021-09-05 15:57:48.960758', job_id='648694', GAL2='1.11', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630882668.96', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='3.31e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='304' AND source_name='4FGL J1226.8-1329' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 15:57:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 648694: <4FGL_J1226.8-1329_daily_bin304> in cluster <slac> Done

Job <4FGL_J1226.8-1329_daily_bin304> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 15:45:30 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 15:45:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 15:45:32 2021
Terminated at Sun Sep  5 15:57:49 2021
Results reported at Sun Sep  5 15:57:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1226.8-1329_daily_bin304 186.719 -13.494 318124801 318384001 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.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            739 sec.

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

