/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 137 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_J1319.5-0045_daily_bin1248
RA = 199.877, Dec = -0.7613
tmin = 562809601, tmax = 563068801
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='475839', job_status='RUN', time_executed='2021-09-07 12:01:35.725427', time_epoch_executed='1631041295.73' WHERE source_name='4FGL J1319.5-0045' and cadence='daily' and bin_id='1248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/475839

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/475839/ft1_4FGL_J1319.5-0045_daily_bin1248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/475839/ft2_4FGL_J1319.5-0045_daily_bin1248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/475839/ft1_4FGL_J1319.5-0045_daily_bin1248.fits outfile=/scratch/kocevski/475839/ft1_filteredMKT_4FGL_J1319.5-0045_daily_bin1248.fits ra=199.877 dec=-0.7613 rad=12.0 tmin=562809601.0 tmax=563068801.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.46
user 3.19
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/475839/ft1_filtered_4FGL_J1319.5-0045_daily_bin1248.fits" evtable="EVENTS" scfile=/scratch/kocevski/475839/ft2_4FGL_J1319.5-0045_daily_bin1248.fits sctable="SC_DATA" outfile=/scratch/kocevski/475839/ltcube_562809601_563068801_4FGL_J1319.5-0045_daily_bin1248.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/475839/ft2_4FGL_J1319.5-0045_daily_bin1248.fits
.....................!
real 16.97
user 16.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/475839/ft1_filtered_4FGL_J1319.5-0045_daily_bin1248.fits evtable="EVENTS" scfile=/scratch/kocevski/475839/ft2_4FGL_J1319.5-0045_daily_bin1248.fits sctable="SC_DATA" expcube=/scratch/kocevski/475839/ltcube_562809601_563068801_4FGL_J1319.5-0045_daily_bin1248.fits outfile=/scratch/kocevski/475839/expmap_562809601_563068801_4FGL_J1319.5-0045_daily_bin1248.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/475839/ltcube_562809601_563068801_4FGL_J1319.5-0045_daily_bin1248.fits
.....................!
real 192.30
user 186.38
sys 5.35

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/475839/ft1_filtered_4FGL_J1319.5-0045_daily_bin1248.fits scfile=/scratch/kocevski/475839/ft2_4FGL_J1319.5-0045_daily_bin1248.fits outfile=/scratch/kocevski/475839/cmap_562809601_563068801_4FGL_J1319.5-0045_daily_bin1248.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.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/475839/ft1_filtered_4FGL_J1319.5-0045_daily_bin1248.fits scfile=/scratch/kocevski/475839/ft2_4FGL_J1319.5-0045_daily_bin1248.fits outfile=/scratch/kocevski/475839/cmap_HighResolution_562809601_563068801_4FGL_J1319.5-0045_daily_bin1248.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.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/475839/ft1_filtered_4FGL_J1319.5-0045_daily_bin1248.fits evtable="EVENTS" scfile=/scratch/kocevski/475839/ft2_4FGL_J1319.5-0045_daily_bin1248.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/475839/Model_4FGL_J1319.5-0045_daily_bin1248.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/475839/ft1_filtered_4FGL_J1319.5-0045_daily_bin1248.fits.....................!
real 45.56
user 44.16
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9789       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2896       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.682       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.473       1.0000         .10000E-03   10000.    
     6 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.7163       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.859       1.0000         .10000E-03   10000.    
     9 'norm      '    21.258       1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    62.157       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1682       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3003       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5007       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .75963       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=   4712.473     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2231 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9825        9.9079        .82757E-06    .48826E-05
   2  norm          1.2897        1.4762       -.12029E-07   -.79158E-06
   3  Prefactor     .10000E-03    5.4895        .15996E-06** at limit **
   4  Prefactor     11.663        38.290        .68362E-06    .28705E-05
   5  Prefactor     38.441        65.920        .13279E-05    .43640E-05
   6  norm          .10000E-03    23.248       -.12653E-07** at limit **
   7  norm          3.7156        .65319        .34178E-07   -.69267E-03
   8  Prefactor     16.281        293.81       -.27031E-04   -.16425E-04
   9  norm          21.218        29.982        .20534E-05   -.19721E-04
  10  norm          .10000E-03    7.2157       -.14495E-07** at limit **
  11  Prefactor     .10000E-03    17.718        .11376E-07** at limit **
  12  Prefactor     62.161        44.076       -.87509E-07   -.79232E-05
  13  Prefactor     .10000E-03    6.7334       -.95203E-07** at limit **
  14  Prefactor     .10046E-03    15.089        .14272E-05** at limit **
  15  norm          .10000E-03    1.3513       -.46453E-07** at limit **
  16  norm          .10000E-03    31.930        .10111E-06** at limit **
  17  Prefactor     2.1707        4.6296       -.76612E-07   -.29517E-05
  18  Prefactor     4.2916        46.214       -.41802E-07   -.24860E-06
  19  Prefactor     .10000E-03    12.075       -.41077E-07** at limit **
  20  Normalizat    1.5001        .29124        .57840E-06   -.45474E-04
  21  Prefactor     .75977        .19932        .36040E-07   -.32398E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.98253
  norm       = 1.28973
  Prefactor  = 0.0001
  Prefactor  = 11.6625
  Prefactor  = 38.4407
  norm       = 0.0001
  norm       = 3.71557
  Prefactor  = 16.2805
  norm       = 21.2182
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.1605
  Prefactor  = 0.0001
  Prefactor  = 0.000100463
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.17073
  Prefactor  = 4.29159
  Prefactor  = 0.0001
  Normalizat = 1.50012
  Prefactor  = 0.759773
 **********
 **   18 **HESSE 
 **********

 FCN=   4712.473     FROM HESSE     STATUS=OK           319 CALLS     2550 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9825        9.9720        .14733E-02   -1.5426    
   2  norm          1.2897        1.4472        .85737E-04   -1.5481    
   3  Prefactor     .10000E-03    5.5100        .15704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.663        38.278        .11721E-03   -1.5025    
   5  Prefactor     38.441        66.428        .64618E-04   -1.4467    
   6  norm          .10000E-03    23.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.7156        .66119        .20356E-04   -1.5322    
   8  Prefactor     16.281        296.13        .50286E-03   -1.4901    
   9  norm          21.218        29.949        .86873E-04   -1.4786    
  10  norm          .10000E-03    7.2171        .18010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     62.161        44.313        .50896E-04   -1.4129    
  13  Prefactor     .10000E-03    6.7671        .17394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10046E-03    128.95        .48315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.3648        .77885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    31.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.1707        4.6026        .20530E-03   -1.5413    
  18  Prefactor     4.2916        46.317        .19427E-03   -1.5294    
  19  Prefactor     .10000E-03    12.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5001        .35082        .30588E-03   -.77775    
  21  Prefactor     .75977        .23873        .28736E-03   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47243e-09
Minuit parameter uncertainties:
  1  8.89478
  2  1.44721
  3  8.7933e-07
  4  38.3588
  5  66.5558
  6  9.1653e-06
  7  0.66119
  8  139.68
  9  29.9706
  10  3.20535e-06
  11  1.02376e-05
  12  44.3361
  13  5.20646e-06
  14  0.0154832
  15  2.86121e-06
  16  3.30599e-06
  17  4.60336
  18  28.2249
  19  3.34297e-06
  20  0.351391
  21  0.239057
Done.

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

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  6.216e+01  4.434e+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:  7.598e-01  2.391e-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.500e+00  3.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.94
Ra Dec: 199.877 -0.761
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.40e-07 +/- 9.98e-08
Energy Flux (Fixed Index): 4.59e-05 +/- 3.27e-05

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

Saving results to:
/scratch/kocevski/475839/likelihoodResults_562809601_563068801_4FGL_J1319.5-0045_daily_bin1248.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) = 4711.38086871
delta logL = 1.0918444676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4711.36664528
delta logL = 1.10606789948

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.687       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2223       1.0000          .0000       10.000    
     3 'Normalizat'    1.3697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81804       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4711.367     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      306 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.685        35.414        .76137E-04    .73167E-04
   2  Index         3.2221        .69832        .34482E-02    .43145E-04
   3  Normalizat    1.3698        .35599        .31683E-03   -.94731E-04
   4  Prefactor     .81805        .24065        .27739E-03   -.11172E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.685
  Index      = 3.22214
  Normalizat = 1.36979
  Prefactor  = 0.818052
 **********
 **   18 **HESSE 
 **********

 FCN=   4711.367     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.685        29.962        .30455E-05   -1.4655    
   2  Index         3.2221        .59045        .13793E-03   -.36353    
   3  Normalizat    1.3698        .35601        .12673E-04   -.81507    
   4  Prefactor     .81805        .24040        .11096E-04   -.99066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52538e-11
Minuit parameter uncertainties:
  1  29.9787
  2  0.59203
  3  0.35665
  4  0.240713
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/475839': 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) = 4711.36664501
delta logL = 1.10606816943

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  2.768e+01  2.998e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  3.222e+00  5.920e-01  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:  8.181e-01  2.407e-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.370e+00  3.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.35
Ra Dec: 199.877 -0.761
Photon Index (Free Index): 3.22 +/- 0.59
Photon Flux (Free Index): 2.82e-07 +/- 1.58e-07
Energy Flux (Free Index): 5.12e-05 +/- 2.67e-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/475839/cmap_HighResolution_562809601_563068801_4FGL_J1319.5-0045_daily_bin1248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.53e-02', comment='SUCCESS', photon_flux='1.40e-07', energy_flux2='5.12e-05', photon_flux_error='9.98e-08', dlogl='1.11e+00', energy_flux='4.59e-05', photon_flux2='2.82e-07', job_status='DONE', time_completed='2021-09-07 12:10:45.093796', photon_index_error2='0.59', photon_index2='3.22', ts='2.94', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='3.28e-07', energy_flux_error2='2.67e-05', EG='1.50', time_epoch_completed='1631041845.09', return_code='0', job_id='475839', GAL2='0.82', EG2='1.37', return_code2='0', energy_flux_error='3.27e-05', photon_flux_error2='1.58e-07', ts2='5.35', photon_index='2.40' WHERE bin_id='1248' AND source_name='4FGL J1319.5-0045' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:10:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 475839: <4FGL_J1319.5-0045_daily_bin1248> in cluster <slac> Done

Job <4FGL_J1319.5-0045_daily_bin1248> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 11:55:55 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 11:59:06 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:59:06 2021
Terminated at Tue Sep  7 12:10:45 2021
Results reported at Tue Sep  7 12:10:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.5-0045_daily_bin1248 199.877 -0.7613 562809601 563068801 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 :                                   546.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            890 sec.

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

