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


Performing analysis on: 4FGL_J1319.5-0045_daily_bin436
RA = 199.877, Dec = -0.7613
tmin = 352339201, tmax = 352598401
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='471431', job_status='RUN', time_executed='2021-09-07 11:45:48.370096', time_epoch_executed='1631040348.37' WHERE source_name='4FGL J1319.5-0045' and cadence='daily' and bin_id='436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/471431

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/471431/ft1_4FGL_J1319.5-0045_daily_bin436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/471431/ft2_4FGL_J1319.5-0045_daily_bin436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/471431/ft1_4FGL_J1319.5-0045_daily_bin436.fits outfile=/scratch/kocevski/471431/ft1_filteredMKT_4FGL_J1319.5-0045_daily_bin436.fits ra=199.877 dec=-0.7613 rad=12.0 tmin=352339201.0 tmax=352598401.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.24
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/471431/ft2_4FGL_J1319.5-0045_daily_bin436.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/471431/ft2_4FGL_J1319.5-0045_daily_bin436.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/471431/ft1_filteredMKT_4FGL_J1319.5-0045_daily_bin436.fits evtable="EVENTS" outfile="/scratch/kocevski/471431/ft1_filtered_4FGL_J1319.5-0045_daily_bin436.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.55
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/471431/ft1_filtered_4FGL_J1319.5-0045_daily_bin436.fits" evtable="EVENTS" scfile=/scratch/kocevski/471431/ft2_4FGL_J1319.5-0045_daily_bin436.fits sctable="SC_DATA" outfile=/scratch/kocevski/471431/ltcube_352339201_352598401_4FGL_J1319.5-0045_daily_bin436.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/471431/ft2_4FGL_J1319.5-0045_daily_bin436.fits
.....................!
real 16.30
user 15.03
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/471431/ft1_filtered_4FGL_J1319.5-0045_daily_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/471431/ft2_4FGL_J1319.5-0045_daily_bin436.fits sctable="SC_DATA" expcube=/scratch/kocevski/471431/ltcube_352339201_352598401_4FGL_J1319.5-0045_daily_bin436.fits outfile=/scratch/kocevski/471431/expmap_352339201_352598401_4FGL_J1319.5-0045_daily_bin436.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/471431/ltcube_352339201_352598401_4FGL_J1319.5-0045_daily_bin436.fits
.....................!
real 194.27
user 188.05
sys 4.63

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 170 point sources and 0 extended sources

Setting source of interest to:
4FGL J1319.5-0045 @ 199.877 -0.7613

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/471431/ft1_filtered_4FGL_J1319.5-0045_daily_bin436.fits scfile=/scratch/kocevski/471431/ft2_4FGL_J1319.5-0045_daily_bin436.fits outfile=/scratch/kocevski/471431/cmap_352339201_352598401_4FGL_J1319.5-0045_daily_bin436.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=199.877 yref=-0.7613 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/471431/ft1_filtered_4FGL_J1319.5-0045_daily_bin436.fits scfile=/scratch/kocevski/471431/ft2_4FGL_J1319.5-0045_daily_bin436.fits outfile=/scratch/kocevski/471431/cmap_HighResolution_352339201_352598401_4FGL_J1319.5-0045_daily_bin436.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=199.877 yref=-0.7613 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/471431/ft1_filtered_4FGL_J1319.5-0045_daily_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/471431/ft2_4FGL_J1319.5-0045_daily_bin436.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/471431/Model_4FGL_J1319.5-0045_daily_bin436.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/471431/ft1_filtered_4FGL_J1319.5-0045_daily_bin436.fits.....................!
real 55.37
user 53.61
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/471431/ft1_filtered_4FGL_J1319.5-0045_daily_bin436.fits', '/scratch/kocevski/471431/ft2_4FGL_J1319.5-0045_daily_bin436.fits', expMap='/scratch/kocevski/471431/expmap_352339201_352598401_4FGL_J1319.5-0045_daily_bin436.fits', expCube='/scratch/kocevski/471431/ltcube_352339201_352598401_4FGL_J1319.5-0045_daily_bin436.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/471431/Model_4FGL_J1319.5-0045_daily_bin436.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1319.5-0045'

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  2.809e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.401e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.099e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/471431/ft1_filtered_4FGL_J1319.5-0045_daily_bin436.fits
Spacecraft file(s): /scratch/kocevski/471431/ft2_4FGL_J1319.5-0045_daily_bin436.fits
Exposure map: /scratch/kocevski/471431/expmap_352339201_352598401_4FGL_J1319.5-0045_daily_bin436.fits
Exposure cube: /scratch/kocevski/471431/ltcube_352339201_352598401_4FGL_J1319.5-0045_daily_bin436.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/471431/Model_4FGL_J1319.5-0045_daily_bin436.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7049.09826954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5298       1.0000         .10000E-03   10000.    
     2 'norm      '    .46106       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.746       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    14.727       1.0000         .10000E-03   10000.    
     7 'norm      '    .74213       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4777       1.0000         .10000E-03   10000.    
     9 'norm      '    .10118E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19050E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0204       1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .30249       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20260E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2683       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78858       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7048.993     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2285 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5298        7.8205        .16879E-06   -.79582E-07
   2  norm          .46113        1.3441       -.84770E-06   -.19512E-02
   3  Prefactor     16.748        7.8748       -.33389E-06    .10062E-04
   4  Prefactor     .10000E-03    22.605        .43993E-07** at limit **
   5  Prefactor     .10000E-03    12.865       -.40317E-07** at limit **
   6  norm          14.708        23.557        .54430E-05   -.10227E-04
   7  norm          .74215        .20947       -.46653E-07   -.21840E-03
   8  Prefactor     4.4565        73.492        .27023E-04   -.82596E-05
   9  norm          .10000E-03    6.9286       -.18861E-06** at limit **
  10  norm          .10000E-03    3.2384       -.21960E-08** at limit **
  11  Prefactor     .10000E-03    2.3411        .22103E-08** at limit **
  12  Prefactor     .10016E-03    17.882       -.92581E-06** at limit **
  13  Prefactor     .10000E-03    3.2823       -.10206E-08** at limit **
  14  Prefactor     .10000E-03    2.7498        .59924E-08** at limit **
  15  norm          1.0201        1.2480       -.17145E-06   -.11389E-02
  16  norm          .10000E-03    8.9306       -.15394E-07** at limit **
  17  Prefactor     .30849        2.1164       -.96133E-06   -.55859E-03
  18  Prefactor     .10001E-03    12.475       -.17662E-07** at limit **
  19  Prefactor     .10000E-03    11.009        .60662E-07** at limit **
  20  Normalizat    1.2683        .19098        .31892E-06    .19297E-03
  21  Prefactor     .78865        .13349       -.60243E-06    .21312E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.52977
  norm       = 0.461131
  Prefactor  = 16.7476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.7079
  norm       = 0.742147
  Prefactor  = 4.45654
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100156
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.02012
  norm       = 0.0001
  Prefactor  = 0.308494
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Normalizat = 1.26834
  Prefactor  = 0.788647
 **********
 **   18 **HESSE 
 **********

 FCN=   7048.993     FROM HESSE     STATUS=OK           329 CALLS     2614 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5298        7.8186        .12982E-03   -1.5090    
   2  norm          .46113        1.4373        .16949E-03   -1.5572    
   3  Prefactor     16.748        7.8720        .97875E-04   -1.4889    
   4  Prefactor     .10000E-03    22.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.708        23.228        .10437E-03   -1.4941    
   7  norm          .74215        .20972        .19525E-04   -1.5536    
   8  Prefactor     4.4565        67.191        .19028E-03   -1.5286    
   9  norm          .10000E-03    7.0553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.2432        .14755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3424        .12546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10016E-03    24.096        .89976E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.2875        .14854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.7745        .13594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0201        1.2273        .98422E-04   -1.5506    
  16  norm          .10000E-03    8.9348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .30849        4.7274        .23835E-02   -1.5597    
  18  Prefactor     .10001E-03    98.816        .56700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2683        .22860        .25591E-03   -.84516    
  21  Prefactor     .78865        .16000        .22965E-03   -1.0015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51827e-09
Minuit parameter uncertainties:
  1  7.81944
  2  1.43738
  3  7.87246
  4  2.10238e-07
  5  3.48046e-06
  6  23.2425
  7  0.209725
  8  34.6548
  9  4.63748e-05
  10  2.37035e-07
  11  9.70746e-08
  12  0.00387961
  13  1.24317e-06
  14  4.79313e-07
  15  1.22733
  16  1.48608e-06
  17  2.41509
  18  0.00185315
  19  9.26096e-06
  20  0.228783
  21  0.160094
Done.

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

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  1.002e-04  3.880e-03  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.401e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.099e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  7.886e-01  1.601e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  1.268e+00  2.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 199.877 -0.761
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/471431/likelihoodResults_352339201_352598401_4FGL_J1319.5-0045_daily_bin436.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) = 7048.99275177
delta logL = -1.16953651741e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7048.99275175
delta logL = -1.16778574011e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4009       1.0000          .0000       10.000    
     3 'Normalizat'    1.2683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78865       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7044.903     FROM MIGRAD    STATUS=CONVERGED    128 CALLS      309 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10360        .56204        .24546E-02    .10363E-02
   2  Index         5.6644        1.9098        .68949E-01    .18040E-03
   3  Normalizat    1.0270        .64131E-01    .63210E-01   -.12317E-03
   4  Prefactor     .90433        .46567E-01    .43569E-01   -.70418E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.103599
  Index      = 5.66436
  Normalizat = 1.02703
  Prefactor  = 0.904328
 **********
 **   18 **HESSE 
 **********

 FCN=   7044.903     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      342 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10360        .90713        .10956E-04   -1.5644    
   2  Index         5.6644        2.5408        .28890E-02    .13327    
   3  Normalizat    1.0270        .20687        .27964E-03   -.92130    
   4  Prefactor     .90433        .14688        .21589E-03   -.95990    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.13434e-07
Minuit parameter uncertainties:
  1  0.612832
  2  2.66782
  3  0.207033
  4  0.146949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/471431': 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) = 7044.90303626
delta logL = 4.08970381665

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  1.036e-01  6.128e-01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  5.664e+00  2.668e+00  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.099e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  9.043e-01  1.469e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  1.027e+00  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.12
Ra Dec: 199.877 -0.761
Photon Index (Free Index): 5.66 +/- 2.67
Photon Flux (Free Index): 1.76e-07 +/- 7.62e-08
Energy Flux (Free Index): 2.24e-05 +/- 1.09e-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/471431/cmap_HighResolution_352339201_352598401_4FGL_J1319.5-0045_daily_bin436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.11e-03', comment='SUCCESS', energy_flux2='2.24e-05', dlogl='4.09e+00', photon_flux2='1.76e-07', job_status='DONE', time_completed='2021-09-07 11:56:56.275445', photon_index_error2='2.67', photon_index2='5.66', ts='-0.00', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.09e-05', EG='1.27', time_epoch_completed='1631041016.28', return_code='0', job_id='471431', GAL2='0.90', EG2='1.03', return_code2='102', photon_flux_error2='7.62e-08', ts2='9.12', photon_index='2.40' WHERE bin_id='436' AND source_name='4FGL J1319.5-0045' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 11:56:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 471431: <4FGL_J1319.5-0045_daily_bin436> in cluster <slac> Done

Job <4FGL_J1319.5-0045_daily_bin436> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 11:45:30 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 11:45:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 11:45:34 2021
Terminated at Tue Sep  7 11:56:57 2021
Results reported at Tue Sep  7 11:56:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.5-0045_daily_bin436 199.877 -0.7613 352339201 352598401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1319.5-0045 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   661.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             299.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            687 sec.

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

