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


Performing analysis on: 4FGL_J1319.5-0045_daily_bin362
RA = 199.877, Dec = -0.7613
tmin = 333158401, tmax = 333417601
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='470033', job_status='RUN', time_executed='2021-09-07 11:45:25.977630', time_epoch_executed='1631040325.98' WHERE source_name='4FGL J1319.5-0045' and cadence='daily' and bin_id='362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/470033

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/470033/ft1_4FGL_J1319.5-0045_daily_bin362.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/470033/ft2_4FGL_J1319.5-0045_daily_bin362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/470033/ft1_4FGL_J1319.5-0045_daily_bin362.fits outfile=/scratch/kocevski/470033/ft1_filteredMKT_4FGL_J1319.5-0045_daily_bin362.fits ra=199.877 dec=-0.7613 rad=12.0 tmin=333158401.0 tmax=333417601.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 6.13
user 5.86
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/470033/ft1_filtered_4FGL_J1319.5-0045_daily_bin362.fits" evtable="EVENTS" scfile=/scratch/kocevski/470033/ft2_4FGL_J1319.5-0045_daily_bin362.fits sctable="SC_DATA" outfile=/scratch/kocevski/470033/ltcube_333158401_333417601_4FGL_J1319.5-0045_daily_bin362.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/470033/ft2_4FGL_J1319.5-0045_daily_bin362.fits
.....................!
real 16.39
user 16.00
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/470033/ft1_filtered_4FGL_J1319.5-0045_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/470033/ft2_4FGL_J1319.5-0045_daily_bin362.fits sctable="SC_DATA" expcube=/scratch/kocevski/470033/ltcube_333158401_333417601_4FGL_J1319.5-0045_daily_bin362.fits outfile=/scratch/kocevski/470033/expmap_333158401_333417601_4FGL_J1319.5-0045_daily_bin362.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/470033/ltcube_333158401_333417601_4FGL_J1319.5-0045_daily_bin362.fits
.....................!
real 192.82
user 187.75
sys 4.10

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/470033/ft1_filtered_4FGL_J1319.5-0045_daily_bin362.fits scfile=/scratch/kocevski/470033/ft2_4FGL_J1319.5-0045_daily_bin362.fits outfile=/scratch/kocevski/470033/cmap_333158401_333417601_4FGL_J1319.5-0045_daily_bin362.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/470033/ft1_filtered_4FGL_J1319.5-0045_daily_bin362.fits scfile=/scratch/kocevski/470033/ft2_4FGL_J1319.5-0045_daily_bin362.fits outfile=/scratch/kocevski/470033/cmap_HighResolution_333158401_333417601_4FGL_J1319.5-0045_daily_bin362.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.3554       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.308       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1582       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8086       1.0000         .10000E-03   10000.    
     9 'norm      '    6.0898       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 '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8408       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.1506       1.0000         .10000E-03   10000.    
    16 'norm      '    42.958       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3487       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6288       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4699       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87868       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=   6238.286     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2529 TOTAL
                     EDM=   .75E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6885       -.40301E-07** at limit **
   2  norm          5.3554        2.3361        .15521E-07   -.58924E-05
   3  Prefactor     .10000E-03    6.0578       -.12489E-06** at limit **
   4  Prefactor     37.309        35.237        .44672E-07   -.57953E-06
   5  Prefactor     .10000E-03    28.222       -.95950E-07** at limit **
   6  norm          .10000E-03    10.996       -.18648E-06** at limit **
   7  norm          1.1583        .32236       -.70932E-08    .58863E-04
   8  Prefactor     9.7400        66.939        .14796E-04   -.99439E-06
   9  norm          6.0887        15.225       -.12748E-05   -.33057E-04
  10  norm          .10000E-03    3.1504        .70226E-07** at limit **
  11  Prefactor     .10000E-03    5.9460        .18836E-06** at limit **
  12  Prefactor     .10000E-03    10.846       -.92267E-07** at limit **
  13  Prefactor     6.8406        12.050        .16138E-06   -.16532E-05
  14  Prefactor     .10000E-03    7.2293       -.41924E-06** at limit **
  15  norm          3.1506        1.9023        .65683E-07    .11362E-04
  16  norm          42.958        31.873        .56363E-07   -.52961E-06
  17  Prefactor     3.3487        5.2973        .19155E-05    .69353E-05
  18  Prefactor     2.6278        54.369        .74185E-06   -.20673E-05
  19  Prefactor     .10000E-03    8.5805        .46373E-06** at limit **
  20  Normalizat    1.4699        .24948       -.12383E-05    .22710E-04
  21  Prefactor     .87868        .17278        .28681E-06   -.27311E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.35542
  Prefactor  = 0.0001
  Prefactor  = 37.309
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.15825
  Prefactor  = 9.74
  norm       = 6.08869
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.84064
  Prefactor  = 0.0001
  norm       = 3.15055
  norm       = 42.9581
  Prefactor  = 3.34869
  Prefactor  = 2.62784
  Prefactor  = 0.0001
  Normalizat = 1.46992
  Prefactor  = 0.87868
 **********
 **   18 **HESSE 
 **********

 FCN=   6238.286     FROM HESSE     STATUS=OK           315 CALLS     2844 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6977        .16703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.3554        2.3362        .77077E-04   -1.5245    
   3  Prefactor     .10000E-03    6.1379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     37.309        35.243        .65616E-04   -1.4486    
   5  Prefactor     .10000E-03    28.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1583        .32238        .22282E-04   -1.5493    
   8  Prefactor     9.7400        67.023        .12795E-03   -1.5084    
   9  norm          6.0887        15.191        .16269E-03   -1.5214    
  10  norm          .10000E-03    3.1509        .13691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.9615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.8406        12.051        .15340E-03   -1.5185    
  14  Prefactor     .10000E-03    7.2853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.1506        1.8980        .79784E-04   -1.5353    
  16  norm          42.958        31.884        .61165E-04   -1.4396    
  17  Prefactor     3.3487        5.3001        .10828E-02   -1.5342    
  18  Prefactor     2.6278        54.265        .25152E-03   -1.5384    
  19  Prefactor     .10000E-03    8.6057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4699        .29716        .29227E-03   -.78627    
  21  Prefactor     .87868        .20582        .26035E-03   -.96890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84281e-11
Minuit parameter uncertainties:
  1  2.50015e-07
  2  2.33626
  3  6.87345e-07
  4  35.263
  5  1.38072e-06
  6  4.17547e-06
  7  0.32238
  8  51.1821
  9  15.2011
  10  5.28627e-07
  11  8.49839e-07
  12  1.35998e-06
  13  12.0554
  14  3.35994e-06
  15  1.89801
  16  31.8963
  17  5.3008
  18  23.9074
  19  2.17829e-07
  20  0.297514
  21  0.205997
Done.

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

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.360e-06  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:  8.787e-01  2.060e-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.470e+00  2.975e-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: 8.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/470033/likelihoodResults_333158401_333417601_4FGL_J1319.5-0045_daily_bin362.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) = 6238.28602387
delta logL = -0.000437321733443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6238.28558645
delta logL = 9.6616531664e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3778       1.0000          .0000       10.000    
     3 'Normalizat'    1.4699       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87868       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=   6238.286     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      248 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10310E-03    8.5034        .18142E-01** at limit **
   2  Index         2.2739        6.1271        .50000        .12888E-04
   3  Normalizat    1.4699        .50453E-02    .29227E-03   -.22950E-05
   4  Prefactor     .87868        .36068E-02    .26035E-03   -.36244E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103103
  Index      = 2.27386
  Normalizat = 1.46992
  Prefactor  = 0.87868
 **********
 **   18 **HESSE 
 **********

 FCN=   6238.286     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10310E-03    118.06        .26631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2739        5.5800        .50000       -.57666    
   3  Normalizat    1.4699        .18859E-01    .11691E-04   -.78627    
   4  Prefactor     .87868        .13482E-01    .10414E-04   -.96890    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.59409e-09
Minuit parameter uncertainties:
  1  0.0383573
  2  501.69
  3  0.0188588
  4  0.0134818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/470033': 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) = 6238.28558621
delta logL = 3.34383912559e-07

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  1.031e-04  3.836e-02  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.274e+00  5.017e+02  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.787e-01  1.348e-02  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.470e+00  1.886e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 199.877 -0.761

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/470033/cmap_HighResolution_333158401_333417601_4FGL_J1319.5-0045_daily_bin362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.59e-03', job_status='DONE', photon_flux_upper_limit='8.52e-08', time_completed='2021-09-07 11:56:10.639339', job_id='470033', GAL2='0.88', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1631040970.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='362' AND source_name='4FGL J1319.5-0045' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 11:56:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 470033: <4FGL_J1319.5-0045_daily_bin362> in cluster <slac> Done

Job <4FGL_J1319.5-0045_daily_bin362> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 11:40:27 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 11:42:45 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:42:45 2021
Terminated at Tue Sep  7 11:56:11 2021
Results reported at Tue Sep  7 11:56:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.5-0045_daily_bin362 199.877 -0.7613 333158401 333417601 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 :                                   642.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            944 sec.

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

