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


Performing analysis on: 4FGL_J1226.8-1329_daily_bin895
RA = 186.719, Dec = -13.494
tmin = 471312001, tmax = 471571201
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='654034', job_status='RUN', time_executed='2021-09-05 16:01:07.363046', time_epoch_executed='1630882867.36' WHERE source_name='4FGL J1226.8-1329' and cadence='daily' and bin_id='895'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654034

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654034/ft1_4FGL_J1226.8-1329_daily_bin895.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654034/ft2_4FGL_J1226.8-1329_daily_bin895.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654034/ft1_4FGL_J1226.8-1329_daily_bin895.fits outfile=/scratch/kocevski/654034/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin895.fits ra=186.719 dec=-13.494 rad=12.0 tmin=471312001.0 tmax=471571201.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.06
user 4.78
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/654034/ft1_filtered_4FGL_J1226.8-1329_daily_bin895.fits" evtable="EVENTS" scfile=/scratch/kocevski/654034/ft2_4FGL_J1226.8-1329_daily_bin895.fits sctable="SC_DATA" outfile=/scratch/kocevski/654034/ltcube_471312001_471571201_4FGL_J1226.8-1329_daily_bin895.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/654034/ft2_4FGL_J1226.8-1329_daily_bin895.fits
.....................!
real 11.18
user 10.85
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654034/ft1_filtered_4FGL_J1226.8-1329_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/654034/ft2_4FGL_J1226.8-1329_daily_bin895.fits sctable="SC_DATA" expcube=/scratch/kocevski/654034/ltcube_471312001_471571201_4FGL_J1226.8-1329_daily_bin895.fits outfile=/scratch/kocevski/654034/expmap_471312001_471571201_4FGL_J1226.8-1329_daily_bin895.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/654034/ltcube_471312001_471571201_4FGL_J1226.8-1329_daily_bin895.fits
.....................!
real 188.87
user 184.78
sys 3.67

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/654034/ft1_filtered_4FGL_J1226.8-1329_daily_bin895.fits scfile=/scratch/kocevski/654034/ft2_4FGL_J1226.8-1329_daily_bin895.fits outfile=/scratch/kocevski/654034/cmap_471312001_471571201_4FGL_J1226.8-1329_daily_bin895.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.54
user 0.38
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/654034/ft1_filtered_4FGL_J1226.8-1329_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/654034/ft2_4FGL_J1226.8-1329_daily_bin895.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/654034/Model_4FGL_J1226.8-1329_daily_bin895.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/654034/ft1_filtered_4FGL_J1226.8-1329_daily_bin895.fits.....................!
real 69.49
user 67.54
sys 1.55

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    3.2950       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.3922       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.602       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7577       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    66.206       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.370       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6645       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7640       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1621       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8702       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.1960       1.0000         .10000E-03   10000.    
    22 'norm      '    4.5714       1.0000         .10000E-03   10000.    
    23 'norm      '    5.3609       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.7005       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77620       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=   8389.462     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2874 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.834       -.47151E-06** at limit **
   2  norm          3.2937        7.0879        .38729E-05   -.52043E-05
   3  Prefactor     .10000E-03    2.4249        .99549E-07** at limit **
   4  Prefactor     .10000E-03    10.172        .46887E-09** at limit **
   5  Prefactor     .10000E-03    6.5347        .92730E-07** at limit **
   6  norm          3.3923        3.0547        .30469E-06    .60443E-04
   7  Prefactor     23.594        37.702       -.13803E-05    .25767E-04
   8  Prefactor     3.7564        10.282        .26716E-05    .10914E-04
   9  Prefactor     .10000E-03    11.129        .68293E-07** at limit **
  10  Prefactor     66.205        62.235       -.41507E-08    .54468E-04
  11  Prefactor     .10000E-03    31.432        .12301E-05** at limit **
  12  Prefactor     14.352        43.516        .88095E-06    .61067E-04
  13  Prefactor     6.6645        6.4737        .12074E-06   -.81795E-05
  14  Prefactor     3.7640        2.1378        .49147E-08    .22196E-04
  15  Prefactor     .10000E-03    3.5382       -.13171E-07** at limit **
  16  Prefactor     .10000E-03    2.4392        .12104E-08** at limit **
  17  Prefactor     4.1622        8.5865        .25498E-06   -.87731E-05
  18  Prefactor     .10000E-03    4.4243       -.37359E-07** at limit **
  19  Prefactor     3.6786        158.41        .39951E-06   -.21176E-04
  20  Prefactor     .10000E-03    25.020        .85896E-06** at limit **
  21  norm          2.1966        .37870        .13965E-07    .77369E-03
  22  norm          4.5716        8.6987        .32596E-06   -.21405E-04
  23  norm          5.3598        5.2493       -.81143E-07   -.56212E-04
  24  Normalizat    1.7005        .22385       -.92308E-06    .57833E-05
  25  Prefactor     .77615        .12469       -.37125E-08   -.41401E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 3.29374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.39229
  Prefactor  = 23.5936
  Prefactor  = 3.75644
  Prefactor  = 0.0001
  Prefactor  = 66.2053
  Prefactor  = 0.000100003
  Prefactor  = 14.3523
  Prefactor  = 6.66452
  Prefactor  = 3.76401
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.16224
  Prefactor  = 0.0001
  Prefactor  = 3.67862
  Prefactor  = 0.000100003
  norm       = 2.19658
  norm       = 4.57161
  norm       = 5.35984
  Normalizat = 1.70052
  Prefactor  = 0.776149
 **********
 **   18 **HESSE 
 **********

 FCN=   8389.462     FROM HESSE     STATUS=OK           429 CALLS     3303 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2937        7.0843        .11152E-02   -1.5345    
   3  Prefactor     .10000E-03    2.4766        .13919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.3923        3.0457        .72493E-03   -1.5340    
   7  Prefactor     23.594        37.716        .82450E-04   -1.4736    
   8  Prefactor     3.7564        10.252        .10414E-02   -1.5320    
   9  Prefactor     .10000E-03    11.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     66.205        62.077        .49325E-04   -1.4079    
  11  Prefactor     .10000E-03    31.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.352        43.228        .10566E-03   -1.4950    
  13  Prefactor     6.6645        6.4693        .15544E-03   -1.5192    
  14  Prefactor     3.7640        2.1387        .93311E-04   -1.5320    
  15  Prefactor     .10000E-03    3.5402        .16826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.4411        .13970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.1622        8.5754        .19756E-03   -1.5300    
  18  Prefactor     .10000E-03    4.4363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6786        162.09        .20512E-03   -1.5324    
  20  Prefactor     .10000E-03    25.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.1966        .38303        .20928E-04   -1.5412    
  22  norm          4.5716        8.6888        .18827E-03   -1.5280    
  23  norm          5.3598        5.2561        .17357E-03   -1.5245    
  24  Normalizat    1.7005        .26475        .29881E-03   -.72289    
  25  Prefactor     .77615        .14738        .23560E-03   -1.0061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77796e-10
Minuit parameter uncertainties:
  1  0.000494399
  2  7.08612
  3  2.64476e-06
  4  1.32225e-05
  5  1.65692e-05
  6  3.04581
  7  37.754
  8  10.2565
  9  5.23373e-06
  10  62.1378
  11  0.000572959
  12  43.3222
  13  6.46997
  14  2.13878
  15  2.83637e-07
  16  3.41701e-07
  17  8.57794
  18  3.99567e-06
  19  48.9784
  20  0.000542648
  21  0.383034
  22  8.69117
  23  5.25653
  24  0.264975
  25  0.147457
Done.

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

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  6.665e+00  6.470e+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:  7.761e-01  1.475e-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.701e+00  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 186.719 -13.494
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.15e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 2.88e-05 +/- 2.80e-05

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

Saving results to:
/scratch/kocevski/654034/likelihoodResults_471312001_471571201_4FGL_J1226.8-1329_daily_bin895.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) = 8389.01489721
delta logL = 0.447453967705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8389.0065148
delta logL = 0.455836379268

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5191       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4832       1.0000          .0000       10.000    
     3 'Normalizat'    1.6727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78322       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=   8389.007     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      280 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5197        5.8723        .12240E-03    .40310E-04
   2  Index         2.4834        .67178        .50574E-02    .86462E-03
   3  Normalizat    1.6728        .26067        .30069E-03    .20389E-03
   4  Prefactor     .78322        .14566        .23453E-03    .39565E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.51974
  Index      = 2.48342
  Normalizat = 1.67276
  Prefactor  = 0.783222
 **********
 **   18 **HESSE 
 **********

 FCN=   8389.007     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5197        4.8663        .48960E-05   -1.5333    
   2  Index         2.4834        .55704        .10115E-02   -.52743    
   3  Normalizat    1.6728        .26039        .60138E-04   -.73033    
   4  Prefactor     .78322        .14551        .46906E-04   -1.0035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50027e-10
Minuit parameter uncertainties:
  1  4.86687
  2  0.558597
  3  0.260607
  4  0.145578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654034': 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) = 8389.00651403
delta logL = 0.455837146541

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  3.520e+00  4.867e+00  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  2.483e+00  5.586e-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:  7.832e-01  1.456e-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.673e+00  2.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.54
Ra Dec: 186.719 -13.494
Photon Index (Free Index): 2.48 +/- 0.56
Photon Flux (Free Index): 7.05e-08 +/- 5.58e-08
Energy Flux (Free Index): 2.09e-05 +/- 1.75e-05

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/654034/cmap_HighResolution_471312001_471571201_4FGL_J1226.8-1329_daily_bin895.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.38e-03', comment='SUCCESS', photon_flux='4.15e-08', energy_flux2='2.09e-05', photon_flux_error='4.03e-08', dlogl='4.56e-01', energy_flux='2.88e-05', photon_flux2='7.05e-08', job_status='DONE', time_completed='2021-09-05 16:16:08.981245', photon_index_error2='0.56', photon_index2='2.48', ts='1.62', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.75e-05', EG='1.70', time_epoch_completed='1630883768.98', return_code='0', job_id='654034', GAL2='0.78', EG2='1.67', return_code2='0', energy_flux_error='2.80e-05', photon_flux_error2='5.58e-08', ts2='2.54', photon_index='2.00' WHERE bin_id='895' AND source_name='4FGL J1226.8-1329' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 16:16:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 654034: <4FGL_J1226.8-1329_daily_bin895> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1226.8-1329_daily_bin895 186.719 -13.494 471312001 471571201 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 :                                   895.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

