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


Performing analysis on: 4FGL_J1226.8-1329_daily_bin747
RA = 186.719, Dec = -13.494
tmin = 432950401, tmax = 433209601
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='653759', job_status='RUN', time_executed='2021-09-05 16:04:22.765114', time_epoch_executed='1630883062.77' WHERE source_name='4FGL J1226.8-1329' and cadence='daily' and bin_id='747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/653759

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/653759/ft1_4FGL_J1226.8-1329_daily_bin747.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/653759/ft2_4FGL_J1226.8-1329_daily_bin747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/653759/ft1_4FGL_J1226.8-1329_daily_bin747.fits outfile=/scratch/kocevski/653759/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin747.fits ra=186.719 dec=-13.494 rad=12.0 tmin=432950401.0 tmax=433209601.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.65
user 5.40
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/653759/ft1_filtered_4FGL_J1226.8-1329_daily_bin747.fits" evtable="EVENTS" scfile=/scratch/kocevski/653759/ft2_4FGL_J1226.8-1329_daily_bin747.fits sctable="SC_DATA" outfile=/scratch/kocevski/653759/ltcube_432950401_433209601_4FGL_J1226.8-1329_daily_bin747.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/653759/ft2_4FGL_J1226.8-1329_daily_bin747.fits
.....................!
real 12.92
user 12.50
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/653759/ft1_filtered_4FGL_J1226.8-1329_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/653759/ft2_4FGL_J1226.8-1329_daily_bin747.fits sctable="SC_DATA" expcube=/scratch/kocevski/653759/ltcube_432950401_433209601_4FGL_J1226.8-1329_daily_bin747.fits outfile=/scratch/kocevski/653759/expmap_432950401_433209601_4FGL_J1226.8-1329_daily_bin747.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/653759/ltcube_432950401_433209601_4FGL_J1226.8-1329_daily_bin747.fits
.....................!
real 189.84
user 185.29
sys 4.04

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/653759/ft1_filtered_4FGL_J1226.8-1329_daily_bin747.fits scfile=/scratch/kocevski/653759/ft2_4FGL_J1226.8-1329_daily_bin747.fits outfile=/scratch/kocevski/653759/cmap_432950401_433209601_4FGL_J1226.8-1329_daily_bin747.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/653759/ft1_filtered_4FGL_J1226.8-1329_daily_bin747.fits scfile=/scratch/kocevski/653759/ft2_4FGL_J1226.8-1329_daily_bin747.fits outfile=/scratch/kocevski/653759/cmap_HighResolution_432950401_433209601_4FGL_J1226.8-1329_daily_bin747.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/653759/ft1_filtered_4FGL_J1226.8-1329_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/653759/ft2_4FGL_J1226.8-1329_daily_bin747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/653759/Model_4FGL_J1226.8-1329_daily_bin747.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/653759/ft1_filtered_4FGL_J1226.8-1329_daily_bin747.fits.....................!
real 55.77
user 54.39
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.048       1.0000         .10000E-03   10000.    
     2 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5349       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.382       1.0000         .10000E-03   10000.    
     6 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1442       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7648       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2509       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.3041       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.848       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10757E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.1864       1.0000         .10000E-03   10000.    
    22 'norm      '    13.931       1.0000         .10000E-03   10000.    
    23 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4167       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96410       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=   6481.219     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2826 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.049        38.039        .25091E-06    .22298E-04
   2  norm          .10000E-03    7.4742       -.46692E-06** at limit **
   3  Prefactor     3.5353        3.5040        .77263E-07    .30681E-04
   4  Prefactor     .10000E-03    11.388       -.38604E-06** at limit **
   5  Prefactor     30.380        19.186        .55306E-07   -.14687E-04
   6  norm          .10000E-03    2.2894       -.51664E-07** at limit **
   7  Prefactor     9.1141        78.417       -.10526E-04   -.14395E-03
   8  Prefactor     .10000E-03    19.357        .24757E-05** at limit **
   9  Prefactor     .10000E-03    28.176       -.33247E-05** at limit **
  10  Prefactor     .10004E-03    57.502        .89529E-05** at limit **
  11  Prefactor     .10000E-03    21.862       -.63308E-06** at limit **
  12  Prefactor     .10000E-03    34.190        .18187E-05** at limit **
  13  Prefactor     3.7652        6.3921        .57580E-05   -.88349E-03
  14  Prefactor     8.2510        3.0937       -.44918E-06    .50244E-04
  15  Prefactor     .10000E-03    6.8807        .78715E-07** at limit **
  16  Prefactor     .10000E-03    7.9953        .49366E-06** at limit **
  17  Prefactor     8.3057        16.307       -.11578E-05   -.41157E-04
  18  Prefactor     11.849        13.963        .37542E-07   -.62346E-05
  19  Prefactor     .10000E-03    22.184       -.10620E-05** at limit **
  20  Prefactor     .10005E-03    79.511       -.99161E-05** at limit **
  21  norm          3.1864        .47516       -.88644E-08   -.41077E-03
  22  norm          13.929        12.863        .39313E-07    .10651E-04
  23  norm          .10000E-03    7.3278        .18518E-07** at limit **
  24  Normalizat    1.4166        .27553       -.92727E-07   -.19181E-04
  25  Prefactor     .96411        .14636       -.16233E-06    .45802E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.0494
  norm       = 0.0001
  Prefactor  = 3.53528
  Prefactor  = 0.0001
  Prefactor  = 30.3802
  norm       = 0.0001
  Prefactor  = 9.11413
  Prefactor  = 0.000100004
  Prefactor  = 0.000100003
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.76522
  Prefactor  = 8.25098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.30568
  Prefactor  = 11.8489
  Prefactor  = 0.000100001
  Prefactor  = 0.000100046
  norm       = 3.18639
  norm       = 13.9294
  norm       = 0.0001
  Normalizat = 1.41661
  Prefactor  = 0.964111
 **********
 **   18 **HESSE 
 **********

 FCN=   6481.219     FROM HESSE     STATUS=OK           421 CALLS     3247 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.049        38.057        .71908E-04   -1.4593    
   2  norm          .10000E-03    7.5400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5353        3.5069        .14479E-03   -1.5332    
   4  Prefactor     .10000E-03    11.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.380        19.174        .72690E-04   -1.4605    
   6  norm          .10000E-03    2.3028        .11886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.1141        82.292        .13254E-03   -1.5104    
   8  Prefactor     .10000E-03    19.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    59.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.7652        6.6049        .10404E-02   -1.5320    
  14  Prefactor     8.2510        3.1016        .81445E-04   -1.5133    
  15  Prefactor     .10000E-03    6.8930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.0311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.3057        16.393        .13912E-03   -1.5131    
  18  Prefactor     11.849        13.965        .11638E-03   -1.5019    
  19  Prefactor     .10000E-03    22.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10005E-03    82.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.1864        .47689        .20532E-04   -1.5351    
  22  norm          13.929        12.880        .10731E-03   -1.4961    
  23  norm          .10000E-03    7.6592        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4166        .32280        .35765E-03   -.80150    
  25  Prefactor     .96411        .17094        .23129E-03   -.93936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15515e-09
Minuit parameter uncertainties:
  1  38.0864
  2  3.33352e-05
  3  3.50713
  4  4.83982e-05
  5  19.1781
  6  5.32623e-06
  7  54.8731
  8  0.000565081
  9  0.000596624
  10  0.00291844
  11  0.000164155
  12  0.000428148
  13  6.60622
  14  3.10165
  15  6.76043e-06
  16  4.99632e-05
  17  16.4019
  18  13.9692
  19  0.000216086
  20  0.00391532
  21  0.47689
  22  12.8826
  23  1.12353e-06
  24  0.323262
  25  0.171031
Done.

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

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  3.765e+00  6.606e+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:  9.641e-01  1.710e-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.417e+00  3.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.50
Ra Dec: 186.719 -13.494
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/653759/likelihoodResults_432950401_433209601_4FGL_J1226.8-1329_daily_bin747.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) = 6481.21190141
delta logL = 0.00674365431587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6481.20865183
delta logL = 0.00999323425549

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2087       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1884       1.0000          .0000       10.000    
     3 'Normalizat'    1.4099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96561       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6481.209     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      270 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2120        10.078        .11304E-02   -.36695E-03
   2  Index         2.1888        1.9473        .14301E-01   -.42580E-04
   3  Normalizat    1.4098        .31895        .35837E-03   -.10272E-03
   4  Prefactor     .96563        .17065        .23112E-03   -.31267E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.21197
  Index      = 2.18876
  Normalizat = 1.40979
  Prefactor  = 0.965627
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2120        7.1863        .45218E-04   -1.5350    
   2  Index         2.1888        1.4121        .57204E-03   -.59710    
   3  Normalizat    1.4098        .31335        .14335E-04   -.80346    
   4  Prefactor     .96563        .16967        .46224E-04   -.93884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17064e-10
Minuit parameter uncertainties:
  1  7.1882
  2  1.44109
  3  0.313782
  4  0.169759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/653759': 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) = 6481.20865139
delta logL = 0.00999367369877

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  3.212e+00  7.188e+00  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  2.189e+00  1.441e+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:  9.656e-01  1.698e-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.410e+00  3.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
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/653759/cmap_HighResolution_432950401_433209601_4FGL_J1226.8-1329_daily_bin747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.82e-03', job_status='DONE', photon_flux_upper_limit='1.31e-07', time_completed='2021-09-05 16:16:56.555657', job_id='653759', GAL2='0.97', fit_tolerance='1e-08', EG2='1.41', EG='1.42', time_epoch_completed='1630883816.56', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='9.99e-03', ts2='0.53', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='747' AND source_name='4FGL J1226.8-1329' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 16:16:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 653759: <4FGL_J1226.8-1329_daily_bin747> in cluster <slac> Done

Job <4FGL_J1226.8-1329_daily_bin747> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 16:00:24 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 16:00:26 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:00:26 2021
Terminated at Sun Sep  5 16:16:57 2021
Results reported at Sun Sep  5 16:16:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1226.8-1329_daily_bin747 186.719 -13.494 432950401 433209601 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 :                                   752.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             259.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            993 sec.

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

