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


Performing analysis on: 4FGL_J1319.5-0045_daily_bin948
RA = 199.877, Dec = -0.7613
tmin = 485049601, tmax = 485308801
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='473369', job_status='RUN', time_executed='2021-09-07 11:55:18.984202', time_epoch_executed='1631040918.98' WHERE source_name='4FGL J1319.5-0045' and cadence='daily' and bin_id='948'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473369

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473369/ft1_4FGL_J1319.5-0045_daily_bin948.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473369/ft2_4FGL_J1319.5-0045_daily_bin948.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473369/ft1_4FGL_J1319.5-0045_daily_bin948.fits outfile=/scratch/kocevski/473369/ft1_filteredMKT_4FGL_J1319.5-0045_daily_bin948.fits ra=199.877 dec=-0.7613 rad=12.0 tmin=485049601.0 tmax=485308801.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.58
user 3.33
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473369/ft1_filtered_4FGL_J1319.5-0045_daily_bin948.fits" evtable="EVENTS" scfile=/scratch/kocevski/473369/ft2_4FGL_J1319.5-0045_daily_bin948.fits sctable="SC_DATA" outfile=/scratch/kocevski/473369/ltcube_485049601_485308801_4FGL_J1319.5-0045_daily_bin948.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/473369/ft2_4FGL_J1319.5-0045_daily_bin948.fits
.....................!
real 15.24
user 14.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473369/ft1_filtered_4FGL_J1319.5-0045_daily_bin948.fits evtable="EVENTS" scfile=/scratch/kocevski/473369/ft2_4FGL_J1319.5-0045_daily_bin948.fits sctable="SC_DATA" expcube=/scratch/kocevski/473369/ltcube_485049601_485308801_4FGL_J1319.5-0045_daily_bin948.fits outfile=/scratch/kocevski/473369/expmap_485049601_485308801_4FGL_J1319.5-0045_daily_bin948.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/473369/ltcube_485049601_485308801_4FGL_J1319.5-0045_daily_bin948.fits
.....................!
real 192.00
user 186.24
sys 4.26

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/473369/ft1_filtered_4FGL_J1319.5-0045_daily_bin948.fits scfile=/scratch/kocevski/473369/ft2_4FGL_J1319.5-0045_daily_bin948.fits outfile=/scratch/kocevski/473369/cmap_485049601_485308801_4FGL_J1319.5-0045_daily_bin948.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473369/ft1_filtered_4FGL_J1319.5-0045_daily_bin948.fits scfile=/scratch/kocevski/473369/ft2_4FGL_J1319.5-0045_daily_bin948.fits outfile=/scratch/kocevski/473369/cmap_HighResolution_485049601_485308801_4FGL_J1319.5-0045_daily_bin948.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.57
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/473369/ft1_filtered_4FGL_J1319.5-0045_daily_bin948.fits evtable="EVENTS" scfile=/scratch/kocevski/473369/ft2_4FGL_J1319.5-0045_daily_bin948.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/473369/Model_4FGL_J1319.5-0045_daily_bin948.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/473369/ft1_filtered_4FGL_J1319.5-0045_daily_bin948.fits.....................!
real 62.69
user 61.27
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.390       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3920       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.7758       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8413       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.5456       1.0000         .10000E-03   10000.    
     8 'Prefactor '    76.205       1.0000         .10000E-03   10000.    
     9 'norm      '    26.402       1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6624       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.137       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5225       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1928       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94829       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=   7758.355     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     1882 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.391        13.259       -.37217E-06   -.75862E-05
   2  norm          3.3920        2.0924       -.50069E-07   -.15242E-06
   3  Prefactor     7.7769        8.9350        .22274E-05   -.20657E-04
   4  Prefactor     3.7975        90.428       -.20749E-05   -.31034E-04
   5  Prefactor     .10000E-03    20.735        .25870E-07** at limit **
   6  norm          .10000E-03    12.265       -.32878E-06** at limit **
   7  norm          3.5455        .42785       -.95953E-08   -.26614E-03
   8  Prefactor     76.202        68.002       -.41302E-07   -.10459E-04
   9  norm          26.402        16.802        .58153E-07   -.52880E-04
  10  norm          .10000E-03    8.1589        .18667E-06** at limit **
  11  Prefactor     6.6622        9.7112        .19915E-06   -.91511E-05
  12  Prefactor     24.129        18.824        .38680E-07   -.52318E-04
  13  Prefactor     .10000E-03    12.741        .45932E-06** at limit **
  14  Prefactor     .10000E-03    2.6106        .95726E-07** at limit **
  15  norm          .10000E-03    .68920        .30772E-06** at limit **
  16  norm          .10000E-03    13.465        .12601E-06** at limit **
  17  Prefactor     .10000E-03    1.8989        .15594E-06** at limit **
  18  Prefactor     .10000E-03    6.4385        .65527E-07** at limit **
  19  Prefactor     3.5214        11.315        .82375E-06   -.53456E-05
  20  Normalizat    1.1932        .21497       -.10866E-05   -.92642E-04
  21  Prefactor     .94803        .15077       -.37795E-07   -.16260E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.3907
  norm       = 3.39204
  Prefactor  = 7.77688
  Prefactor  = 3.79749
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.54549
  Prefactor  = 76.2017
  norm       = 26.4018
  norm       = 0.0001
  Prefactor  = 6.66218
  Prefactor  = 24.1288
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.52136
  Normalizat = 1.19321
  Prefactor  = 0.948028
 **********
 **   18 **HESSE 
 **********

 FCN=   7758.355     FROM HESSE     STATUS=OK           317 CALLS     2199 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.391        13.246        .84650E-04   -1.4761    
   2  norm          3.3920        2.0934        .95774E-04   -1.5340    
   3  Prefactor     7.7769        8.9300        .71900E-03   -1.5150    
   4  Prefactor     3.7975        91.939        .20591E-03   -1.5318    
   5  Prefactor     .10000E-03    20.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    12.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.5455        .42915        .18759E-04   -1.5331    
   8  Prefactor     76.202        68.075        .45998E-04   -1.3960    
   9  norm          26.402        16.782        .77963E-04   -1.4680    
  10  norm          .10000E-03    8.2130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.6622        9.7067        .15546E-03   -1.5192    
  12  Prefactor     24.129        18.870        .81534E-04   -1.4725    
  13  Prefactor     .10000E-03    12.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.6183        .13899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.2195        .13917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    13.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.9211        .11857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.4452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.5214        11.320        .21539E-03   -1.5333    
  20  Normalizat    1.1932        .25303        .31698E-03   -.86813    
  21  Prefactor     .94803        .17822        .25200E-03   -.94483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.41774e-11
Minuit parameter uncertainties:
  1  13.2477
  2  2.0934
  3  8.9315
  4  37.4347
  5  4.74843e-06
  6  3.22348e-05
  7  0.429147
  8  68.1444
  9  16.7851
  10  6.15329e-06
  11  9.70898
  12  18.8743
  13  1.90844e-05
  14  1.58326e-06
  15  1.49809e-05
  16  1.28663e-05
  17  2.20383e-06
  18  9.00696e-07
  19  11.327
  20  0.253288
  21  0.178328
Done.

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

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  2.413e+01  1.887e+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.480e-01  1.783e-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.193e+00  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.80
Ra Dec: 199.877 -0.761
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 5.44e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.39e-05

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

Saving results to:
/scratch/kocevski/473369/likelihoodResults_485049601_485308801_4FGL_J1319.5-0045_daily_bin948.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) = 7758.28298411
delta logL = 0.0720271136279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7758.27875435
delta logL = 0.0762568689834

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.328       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0828       1.0000          .0000       10.000    
     3 'Normalizat'    1.2147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93892       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7758.279     FROM MIGRAD    STATUS=FAILED        82 CALLS      287 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.335        22.653        .76634E-04   -.19976E-02
   2  Index         2.0830        .80946        .92411E-02   -.78099E-03
   3  Normalizat    1.2141        .25092        .31468E-03    .81661E-03
   4  Prefactor     .93933        .17758        .25304E-03    .10953E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7758.279     FROM SIMPLEX   STATUS=UNCHANGED     69 CALLS      356 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.335        22.653        .23232E-03   -1.4662    
   2  Index         2.0830        .80946        .71745E-03   -.62291    
   3  Normalizat    1.2141        .25092        .33770E-03   -.86169    
   4  Prefactor     .93933        .17758        .30202E-03   -.94780    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7758.279     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      384 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.337        22.635        .15327E-04   -.19953E-03
   2  Index         2.0831        .80776        .36965E-03   -.21006E-04
   3  Normalizat    1.2141        .25099        .62937E-04   -.34140E-04
   4  Prefactor     .93933        .17767        .50607E-04   -.26912E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.3365
  Index      = 2.08312
  Normalizat = 1.21407
  Prefactor  = 0.939332
 **********
 **   18 **HESSE 
 **********

 FCN=   7758.279     FROM HESSE     STATUS=OK            23 CALLS      407 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.337        22.630        .30654E-05   -1.4662    
   2  Index         2.0831        .80761        .14786E-04   -.62288    
   3  Normalizat    1.2141        .25102        .12587E-04   -.86169    
   4  Prefactor     .93933        .17769        .10121E-04   -.94780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.88443e-11
Minuit parameter uncertainties:
  1  22.637
  2  0.813032
  3  0.251269
  4  0.177803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473369': 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) = 7758.2787513
delta logL = 0.0762599238888

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  2.734e+01  2.264e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.083e+00  8.130e-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:  9.393e-01  1.778e-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.214e+00  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.93
Ra Dec: 199.877 -0.761
Photon Index (Free Index): 2.08 +/- 0.81
Photon Flux (Free Index): 3.72e-08 +/- 5.45e-08
Energy Flux (Free Index): 2.12e-05 +/- 2.14e-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/473369/cmap_HighResolution_485049601_485308801_4FGL_J1319.5-0045_daily_bin948.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='5.44e-08', energy_flux2='2.12e-05', photon_flux_error='4.25e-08', dlogl='7.63e-02', energy_flux='1.78e-05', photon_flux2='3.72e-08', job_status='DONE', time_completed='2021-09-07 12:06:29.439180', photon_index_error2='0.81', photon_index2='2.08', ts='2.80', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='2.14e-05', EG='1.19', time_epoch_completed='1631041589.44', return_code='0', job_id='473369', GAL2='0.94', EG2='1.21', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='5.45e-08', ts2='2.93', photon_index='2.40' WHERE bin_id='948' AND source_name='4FGL J1319.5-0045' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:06:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 473369: <4FGL_J1319.5-0045_daily_bin948> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.5-0045_daily_bin948 199.877 -0.7613 485049601 485308801 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 :                                   668.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            937 sec.

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

