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


Performing analysis on: 4FGL_J1226.8-1329_daily_bin177
RA = 186.719, Dec = -13.494
tmin = 285206401, tmax = 285465601
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='647060', job_status='RUN', time_executed='2021-09-05 15:43:07.014161', time_epoch_executed='1630881787.01' WHERE source_name='4FGL J1226.8-1329' and cadence='daily' and bin_id='177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647060

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647060/ft1_4FGL_J1226.8-1329_daily_bin177.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647060/ft2_4FGL_J1226.8-1329_daily_bin177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647060/ft1_4FGL_J1226.8-1329_daily_bin177.fits outfile=/scratch/kocevski/647060/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin177.fits ra=186.719 dec=-13.494 rad=12.0 tmin=285206401.0 tmax=285465601.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.48
user 3.26
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647060/ft1_filtered_4FGL_J1226.8-1329_daily_bin177.fits" evtable="EVENTS" scfile=/scratch/kocevski/647060/ft2_4FGL_J1226.8-1329_daily_bin177.fits sctable="SC_DATA" outfile=/scratch/kocevski/647060/ltcube_285206401_285465601_4FGL_J1226.8-1329_daily_bin177.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/647060/ft2_4FGL_J1226.8-1329_daily_bin177.fits
.....................!
real 11.75
user 11.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647060/ft1_filtered_4FGL_J1226.8-1329_daily_bin177.fits evtable="EVENTS" scfile=/scratch/kocevski/647060/ft2_4FGL_J1226.8-1329_daily_bin177.fits sctable="SC_DATA" expcube=/scratch/kocevski/647060/ltcube_285206401_285465601_4FGL_J1226.8-1329_daily_bin177.fits outfile=/scratch/kocevski/647060/expmap_285206401_285465601_4FGL_J1226.8-1329_daily_bin177.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/647060/ltcube_285206401_285465601_4FGL_J1226.8-1329_daily_bin177.fits
.....................!
real 190.35
user 185.50
sys 4.52

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/647060/ft1_filtered_4FGL_J1226.8-1329_daily_bin177.fits scfile=/scratch/kocevski/647060/ft2_4FGL_J1226.8-1329_daily_bin177.fits outfile=/scratch/kocevski/647060/cmap_285206401_285465601_4FGL_J1226.8-1329_daily_bin177.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647060/ft1_filtered_4FGL_J1226.8-1329_daily_bin177.fits scfile=/scratch/kocevski/647060/ft2_4FGL_J1226.8-1329_daily_bin177.fits outfile=/scratch/kocevski/647060/cmap_HighResolution_285206401_285465601_4FGL_J1226.8-1329_daily_bin177.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/647060/ft1_filtered_4FGL_J1226.8-1329_daily_bin177.fits evtable="EVENTS" scfile=/scratch/kocevski/647060/ft2_4FGL_J1226.8-1329_daily_bin177.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/647060/Model_4FGL_J1226.8-1329_daily_bin177.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/647060/ft1_filtered_4FGL_J1226.8-1329_daily_bin177.fits.....................!
real 57.88
user 56.51
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    10.596       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23318E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2659       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.094       1.0000         .10000E-03   10000.    
     6 'norm      '    .18658E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.350       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19265E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.8997       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.514       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3112       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5280       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.1780       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.8845       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83642       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=   6469.084     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2895 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.983        .11746E-05** at limit **
   2  norm          10.601        9.5937       -.10687E-06   -.21676E-04
   3  Prefactor     .10000E-03    2.8629       -.11364E-05** at limit **
   4  Prefactor     1.2637        34.683        .15753E-04   -.22378E-04
   5  Prefactor     20.107        22.596        .86028E-06   -.63583E-04
   6  norm          .10002E-03    9.4550        .84329E-05** at limit **
   7  Prefactor     .10000E-03    16.098       -.16589E-05** at limit **
   8  Prefactor     .10000E-03    8.2706       -.37620E-06** at limit **
   9  Prefactor     .10000E-03    13.023        .15881E-05** at limit **
  10  Prefactor     .10000E-03    23.271        .13257E-05** at limit **
  11  Prefactor     18.343        23.878       -.21334E-06   -.22513E-03
  12  Prefactor     .10000E-03    61.271        .60982E-06** at limit **
  13  Prefactor     .10005E-03    18.186        .13350E-04** at limit **
  14  Prefactor     8.8993        3.1727        .28932E-06    .63655E-03
  15  Prefactor     26.514        19.730       -.10255E-07   -.32125E-04
  16  Prefactor     .10000E-03    6.6512       -.12594E-06** at limit **
  17  Prefactor     6.3089        14.903        .77231E-06    .44713E-04
  18  Prefactor     .10000E-03    7.4319        .26543E-06** at limit **
  19  Prefactor     .10000E-03    58.080       -.42834E-06** at limit **
  20  Prefactor     .10000E-03    23.034        .14093E-05** at limit **
  21  norm          1.5279        .39605        .14096E-07    .39622E-03
  22  norm          .10000E-03    5.0857       -.55281E-07** at limit **
  23  norm          6.1781        5.8868        .17848E-06   -.70392E-04
  24  Normalizat    1.8847        .28280       -.99218E-06    .14389E-05
  25  Prefactor     .83632        .15162        .35985E-06   -.14027E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.6005
  Prefactor  = 0.000100001
  Prefactor  = 1.26365
  Prefactor  = 20.1074
  norm       = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3433
  Prefactor  = 0.000100004
  Prefactor  = 0.000100049
  Prefactor  = 8.89928
  Prefactor  = 26.5144
  Prefactor  = 0.0001
  Prefactor  = 6.30894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.52788
  norm       = 0.0001
  norm       = 6.17806
  Normalizat = 1.88467
  Prefactor  = 0.836318
 **********
 **   18 **HESSE 
 **********

 FCN=   6469.084     FROM HESSE     STATUS=OK           429 CALLS     3324 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.601        9.1857        .61542E-03   -1.5057    
   3  Prefactor     .10000E-03    19.391        .24516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2637        95.150        .19795E-02   -1.5483    
   5  Prefactor     20.107        18.757        .89350E-04   -1.4811    
   6  norm          .10002E-03    15.284        .33078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.2948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.343        23.873        .93498E-04   -1.4851    
  12  Prefactor     .10000E-03    61.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10005E-03    32.829        .33685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.8993        3.0842        .80218E-04   -1.5111    
  15  Prefactor     26.514        19.747        .77799E-04   -1.4678    
  16  Prefactor     .10000E-03    6.6642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.3089        14.941        .15978E-03   -1.5206    
  18  Prefactor     .10000E-03    7.4431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    58.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5279        .39671        .24704E-04   -1.5461    
  22  norm          .10000E-03    5.1281        .17713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.1781        5.9122        .80757E-03   -1.5211    
  24  Normalizat    1.8847        .33730        .31746E-03   -.67474    
  25  Prefactor     .83632        .17977        .24744E-03   -.98403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3788e-09
Minuit parameter uncertainties:
  1  6.14031e-05
  2  9.18696
  3  0.000214354
  4  21.966
  5  18.7628
  6  0.0012193
  7  9.77455e-05
  8  1.68409e-05
  9  8.4309e-05
  10  4.24586e-05
  11  23.8856
  12  0.000956113
  13  0.00252912
  14  3.08423
  15  19.7514
  16  1.57983e-05
  17  14.9497
  18  6.93647e-06
  19  8.04952e-05
  20  9.42364e-05
  21  0.396712
  22  1.14713e-05
  23  5.91276
  24  0.337723
  25  0.1799
Done.

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

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.000e-04  2.529e-03  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:  8.363e-01  1.799e-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.885e+00  3.377e-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.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/647060/likelihoodResults_285206401_285465601_4FGL_J1226.8-1329_daily_bin177.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) = 6469.08426045
delta logL = -0.000142897260957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6469.08411863
delta logL = -1.07607866084e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12406E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9734       1.0000          .0000       10.000    
     3 'Normalizat'    1.8850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83610       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=   6469.084     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      238 TOTAL
                     EDM=   .56E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .12949        .63195E-01** at limit **
   2  Index         1.9672        5.6909        .50000        .77957E-06
   3  Normalizat    1.8847        .11682E-02    .71767E-01    .42549E-04
   4  Prefactor     .83632        .64623E-03    .44185E-01    .72983E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.96716
  Normalizat = 1.88467
  Prefactor  = 0.836318
 **********
 **   18 **HESSE 
 **********

 FCN=   6469.084     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      273 TOTAL
                     EDM=   .76E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.780        .34092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9672        5.9633        .50000       -.65174    
   3  Normalizat    1.8847        .60797E-02    .31746E-03   -.67474    
   4  Prefactor     .83632        .33643E-02    .24744E-03   -.98403    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.56306e-13
Minuit parameter uncertainties:
  1  0.000334127
  2  29.1369
  3  0.00607973
  4  0.00336432
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647060': 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) = 6469.08411753
delta logL = 2.36377672991e-08

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.000e-04  3.341e-04  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  1.967e+00  2.914e+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:  8.363e-01  3.364e-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.885e+00  6.080e-03  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/647060/cmap_HighResolution_285206401_285465601_4FGL_J1226.8-1329_daily_bin177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.31e-03', job_status='DONE', photon_flux_upper_limit='9.75e-08', time_completed='2021-09-05 15:55:45.183203', job_id='647060', GAL2='0.84', fit_tolerance='1e-08', EG2='1.88', EG='1.88', time_epoch_completed='1630882545.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.36e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='177' AND source_name='4FGL J1226.8-1329' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 15:55:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 647060: <4FGL_J1226.8-1329_daily_bin177> in cluster <slac> Done

Job <4FGL_J1226.8-1329_daily_bin177> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 15:40:33 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 15:40:35 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:40:35 2021
Terminated at Sun Sep  5 15:55:45 2021
Results reported at Sun Sep  5 15:55:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1226.8-1329_daily_bin177 186.719 -13.494 285206401 285465601 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 :                                   755.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

