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


Performing analysis on: 4FGL_J1226.8-1329_daily_bin658
RA = 186.719, Dec = -13.494
tmin = 409881601, tmax = 410140801
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='652114', job_status='RUN', time_executed='2021-09-05 15:56:08.041213', time_epoch_executed='1630882568.04' WHERE source_name='4FGL J1226.8-1329' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/652114

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/652114/ft1_4FGL_J1226.8-1329_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/652114/ft2_4FGL_J1226.8-1329_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/652114/ft1_4FGL_J1226.8-1329_daily_bin658.fits outfile=/scratch/kocevski/652114/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin658.fits ra=186.719 dec=-13.494 rad=12.0 tmin=409881601.0 tmax=410140801.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 6.32
user 5.97
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/652114/ft1_filtered_4FGL_J1226.8-1329_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/652114/ft2_4FGL_J1226.8-1329_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/652114/ltcube_409881601_410140801_4FGL_J1226.8-1329_daily_bin658.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/652114/ft2_4FGL_J1226.8-1329_daily_bin658.fits
.....................!
real 12.21
user 11.81
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/652114/ft1_filtered_4FGL_J1226.8-1329_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/652114/ft2_4FGL_J1226.8-1329_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/652114/ltcube_409881601_410140801_4FGL_J1226.8-1329_daily_bin658.fits outfile=/scratch/kocevski/652114/expmap_409881601_410140801_4FGL_J1226.8-1329_daily_bin658.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/652114/ltcube_409881601_410140801_4FGL_J1226.8-1329_daily_bin658.fits
.....................!
real 190.40
user 185.03
sys 4.65

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/652114/ft1_filtered_4FGL_J1226.8-1329_daily_bin658.fits scfile=/scratch/kocevski/652114/ft2_4FGL_J1226.8-1329_daily_bin658.fits outfile=/scratch/kocevski/652114/cmap_409881601_410140801_4FGL_J1226.8-1329_daily_bin658.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/652114/ft1_filtered_4FGL_J1226.8-1329_daily_bin658.fits scfile=/scratch/kocevski/652114/ft2_4FGL_J1226.8-1329_daily_bin658.fits outfile=/scratch/kocevski/652114/cmap_HighResolution_409881601_410140801_4FGL_J1226.8-1329_daily_bin658.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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/652114/ft1_filtered_4FGL_J1226.8-1329_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/652114/ft2_4FGL_J1226.8-1329_daily_bin658.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/652114/Model_4FGL_J1226.8-1329_daily_bin658.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/652114/ft1_filtered_4FGL_J1226.8-1329_daily_bin658.fits.....................!
real 63.26
user 60.40
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.1611       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11160E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11049E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.1086       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6081       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .51043       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    74.069       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.3413       1.0000         .10000E-03   10000.    
    21 'norm      '    6.5098       1.0000         .10000E-03   10000.    
    22 'norm      '    6.5842       1.0000         .10000E-03   10000.    
    23 'norm      '    14.113       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3677       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0752       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=   7056.313     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2930 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.099       -.26638E-05** at limit **
   2  norm          .10000E-03    3.6473        .24554E-08** at limit **
   3  Prefactor     .10000E-03    3.5053        .16356E-06** at limit **
   4  Prefactor     .10000E-03    12.748        .81418E-06** at limit **
   5  Prefactor     .10000E-03    18.182        .33851E-05** at limit **
   6  norm          6.1601        5.0170        .10330E-05   -.16630E-04
   7  Prefactor     .10000E-03    19.427        .12326E-05** at limit **
   8  Prefactor     .10000E-03    22.790       -.25364E-05** at limit **
   9  Prefactor     .10000E-03    41.761        .55464E-05** at limit **
  10  Prefactor     .10000E-03    29.732        .22587E-05** at limit **
  11  Prefactor     .10000E-03    13.922       -.62149E-06** at limit **
  12  Prefactor     .10000E-03    152.89        .35763E-04** at limit **
  13  Prefactor     .10000E-03    3.8904        .24189E-06** at limit **
  14  Prefactor     9.1112        3.2087       -.21262E-06    .28371E-03
  15  Prefactor     2.6020        43.429       -.72994E-05   -.51591E-04
  16  Prefactor     .10000E-03    6.9320       -.41647E-06** at limit **
  17  Prefactor     .35004        163.47        .61137E-04    .16508E-04
  18  Prefactor     .10000E-03    27.590        .29337E-05** at limit **
  19  Prefactor     74.047        114.60        .10084E-04   -.38498E-05
  20  Prefactor     8.3841        155.40       -.20885E-04   -.26635E-04
  21  norm          6.5101        .76108       -.23076E-06    .12075E-02
  22  norm          6.5846        6.9710       -.12240E-05   -.88199E-04
  23  norm          14.113        8.7484       -.22969E-06   -.53032E-04
  24  Normalizat    1.3684        .30677       -.40741E-05    .33906E-03
  25  Prefactor     1.0749        .16498        .34856E-05   -.15555E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.16007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.11122
  Prefactor  = 2.60196
  Prefactor  = 0.0001
  Prefactor  = 0.350042
  Prefactor  = 0.0001
  Prefactor  = 74.047
  Prefactor  = 8.3841
  norm       = 6.51012
  norm       = 6.58464
  norm       = 14.1133
  Normalizat = 1.36835
  Prefactor  = 1.07494
 **********
 **   18 **HESSE 
 **********

 FCN=   7056.313     FROM HESSE     STATUS=OK           417 CALLS     3347 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.6539        .15667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.5848        .15349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.1601        5.0084        .16174E-03   -1.5212    
   7  Prefactor     .10000E-03    19.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    41.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    29.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    153.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.9099        .16171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.1112        3.2065        .85827E-04   -1.5104    
  15  Prefactor     2.6020        43.789        .25259E-03   -1.5385    
  16  Prefactor     .10000E-03    6.9455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .35004        162.79        .49480E-02   -1.5590    
  18  Prefactor     .10000E-03    27.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     74.047        116.15        .46652E-04   -1.3985    
  20  Prefactor     8.3841        155.29        .13881E-03   -1.5129    
  21  norm          6.5101        .77525        .21277E-04   -1.5198    
  22  norm          6.5846        6.9725        .15639E-03   -1.5195    
  23  norm          14.113        8.7345        .10662E-03   -1.4956    
  24  Normalizat    1.3684        .36176        .39594E-03   -.81548    
  25  Prefactor     1.0749        .19319        .23975E-03   -.90272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0601e-09
Minuit parameter uncertainties:
  1  0.000115044
  2  7.64425e-06
  3  2.37151e-05
  4  1.31772e-05
  5  0.000140382
  6  5.0087
  7  2.17703e-05
  8  0.000135423
  9  0.00016863
  10  1.93165e-06
  11  9.4656e-05
  12  0.000829472
  13  1.33545e-05
  14  3.20661
  15  21.3663
  16  2.87632e-05
  17  15.137
  18  0.000180029
  19  116.51
  20  72.3842
  21  0.77525
  22  6.97341
  23  8.73528
  24  0.36244
  25  0.19332
Done.

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

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.000e-04  1.335e-05  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.075e+00  1.933e-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.368e+00  3.624e-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: 9.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/652114/likelihoodResults_409881601_410140801_4FGL_J1226.8-1329_daily_bin658.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) = 7056.31435812
delta logL = -0.00121417131049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7056.31314396
delta logL = -1.28802639665e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9987       1.0000          .0000       10.000    
     3 'Normalizat'    1.3683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0750       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=   7056.313     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8797        .90712E-02** at limit **
   2  Index         1.9991        5.4657        .50000       -.80131E-06
   3  Normalizat    1.3683        .51396E-02    .89410E-01    .17549E-04
   4  Prefactor     1.0749        .28151E-02    .38626E-01    .12710E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99913
  Normalizat = 1.36834
  Prefactor  = 1.07495
 **********
 **   18 **HESSE 
 **********

 FCN=   7056.313     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.742        .16170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9991        8.3728        .50000       -.64372    
   3  Normalizat    1.3683        .17479E-01    .39595E-03   -.81549    
   4  Prefactor     1.0749        .95918E-02    .23975E-03   -.90271    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.06496e-10
Minuit parameter uncertainties:
  1  2.17046e-06
  2  88.7612
  3  0.0174787
  4  0.00959183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/652114': 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) = 7056.31314394
delta logL = 1.13686837722e-09

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.000e-04  2.170e-06  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  1.999e+00  8.876e+01  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.075e+00  9.592e-03  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.368e+00  1.748e-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/652114/cmap_HighResolution_409881601_410140801_4FGL_J1226.8-1329_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.07e-03', job_status='DONE', photon_flux_upper_limit='9.42e-08', time_completed='2021-09-05 16:09:55.438571', job_id='652114', GAL2='1.07', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630883395.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.14e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='658' AND source_name='4FGL J1226.8-1329' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 16:09:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 652114: <4FGL_J1226.8-1329_daily_bin658> in cluster <slac> Done

Job <4FGL_J1226.8-1329_daily_bin658> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 15:55:45 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 15:55:47 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:55:47 2021
Terminated at Sun Sep  5 16:09:56 2021
Results reported at Sun Sep  5 16:09:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1226.8-1329_daily_bin658 186.719 -13.494 409881601 410140801 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 :                                   818.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            851 sec.

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

