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


Performing analysis on: 4FGL_J1319.5-0045_daily_bin1006
RA = 199.877, Dec = -0.7613
tmin = 500083201, tmax = 500342401
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='475310', job_status='RUN', time_executed='2021-09-07 11:59:56.126340', time_epoch_executed='1631041196.13' WHERE source_name='4FGL J1319.5-0045' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/475310

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/475310/ft1_4FGL_J1319.5-0045_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/475310/ft2_4FGL_J1319.5-0045_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/475310/ft1_4FGL_J1319.5-0045_daily_bin1006.fits outfile=/scratch/kocevski/475310/ft1_filteredMKT_4FGL_J1319.5-0045_daily_bin1006.fits ra=199.877 dec=-0.7613 rad=12.0 tmin=500083201.0 tmax=500342401.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 5.75
user 5.46
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/475310/ft1_filtered_4FGL_J1319.5-0045_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/475310/ft2_4FGL_J1319.5-0045_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/475310/ltcube_500083201_500342401_4FGL_J1319.5-0045_daily_bin1006.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/475310/ft2_4FGL_J1319.5-0045_daily_bin1006.fits
.....................!
real 14.72
user 14.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/475310/ft1_filtered_4FGL_J1319.5-0045_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/475310/ft2_4FGL_J1319.5-0045_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/475310/ltcube_500083201_500342401_4FGL_J1319.5-0045_daily_bin1006.fits outfile=/scratch/kocevski/475310/expmap_500083201_500342401_4FGL_J1319.5-0045_daily_bin1006.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/475310/ltcube_500083201_500342401_4FGL_J1319.5-0045_daily_bin1006.fits
.....................!
real 193.26
user 186.93
sys 4.57

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/475310/ft1_filtered_4FGL_J1319.5-0045_daily_bin1006.fits scfile=/scratch/kocevski/475310/ft2_4FGL_J1319.5-0045_daily_bin1006.fits outfile=/scratch/kocevski/475310/cmap_500083201_500342401_4FGL_J1319.5-0045_daily_bin1006.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.61
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/475310/ft1_filtered_4FGL_J1319.5-0045_daily_bin1006.fits scfile=/scratch/kocevski/475310/ft2_4FGL_J1319.5-0045_daily_bin1006.fits outfile=/scratch/kocevski/475310/cmap_HighResolution_500083201_500342401_4FGL_J1319.5-0045_daily_bin1006.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/475310/ft1_filtered_4FGL_J1319.5-0045_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/475310/ft2_4FGL_J1319.5-0045_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/475310/Model_4FGL_J1319.5-0045_daily_bin1006.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/475310/ft1_filtered_4FGL_J1319.5-0045_daily_bin1006.fits.....................!
real 50.80
user 48.90
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    6.5681       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    33.911       1.0000         .10000E-03   10000.    
     7 'norm      '    .86594       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.4560       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8160       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5907       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .15767       1.0000         .10000E-03   10000.    
    16 'norm      '    23.932       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.8064       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6590       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .90229       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0338       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=   6115.147     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2190 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.167       -.59085E-08** at limit **
   2  norm          6.5682        2.3935        .16206E-07   -.33143E-04
   3  Prefactor     .10000E-03    3.7214        .73707E-07** at limit **
   4  Prefactor     .10000E-03    6.8948       -.56719E-06** at limit **
   5  Prefactor     .10000E-03    70.340       -.71092E-06** at limit **
   6  norm          33.909        28.173       -.16226E-06   -.40227E-04
   7  norm          .86553        .26425        .10381E-07   -.12413E-03
   8  Prefactor     .10000E-03    48.398        .64729E-06** at limit **
   9  norm          6.4558        10.145       -.10493E-06   -.97828E-04
  10  norm          .10000E-03    3.8556       -.16209E-05** at limit **
  11  Prefactor     .10000E-03    3.0736        .96799E-08** at limit **
  12  Prefactor     8.8116        17.942        .14040E-06   -.19802E-04
  13  Prefactor     6.5914        16.820        .12763E-06   -.25849E-04
  14  Prefactor     .10000E-03    3.8416        .16530E-05** at limit **
  15  norm          .15639        .77611        .15446E-06   -.59645E-03
  16  norm          23.935        34.070        .13344E-05    .83610E-04
  17  Prefactor     7.8067        4.3604        .82279E-06   -.15743E-02
  18  Prefactor     .10000E-03    7.1337        .61744E-06** at limit **
  19  Prefactor     2.6600        10.334        .12067E-05    .53673E-05
  20  Normalizat    .90241        .21467       -.59535E-06   -.58544E-04
  21  Prefactor     1.0337        .15214       -.18498E-06   -.61493E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.56819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 33.9095
  norm       = 0.865531
  Prefactor  = 0.0001
  norm       = 6.45585
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.81156
  Prefactor  = 6.59139
  Prefactor  = 0.000100001
  norm       = 0.156391
  norm       = 23.9354
  Prefactor  = 7.80672
  Prefactor  = 0.0001
  Prefactor  = 2.66002
  Normalizat = 0.902409
  Prefactor  = 1.03368
 **********
 **   18 **HESSE 
 **********

 FCN=   6115.147     FROM HESSE     STATUS=OK           319 CALLS     2509 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.5682        2.3938        .70765E-04   -1.5195    
   3  Prefactor     .10000E-03    3.7667        .14731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.9262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    70.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          33.909        28.196        .68814E-04   -1.4543    
   7  norm          .86553        .26377        .21126E-04   -1.5522    
   8  Prefactor     .10000E-03    48.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.4558        10.166        .15796E-03   -1.5200    
  10  norm          .10000E-03    4.1116        .15473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.0751        .13389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.8116        17.986        .13500E-03   -1.5114    
  13  Prefactor     6.5914        16.834        .15631E-03   -1.5194    
  14  Prefactor     .10000E-03    4.1309        .15432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .15639        1.4685        .13161E-02   -1.5629    
  16  norm          23.935        34.306        .81882E-04   -1.4729    
  17  Prefactor     7.8067        5.1654        .68610E-03   -1.5149    
  18  Prefactor     .10000E-03    7.1679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.6600        10.312        .24997E-03   -1.5382    
  20  Normalizat    .90241        .25286        .30668E-03   -.96376    
  21  Prefactor     1.0337        .17975        .21252E-03   -.91615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34139e-09
Minuit parameter uncertainties:
  1  2.41396e-06
  2  2.39385
  3  6.4184e-06
  4  5.09845e-05
  5  0.000191461
  6  28.2069
  7  0.263775
  8  0.000173386
  9  10.1684
  10  0.000111838
  11  4.56193e-07
  12  17.9973
  13  16.8463
  14  0.000111659
  15  0.958174
  16  34.3345
  17  5.16571
  18  5.18992e-05
  19  10.3191
  20  0.253191
  21  0.179857
Done.

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

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  8.812e+00  1.800e+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:  1.034e+00  1.799e-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:  9.024e-01  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/475310/likelihoodResults_500083201_500342401_4FGL_J1319.5-0045_daily_bin1006.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) = 6114.34724842
delta logL = 0.800170151044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6114.33641838
delta logL = 0.811000190666

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89545E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.4703       1.0000          .0000       10.000    
     3 'Normalizat'    .78848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0939       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=   6114.336     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      322 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88862E-01    .96680        .39242E-02   -.35786E-02
   2  Index         5.4739        2.2677        .12100       -.51751E-04
   3  Normalizat    .78901        .47126E-01    .73683E-01   -.75869E-04
   4  Prefactor     1.0936        .34837E-01    .37823E-01   -.11325E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0888615
  Index      = 5.47393
  Normalizat = 0.789011
  Prefactor  = 1.09356
 **********
 **   18 **HESSE 
 **********

 FCN=   6114.336     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      355 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88862E-01    2.5835        .17870E-03   -1.5648    
   2  Index         5.4739        7.2035        .42979E-02    .94928E-01
   3  Normalizat    .78901        .18721        .32611E-03   -1.0048    
   4  Prefactor     1.0936        .13527        .20735E-03   -.89673    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.52126e-10
Minuit parameter uncertainties:
  1  0.957782
  2  4.97866
  3  0.187365
  4  0.135314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/475310': 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) = 6114.33641467
delta logL = 0.811003901134

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  8.886e-02  9.578e-01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  5.474e+00  4.979e+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.094e+00  1.353e-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:  7.890e-01  1.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 199.877 -0.761
Photon Index (Free Index): 5.47 +/- 4.98
Photon Flux (Free Index): 9.98e-08 +/- 7.54e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.02e-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/475310/cmap_HighResolution_500083201_500342401_4FGL_J1319.5-0045_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.14e-03', comment='SUCCESS', energy_flux2='1.28e-05', dlogl='8.11e-01', photon_flux2='9.98e-08', job_status='DONE', time_completed='2021-09-07 12:10:08.807909', photon_index_error2='4.98', photon_index2='5.47', ts='0.31', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.02e-05', EG='0.90', time_epoch_completed='1631041808.81', return_code='0', job_id='475310', GAL2='1.09', EG2='0.79', return_code2='102', photon_flux_error2='7.54e-08', ts2='2.17', photon_index='2.40' WHERE bin_id='1006' AND source_name='4FGL J1319.5-0045' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:10:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 475310: <4FGL_J1319.5-0045_daily_bin1006> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.5-0045_daily_bin1006 199.877 -0.7613 500083201 500342401 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 :                                   607.58 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             270.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            887 sec.

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

