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


Performing analysis on: 4FGL_J1319.5-0045_daily_bin858
RA = 199.877, Dec = -0.7613
tmin = 461721601, tmax = 461980801
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='473235', job_status='RUN', time_executed='2021-09-07 11:55:48.526928', time_epoch_executed='1631040948.53' WHERE source_name='4FGL J1319.5-0045' and cadence='daily' and bin_id='858'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473235

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473235/ft1_4FGL_J1319.5-0045_daily_bin858.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473235/ft2_4FGL_J1319.5-0045_daily_bin858.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473235/ft1_4FGL_J1319.5-0045_daily_bin858.fits outfile=/scratch/kocevski/473235/ft1_filteredMKT_4FGL_J1319.5-0045_daily_bin858.fits ra=199.877 dec=-0.7613 rad=12.0 tmin=461721601.0 tmax=461980801.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 4.16
user 3.91
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/473235/ft2_4FGL_J1319.5-0045_daily_bin858.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/473235/ft1_filteredMKT_4FGL_J1319.5-0045_daily_bin858.fits evtable="EVENTS" outfile="/scratch/kocevski/473235/ft1_filtered_4FGL_J1319.5-0045_daily_bin858.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473235/ft1_filtered_4FGL_J1319.5-0045_daily_bin858.fits" evtable="EVENTS" scfile=/scratch/kocevski/473235/ft2_4FGL_J1319.5-0045_daily_bin858.fits sctable="SC_DATA" outfile=/scratch/kocevski/473235/ltcube_461721601_461980801_4FGL_J1319.5-0045_daily_bin858.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/473235/ft2_4FGL_J1319.5-0045_daily_bin858.fits
.....................!
real 16.96
user 16.47
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473235/ft1_filtered_4FGL_J1319.5-0045_daily_bin858.fits evtable="EVENTS" scfile=/scratch/kocevski/473235/ft2_4FGL_J1319.5-0045_daily_bin858.fits sctable="SC_DATA" expcube=/scratch/kocevski/473235/ltcube_461721601_461980801_4FGL_J1319.5-0045_daily_bin858.fits outfile=/scratch/kocevski/473235/expmap_461721601_461980801_4FGL_J1319.5-0045_daily_bin858.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/473235/ltcube_461721601_461980801_4FGL_J1319.5-0045_daily_bin858.fits
.....................!
real 194.03
user 187.83
sys 4.82

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/473235/ft1_filtered_4FGL_J1319.5-0045_daily_bin858.fits scfile=/scratch/kocevski/473235/ft2_4FGL_J1319.5-0045_daily_bin858.fits outfile=/scratch/kocevski/473235/cmap_461721601_461980801_4FGL_J1319.5-0045_daily_bin858.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.59
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473235/ft1_filtered_4FGL_J1319.5-0045_daily_bin858.fits scfile=/scratch/kocevski/473235/ft2_4FGL_J1319.5-0045_daily_bin858.fits outfile=/scratch/kocevski/473235/cmap_HighResolution_461721601_461980801_4FGL_J1319.5-0045_daily_bin858.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/473235/ft1_filtered_4FGL_J1319.5-0045_daily_bin858.fits evtable="EVENTS" scfile=/scratch/kocevski/473235/ft2_4FGL_J1319.5-0045_daily_bin858.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/473235/Model_4FGL_J1319.5-0045_daily_bin858.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/473235/ft1_filtered_4FGL_J1319.5-0045_daily_bin858.fits.....................!
real 51.49
user 49.97
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/473235/ft1_filtered_4FGL_J1319.5-0045_daily_bin858.fits', '/scratch/kocevski/473235/ft2_4FGL_J1319.5-0045_daily_bin858.fits', expMap='/scratch/kocevski/473235/expmap_461721601_461980801_4FGL_J1319.5-0045_daily_bin858.fits', expCube='/scratch/kocevski/473235/ltcube_461721601_461980801_4FGL_J1319.5-0045_daily_bin858.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/473235/Model_4FGL_J1319.5-0045_daily_bin858.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/473235/ft1_filtered_4FGL_J1319.5-0045_daily_bin858.fits
Spacecraft file(s): /scratch/kocevski/473235/ft2_4FGL_J1319.5-0045_daily_bin858.fits
Exposure map: /scratch/kocevski/473235/expmap_461721601_461980801_4FGL_J1319.5-0045_daily_bin858.fits
Exposure cube: /scratch/kocevski/473235/ltcube_461721601_461980801_4FGL_J1319.5-0045_daily_bin858.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/473235/Model_4FGL_J1319.5-0045_daily_bin858.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) = 6304.32132086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5665       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.411       1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.727       1.0000         .10000E-03   10000.    
     6 'norm      '    18.238       1.0000         .10000E-03   10000.    
     7 'norm      '    .78208       1.0000         .10000E-03   10000.    
     8 'Prefactor '    93.939       1.0000         .10000E-03   10000.    
     9 'norm      '    2.9117       1.0000         .10000E-03   10000.    
    10 'norm      '    3.9272       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.520       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0125       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4126       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3909       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2777       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98072       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=   6304.313     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2193 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5661        5.7298        .14418E-06   -.39749E-03
   2  norm          .10000E-03    .94085        .68679E-08** at limit **
   3  Prefactor     .10000E-03    7.0085       -.14506E-05** at limit **
   4  Prefactor     23.409        33.719       -.26500E-05   -.22993E-05
   5  Prefactor     43.722        44.155       -.55663E-05   -.68042E-05
   6  norm          18.235        27.254       -.29524E-05    .63009E-05
   7  norm          .78207        .30297        .60878E-07   -.24434E-04
   8  Prefactor     93.940        73.758        .10255E-05    .90338E-05
   9  norm          2.9052        7.4217        .25462E-06   -.49355E-03
  10  norm          3.9272        8.3957       -.38017E-06   -.11463E-04
  11  Prefactor     .10000E-03    16.374       -.14717E-07** at limit **
  12  Prefactor     24.517        21.274       -.25279E-05   -.12620E-04
  13  Prefactor     6.0120        9.1606       -.41631E-07   -.19249E-03
  14  Prefactor     .10000E-03    4.9178       -.15845E-06** at limit **
  15  norm          1.4125        1.6824       -.60111E-07   -.59523E-04
  16  norm          2.3908        38.642        .34496E-06   -.14218E-03
  17  Prefactor     .10000E-03    1.3256       -.20172E-08** at limit **
  18  Prefactor     .10000E-03    5.9575       -.18212E-07** at limit **
  19  Prefactor     .10000E-03    6.9869        .15576E-05** at limit **
  20  Normalizat    1.2779        .22827        .58408E-06    .26637E-04
  21  Prefactor     .98062        .16273        .46128E-06    .44792E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.56615
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4089
  Prefactor  = 43.7219
  norm       = 18.2354
  norm       = 0.782073
  Prefactor  = 93.9405
  norm       = 2.90523
  norm       = 3.92723
  Prefactor  = 0.0001
  Prefactor  = 24.5173
  Prefactor  = 6.01196
  Prefactor  = 0.0001
  norm       = 1.41245
  norm       = 2.39078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.27788
  Prefactor  = 0.980621
 **********
 **   18 **HESSE 
 **********

 FCN=   6304.313     FROM HESSE     STATUS=OK           323 CALLS     2516 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5661        5.9984        .10700E-02   -1.5330    
   2  norm          .10000E-03    .96470        .15031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.0459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.409        33.730        .82787E-04   -1.4740    
   5  Prefactor     43.722        44.317        .60627E-04   -1.4385    
   6  norm          18.235        27.209        .93786E-04   -1.4854    
   7  norm          .78207        .30165        .24745E-04   -1.5531    
   8  Prefactor     93.940        74.728        .41466E-04   -1.3766    
   9  norm          2.9052        11.277        .11905E-02   -1.5367    
  10  norm          3.9272        8.3792        .20357E-03   -1.5312    
  11  Prefactor     .10000E-03    16.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.517        21.350        .80896E-04   -1.4717    
  13  Prefactor     6.0120        9.3305        .81875E-03   -1.5218    
  14  Prefactor     .10000E-03    24.908        .33686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4125        1.6582        .10531E-03   -1.5470    
  16  norm          2.3908        49.090        .13243E-02   -1.5399    
  17  Prefactor     .10000E-03    1.3309        .89264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.9610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.0038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2779        .27104        .29570E-03   -.84229    
  21  Prefactor     .98062        .19376        .23974E-03   -.93378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70565e-09
Minuit parameter uncertainties:
  1  5.99942
  2  1.43351e-07
  3  2.9347e-05
  4  33.7575
  5  44.3499
  6  27.2274
  7  0.301651
  8  74.8028
  9  11.2852
  10  8.38171
  11  1.45819e-05
  12  21.3565
  13  9.33275
  14  5.70273e-05
  15  1.65822
  16  21.6867
  17  1.05469e-06
  18  2.10714e-06
  19  1.06664e-06
  20  0.271344
  21  0.193902
Done.

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

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  2.452e+01  2.136e+01  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:  9.806e-01  1.939e-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.278e+00  2.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.94
Ra Dec: 199.877 -0.761
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 5.53e-08 +/- 4.81e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.58e-05

TS (Fixed Index): 1.94
Ra Dec: 199.877 -0.761
Photon Flux Upper Limit: 1.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/473235/likelihoodResults_461721601_461980801_4FGL_J1319.5-0045_daily_bin858.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) = 6303.70379943
delta logL = 0.608869761679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6303.67091292
delta logL = 0.641756268221

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2454       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0577       1.0000          .0000       10.000    
     3 'Normalizat'    1.1814       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0342       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=   6303.671     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      264 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2478        24.256        .68561E-02    .46693E-03
   2  Index         4.0575        2.6109        .11208        .16195E-03
   3  Normalizat    1.1813        .71964E-01    .69080E-01    .10758E-04
   4  Prefactor     1.0342        .50565E-01    .40942E-01    .54437E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.24784
  Index      = 4.05749
  Normalizat = 1.18134
  Prefactor  = 1.03418
 **********
 **   18 **HESSE 
 **********

 FCN=   6303.671     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      297 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2478        45.309        .73312E-04   -1.5408    
   2  Index         4.0575        3.9207        .41647E-02   -.18964    
   3  Normalizat    1.1813        .25749        .30565E-03   -.87181    
   4  Prefactor     1.0342        .18290        .23423E-03   -.91599    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.5857e-07
Minuit parameter uncertainties:
  1  20.2009
  2  4.54064
  3  0.257768
  4  0.183007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473235': 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) = 6303.67091243
delta logL = 0.641756759826

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  2.248e+00  2.020e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  4.057e+00  4.541e+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:  1.034e+00  1.830e-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.181e+00  2.578e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.43
Ra Dec: 199.877 -0.761
Photon Index (Free Index): 4.06 +/- 4.54
Photon Flux (Free Index): 1.23e-07 +/- 9.61e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.30e-05

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/473235/cmap_HighResolution_461721601_461980801_4FGL_J1319.5-0045_daily_bin858.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', photon_flux='5.53e-08', energy_flux2='1.83e-05', photon_flux_error='4.81e-08', dlogl='6.42e-01', energy_flux='1.81e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-07 12:06:03.421129', photon_index_error2='4.54', photon_index2='4.06', ts='1.94', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.59e-07', energy_flux_error2='1.30e-05', EG='1.28', time_epoch_completed='1631041563.42', return_code='0', job_id='473235', GAL2='1.03', EG2='1.18', return_code2='102', energy_flux_error='1.58e-05', photon_flux_error2='9.61e-08', ts2='3.43', photon_index='2.40' WHERE bin_id='858' AND source_name='4FGL J1319.5-0045' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:06:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 473235: <4FGL_J1319.5-0045_daily_bin858> in cluster <slac> Done

Job <4FGL_J1319.5-0045_daily_bin858> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Sep  7 11:50:44 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 11:52:53 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:52:53 2021
Terminated at Tue Sep  7 12:06:04 2021
Results reported at Tue Sep  7 12:06:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.5-0045_daily_bin858 199.877 -0.7613 461721601 461980801 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 :                                   613.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             274.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            920 sec.

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

